Freshchat

Enhance Freshchat support with Zipy session URLs for faster issue resolution and improved customer experience.

Overview

The following steps will help you integrate Zipy session url with Freshchat. This will help your support teams to understand user problems within tickets with Zipy session url so they can see what the users were doing when they reported a given issue in Freshchat. This will speed up time to resolution by your support team significantly without doing multiple back and forth with the customer. The same Zipy session url can be shared with development teams to report issues.

Step 1: Create a field for Zipy session url in Freshchat.

To hold Zipy session url you will need to create a field for contacts in Freshchat.

Please refer this Freshchat documentation link to create custom user field.

Step 2: Enable Zipy Session url in conversations.

Go to any conversation in Freshchat. Click on manage

Select Zipy session url and click on Save.

Step 3: Adding Zipy Session URL to Freshchat User Profile.

To begin, follow the steps below:

  1. Open your Freshchat-enabled application.

  2. Add the following code snippet to your application:

const zipySessionUrl = window.zipy.getCurrentSessionURL();

window.fcWidget.user.setProperties({
  cf_zipy_session_url : zipySessionUrl
});

Note: Here the cf_zipy_session_url is the internal name given by Freshchat for the custom field. Replace it with your internal name accordingly.

By executing this code, the Zipy session URL will be associated with the corresponding user profile in Freshchat.

Step 4: Displaying Zipy Session URL in Freshchat Conversations

Once the Zipy session URL is added to the user profile, it will appear in the 'Contact info' section during a conversation within Freshchat.

By following these steps, you will successfully integrate Zipy with Freshchat, providing you with valuable session information to enhance customer support and improve user experience.

Example Use Case

Sending Zipy Session URL to Freshchat during a Chat Interaction.

  1. Ensure that both Freshchat and Zipy are installed in your application.

  2. Implement the following code in your frontend application where Freshchat is enabled.

window.fcSettings = {
  onInit: function() {
    window.fcWidget.on("widget:opened", function(resp) {
     
      const zipySessionUrl = window.zipy.getCurrentSessionURL();

      window.fcWidget.user.setProperties({
        cf_zipy_session_url : zipySessionUrl
      });

    });
  }
}

In this scenario, when the user opens the Freshchat widget, the Zipy session URL will be retrieved and sent to Freshchat. This session url can be accessed within Freshchat as part of Contact info.

For more information on widget:opened event, please refer to this link.

Last updated