HTML API
Basic API based on HTML attributes without need for coding knowledge.
Operations
Name | Description |
---|---|
open | Chat box is opened after clicking on this element. |
send | After clicking on element, chat box is opened and predefined text is sent. |
open
Chat box is opened after clicking on this element. Click here to test the operation.
Attribute | Type | Description |
---|---|---|
data-text | Optional | Predefined text in the input text field when visitor opens chat box. |
<img src="/images/click-to-chat.png" data-api="smartsupp" data-operation="open" />
<img src="/images/click-to-chat.png" data-api="smartsupp" data-operation="open" data-text="Hello..."/>
send
After clicking on element, chat box is opened and predefined text is sent. Works similarly as operation open
with the difference that the text is mandatory and is sent automatically.
Attribute | Type | Description |
---|---|---|
data-text | Required | Message sent by visitor. |
<img src="/images/click-to-chat.png" data-api="smartsupp" data-operation="send" data-text="Hello..." />