cancel
Showing results for 
Search instead for 
Did you mean: 

Webhook response for quick replies

0 Kudos
235

Hi,

when i call a webhook i get certain data, how do i use the same response data to make a new quick reply.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member616825
Participant

Hi ravi_yadav, if you are using our new api_response_service (https://help.sap.com/viewer/a4522a393d2b4643812b7caadfe90c18/1909/en-US/31f328484e0f40f98d12a507e6f7...) you can store the response into an object into the memory or directly use it in a message such as {{api_service_response.MY_OBJECT}} if you are using the webhook system the return of your webhook needs to be compliant to the JSON message format see here: https://help.sap.com/viewer/a4522a393d2b4643812b7caadfe90c18/1909/en-US/75174bf0017548fa86d602f22751...

Answers (1)

Answers (1)

sudipghosh
Active Contributor

Hi Ravi,

You can use below format for quick reply . in your webhook as response, Please look at this link for further structure messages.

https://cai.tools.sap/docs/concepts/structured-messages

{"type":"quickReplies","content":{"title":"TITLE","buttons":[{"title":"BUTTON_TITLE","value":"BUTTON_VALUE"}]}}

regards,

Sudip