Reference
Callback name | Description |
---|---|
Triggered when the chatbox is displayed on the visitor screen (either opened or reduced). | |
Triggered when the visitor closes the chatbox (after the conversation has been closed by the operator). | |
Triggered when a “click to chat” button is displayed on the visitor screen. | |
Triggered when a chat conversation has started. | |
Triggered when a chat conversation has ended. | |
Triggered when a “click to call” button is displayed on the visitor screen. | |
Triggered when an operator message is received by the visitor. | |
Triggered when the visitor sends a message. | |
Triggered when the satisfaction survey is displayed to the visitor. | |
Triggered when the visitor has answered all the questions in the satisfaction survey. |
onChatDisplayed
Triggered when the chat window is displayed on the visitor screen (either opened or reduced).
Example:
onChatHidden
Triggered when the visitor closes the chatbox (after the conversation has been closed by the operator).
Example:
onChatButtonDisplayed
Triggered when a “click to chat” button is displayed on the visitor screen.
Example:
onChatStarted
Triggered when a chat conversation has started.
Context parameter:
Property | Description |
---|---|
| Legacy conversation ID (integer ID) |
| New conversation ID in UUID format that you can use in our GraphQL API |
| Visitor Unique Id is a random string which can be used for analytics purposes |
Example:
onChatEnded
Triggered when a chat conversation has ended.
Context parameter:
Property | Description |
---|---|
| Legacy conversation ID (integer ID) |
| ⚠️ DEPRECATED. The conversation can only be ended by an operator |
| New conversation ID in UUID format that you can use in our GraphQL API |
| Visitor Unique Id is a random string which can be used for analytics purposes |
Example:
onCallButtonDisplayed
Triggered when a “click to call” button is displayed on the visitor screen.
Example:
onMessageReceived
Triggered when an operator message is received by the visitor.
Context parameter:
Property | Description |
---|---|
| Local time of the message (visitor time) |
| The text message received |
| Local DateTime of the message (ISO 8601) |
| Internal iAdvize operator id |
| The operator external id provided by the customer |
Example:
onMessageSent
Triggered when the visitor sends a message.
Context parameter:
Property | Description |
---|---|
| Local time of the message (visitor time) |
| The text message received |
Example:
onSatisfactionDisplayed
Triggered when the satisfaction survey is displayed to the visitor.
Example:
onSatisfactionAnswered
Triggered when the visitor has answered all the questions in the satisfaction survey.
Example:
Last updated