You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/QuickReplies.md
+55-2Lines changed: 55 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,59 @@
26
26
|`text`| String | Title of the quick replies action. | Required | Any |``` "text": "Start Chat" ```|
27
27
|`actionId`| String | Id of the quick replies action. | Optional | Any |``` "actionId": "sflaia-start-chat" ```|
28
28
|`buttonStyle`| String | Button style of your quick replies action. Use `danger` to render a red colour action and `primary` for an action that matches your Livechat Bar colour. | Optional |`danger` or `primary`|``` "buttonStyle": "primary" ```|
These buttons perform a specific action in the app. You can add them by simply pasting the following block in your Quick Replies payload. **Note**: You can change the `text` and `buttonStyle` parameters as per your requirements, but only use the provided `actionId` for the button you want to add.
33
+
34
+
### Handover Button
35
+
36
+
- On clicking this button, the visitor will be handed over to another departement. You can set the target department in the app setting called **Target Department for Handover** or add a `departmentName` param in your payload. On failing to provide a department name in either way, will send a request failure message back to the visitor, when visitor clicks the button.
37
+
38
+
- Add the following block in your Quick Replies payload, with **actionId** set as `df_perform_handover`, to include this button in your response:
39
+
40
+
- Parameters:
41
+
42
+
| Param Name | Dependency | Param Type | Acceptable Value |
|`buttonStyle`|**Optional**| String |`primary` or `danger`|
47
+
|`departmentName`|**Optional**| String |**Any Omnichannel department name**|
48
+
49
+
- Example Structure:
50
+
51
+
```
52
+
{
53
+
"text": "Perform Handover",
54
+
"buttonStyle": "primary",
55
+
"actionId": "df_perform_handover",
56
+
"departmentName": "sales"
57
+
}
58
+
```
59
+
60
+
### Close Chat Button
61
+
62
+
- When visitor clicks this button, the chat session will be closed. Add the following block in your Quick Replies payload, with **actionId** set as `df_close_chat`, to include this button in your response:
63
+
64
+
- Parameters:
65
+
66
+
| Param Name | Dependency | Param Type | Acceptable Value |
0 commit comments