@@ -105,7 +105,7 @@ When connecting to the Customer Chat RTM API, clients have to send over the requ
105105| ** Properties** | [ ` update_chat_properties ` ] ( #update-chat-properties ) [ ` delete_chat_properties ` ] ( #delete-chat-properties ) [ ` update_thread_properties ` ] ( #update-thread-properties ) [ ` delete_thread_properties ` ] ( #delete-thread-properties ) [ ` update_event_properties ` ] ( #update-event-properties ) [ ` delete_event_properties ` ] ( #delete-event-properties ) |
106106| ** Customers** | [ ` update_customer ` ] ( #update-customer ) [ ` update_customer_page ` ] ( #update-customer-page ) [ ` set_customer_session_fields ` ] ( #set-customer-session-fields ) [ ` get_customer ` ] ( #get-customer ) |
107107| ** Status** | [ ` login ` ] ( #login ) [ ` list_group_statuses ` ] ( #list-group-statuses ) |
108- | ** Other** | [ ` get_form ` ] ( #get-form ) [ ` get_predicted_agent ` ] ( #get-predicted-agent ) [ ` get_url_info ` ] ( #get-url-info ) [ ` mark_events_as_seen ` ] ( #mark-events-as-seen ) [ ` accept_greeting ` ] ( #accept-greeting ) [ ` cancel_greeting ` ] ( #cancel-greeting ) |
108+ | ** Other** | [ ` get_form ` ] ( #get-form ) [ ` get_predicted_agent ` ] ( #get-predicted-agent ) [ ` get_url_info ` ] ( #get-url-info ) [ ` mark_events_as_seen ` ] ( #mark-events-as-seen ) [ ` accept_greeting ` ] ( #accept-greeting ) [ ` cancel_greeting ` ] ( #cancel-greeting ) [ ` send_greeting_postback ` ] ( #send-greeting-postback ) |
109109
110110</Text >
111111
@@ -2198,6 +2198,74 @@ Cancels a greeting (an invitation to the chat). For example, Customers could can
21982198
21992199<Text >
22002200
2201+ ### Send Greeting Postback
2202+
2203+ #### Specifics
2204+
2205+ | | |
2206+ | ---------------------- | ------------------------------------------------------------------------------------- |
2207+ | ** Action** | ` send_greeting_postback ` |
2208+ | ** Web API equivalent** | [ ` send_greeting_postback ` ] ( /messaging/customer-chat-api/v3.6/#send-greeting-postback ) |
2209+ | ** Push message** | - |
2210+
2211+ #### Request
2212+
2213+ | Parameter | Required | Data type | Notes |
2214+ | ------------------------------- | -------- | --------- | --------------------------------------------------- |
2215+ | ` greeting_unique_id ` | Yes | ` string ` | |
2216+ | ` postback ` | Yes | ` object ` | |
2217+ | ` postback.rich_message ` | No | ` object ` | Required if ` postback.url ` is not provided |
2218+ | ` postback.rich_message.id ` | Yes | ` string ` | Postback name of the button |
2219+ | ` postback.rich_message.toggled ` | Yes | ` bool ` | Postback toggled; ` true ` or ` false ` |
2220+ | ` postback.url ` | No | ` string ` | Required if ` postback.rich_message ` is not provided |
2221+
2222+ </Text >
2223+
2224+ <Code >
2225+
2226+ <CodeSample path = { ' REQUEST' } >
2227+
2228+ ``` json
2229+ {
2230+ "action" : " send_greeting_postback" ,
2231+ "payload" : {
2232+ "greeting_unique_id" : " Q10X0W041P" ,
2233+ "postback" : {
2234+ "rich_message" : {
2235+ "id" : " greeting_button_yes" ,
2236+ "toggled" : true
2237+ }
2238+ }
2239+ }
2240+ }
2241+ ```
2242+
2243+ </CodeSample >
2244+
2245+ <CodeResponse >
2246+
2247+ ``` json
2248+ {
2249+ "request_id" : " <request_id>" , // optional
2250+ "action" : " send_greeting_postback" ,
2251+ "type" : " response" ,
2252+ "payload" : {
2253+ // no response payload
2254+ },
2255+ "success" : true
2256+ }
2257+ ```
2258+
2259+ </CodeResponse >
2260+
2261+ </Code >
2262+
2263+ </Section >
2264+
2265+ <Section >
2266+
2267+ <Text >
2268+
22012269# Pushes
22022270
22032271Here's what you need to know about ** pushes** :
0 commit comments