It’s live! Access exclusive 2024 live chat benchmark data & see how well your team is performing.

Get the data
Reference for Webhook event: Chat Ended

Comm100 Live Chat Webhooks support both HTTP and HTTPS URLs. You will get the call back with the following properties when the Chat Ended event occurs.

The data is in JSON format. Here is the introduction of JSON.

Here is an example of Chat Ended event data


{
  "event": "chat_ended",
  "visitor": {
    "browser": "Google Chrome 80.0.3987.132",
    "chat_id": "16c2cc3a-1b15-4b4f-9298-1cd04d6cec15",
    "chats": 8,
    "city": "Toronto",
    "company": "",
    "country": "Canada",
    "current_browsing": "https://dash11.comm100.io/frontEnd/assets/livechat/previewpage/?campaignId=c9e91d04-3774-4470-b84d-6bc00874fe9d&siteId=10100116&q=1618890066662",
    "custom_fields": [],
    "custom_variables": [
      {
        "name": "Name",
        "value": ""
      }
    ],
    "department": "c47c5e3a-0a3b-4aa5-98ea-cec0ae5ab7b9",
    "skill": "3d68dc80-9c67-455b-abfe-1b7ac55fac98",
    "email": "test@email.com",
    "first_visit_time": "/Date(1580361387156)/",
    "flash_version": "",
    "id": "e2bafca0-efe5-45a7-96ae-a7e3b8d7c410",
    "ip": "196.247.57.19",
    "keywords": "",
    "landing_page": "https://dash11.comm100.io/frontEnd/assets/livechat/previewpage/?campaignId=c9e91d04-3774-4470-b84d-6bc00874fe9d&siteId=10100116&q=1618890066662",
    "language": "en-US",
    "name": "testName",
    "operating_system": "Windows 10",
    "page_views": 1,
    "phone": "",
    "product_service": "",
    "referrer_url": "https://dash11.comm100.io/livechat/agentconsole.aspx?siteid=10100116&v=10.0.8",
    "screen_resolution": "1536x864",
    "search_engine": "",
    "state": "Ontario",
    "status": 9,
    "time_zone": "GMT -08:00",
    "visit_time": "/Date(1584415749307)/",
    "visits": 7
  },
  "chat": {
    "attachment": [],
    "chat_transcript": "Agent Walid has joined the chat.⊙[03:30:01] Walid: testName thank you for contacting us! How may I help you?⊙It's been a while since your last response. Please respond within the next few minutes or this chat will be ended.⊙The visitor has left the chat.⊙The chat is ended.(03:36:59)⊙",
    "company": "",
    "custom_fields": [],
    "custom_variable": [
      {
        "name": "Name",
        "value": ""
      }
    ],
    "department": "Support",
    "email": "test@email.com",
    "end_time": "/Date(1584416219323)/",
    "id": "16c2cc3a-1b15-4b4f-9298-1cd04d6cec15",
    "name": "testName",
    "note_attachment": [],
    "operator_comment": "",
    "operators": [
      {
        "display_name": "Walid",
        "email": "walidr3157@gmail.com",
        "id": 1
      }
    ],
    "phone": "",
    "product_service": "",
    "rating": "-1",
    "rating_comment": "",
    "start_time": "/Date(1584415801019)/",
    "waiting_time": "0s ",
    "wrap_up": {
      "category": "",
      "comment": "",
      "fields": [],
      "time": "/Date(1584416219323)/"
    }
  }
}

Visitor Properties

Idid of the visitor
namename of the visitor
emailemail of the visitor
statusstatus of the visitor (Please check the Visitor Status Description at the bottom of this article)
phonephone of the visitor
companycompany of the visitor
first_visit_timetime the visitor first visited a web page pasted with Comm100 Live Chat code
visit_timestarting time when this visitor visits your website this time
citycity of the visitor
statestate of the visitor
countrycountry of the visitor
ipip of the visitor
languagelanguage the visitor is using
screen_resolutionscreen resolution of the visitor’s device
time_zonetime zone of the visitor
flash_versionflash version of the browser the visitor is using
operating_systemoperating system of the visitor’s device
browserbrowser the visitor is using
custom_fields

values of custom fields entered by visitors in the pre-chat window. Agents can also update the value(s) during chat in Agent Console. Custom fields contain the following properties:

id: id of the custom field
name : name of the custom field
value : value of the custom field

product_serviceproduct/service the visitor selected in the pre-chat window. Agents can also update the value while chatting with visitors.
departmentdepartment the visitor selected in the pre-chat window. Agents can also update the value while chatting with visitors.
skillskill of an agent that determines their suitability to handle a chat request
custom_variable

information of custom variables captured from the web page visitors viewed. Custom variables contain the following properties:

name : name of the custom variable
value : value of the custom variable

current_browsingpage the visitor is currently looking at
visitstotal times of visits a visitor has made on your website from the first time to present
chatstotal times of chats a visitor has made on your website from the first time to present
referrer_urlURL of the page from which a visitor comes to your website
search_enginesearch engine the visitor used to search for your website
keywordskeywords the visitor used to search for your website
landing_pagetitle and URL of the first page of your website the visitor visited
page_viewstotal number of web pages the visitor viewed on your website

Visitor Status Description

0waiting for chat
1voice chatting
2chatting
3pre-Chat
4manually Invited
5auto invited
6offline message
7refused by agent
8refused by visitor
9chat ended
10in site
11out of site

Chat Properties

Idid of the chat
namename of the visitor
emailemail of the visitor
phonephone of the visitor
product_serviceproduct/service the visitor selected in the pre-chat window. Agents can also update the value while chatting with visitors.
departmentdepartment the visitor selected in the pre-chat window. Agents can also update the value while chatting with visitors.
operatorsoperators that participate in the chat, separated by comma
custom_fields

values of custom fields entered by visitors in the pre-chat window. Agents can also update the value(s) during chat in Agent Console. Custom fields contain the following properties:

id: id of the custom field
name : name of the custom field
value : value of the custom field

custom_variable

information of custom variables captured from the web page visitors viewed. Custom variables contain the following properties:

name : name of the custom variable
value : value of the custom variable

start_timetime when the chat started
waiting_timeamount of time a visitor has been waiting before his/her chat request was accepted
end_timetime when the chat ended
chat_transcriptcontent of the chat
attachments

files the agent send to the visitor or vice versa as well as the screenshots sent to the agent by the visitor through Comm100 Screen Capture. Attachments contain the following properties:

name – name of the attachment
uri – url of the attachment

ratingrating on the agents submitted by the visitor
rating_commentcomment on agents’ customer service submitted by the visitor
operator_commentnotes added for this chat by the agent