How to Send Post Chat Transcripts via API 

 

ProProfs Chat allows you to send chat transcripts to any third-party website effortlessly with its API functionality. By simply enabling the feature and providing the host and script path details, you can automate the transmission of chat transcripts. These transcripts will be automatically posted to the designated location, making it easy to maintain a comprehensive customer log or integrate the data into your workflow.

 

Leveraging the Post Chat transcripts can:

 

  • Maintain a comprehensive log of all customer interactions
  • Identify patterns, understand customer needs, and make data-driven decisions to improve your products, services, and overall customer experience
  • Assess the performance of support agents, identify areas for improvement, and provide targeted feedback.

 

To Send Post Chat Transcript via API

 

Step 1: Log in to your ProProfs Live Chat account and then navigate to  Settings > Advanced > API and switch to the Chat Transcripts tab.

 

enable_post_chat_transcripts

Step 3:  Enable the "Post Chat Transcript" option by using the toggle button and enter the following details in the respective text input fields:

 

  • Host: Enter the domain name for the script (e.g., www.test1domain.com or test1domain.com).
  • Script Path: Enter the path for the script (e.g., /yourtestscript.php or /yourtestscript.asp).
  • Port: Select the appropriate port for the connection. We recommend using HTTPS for secure connections, as it encrypts both credentials and information.

 

enable post chat transcript

Here's the sample text input field:

 

Field Name Description
Host The domain name for the script, for example- www.test1domain.com or test1domain.com
Script Path The path for the script /yourtestscript.php or /yourtestscript.asp etc.
Port

Default: HTTP:// connections are not secure because they exchange credentials and data in clear text, so we recommend using HTTPS.


Secure (Recommended): HTTPS:// connections are secure, encrypting both credentials and information.

 

Step 5: Once you have entered all the required values, click the "Check Connection" option to verify the API connection.

 

Step 6: Click on the "Save" button to save the entered values.

 

After following the above steps, the chat transcript details will be automatically sent to the desired path in JSON (JavaScript Object Notation) format.

 

Example Response [Success] 

 

Content-Type: application/json
{
 
             "l2s_name":    "Test",
             "l2s_email":    "Test@proprofs.com",
             "l2s_sesid":     "322247Xpzc3cckidrddoml24p",
             "l2s_id":      "3222X",
             "l2s_ip":    "45.64.11.XX",
             "l2s_logid":    "Test Account",
             "l2s_lang":     "236XX",
             "l2s_msg": "Test Account: How may i help you today? [01-01-2020 22:31:31]\r\nTest Account:     test5 [09-01-2020     22:31:32]\r\nTest Account: hi [09-01-2020 22:31:33]\r\n",
             "l2s_date":    "2020-01-09 22:31:35",
             "l2s_duration":    15,
             "l2s_totalduration":   15,
             "l2s_returnedval":    "Test Account",
             "l2s_question":    "Test chat"

}

 

Response Field Description
l2s_name The visitor’s name.
l2s_email The visitor’s email id.
l2s_sesid The chat session id.
l2s_id The chat site id.
l2s_ip The visitor’s IP address.
l2s_logid The operator’s ID.
l2s_lang The selected language for chat support.
l2s_msg The chat transcript text.
l2s_date The date stamp of the chat.
l2s_duration The duration of the chat.
l2s_totalduration The total duration of the chat.
l2s_returnedval The return value for the chat.
l2s_question The custom for questions.

 

 

Make sure to provide accurate and valid details for the host, script path, and port to ensure the successful transmission of chat transcripts.

 

That's all you need to know about sending chat transcripts via API. If you are still facing any issues or need further assistance, feel free to contact our support team. We hope this guide helps you utilize the post-chat transcript feature via API.

 

 

Was this information helpful?
© 2005 - 2024 ProProfs
-
add chat to your website