-
Notifications
You must be signed in to change notification settings - Fork 68
Dialog API not returning information about the Webhook Calls #148
Comments
Is your server returning responses ? Do you follow the format described here in the "Formatting the response of the webhook call" section here : https://cai.tools.sap/docs/concepts/code-and-webhook ? |
Hi @dbousque ,
Which server are you talking about ? The flow of a conversation is something like this -
In that response, the DIalog API is skipping over webhook details and gives info about all other type of replies starting from text to quick replies, list, carousel etc. I did not have to configure any custom response body in the Actions tab. So why would I need for the webhook specially ?? |
Hi @boudhayan-dev, Webhook actions are actions performing an HTTP call to the specified URL with the specified parameters and headers. If the HTTP call made to the URL returns responses in a certain format, theses responses will be added to the bot responses to the user message. If the HTTP call doesn't return responses in the expected format, the call will have no effect to the conversation. I hope this is clearer now :) Take a look at the full documentation for more details about what the different kinds of actions are. |
Hi @dbousque , I think you are confusing yourself with Dialog API endpoint and Webhook URL. I am aware of the working of webhook under Actions tab. My question is not related to webhooks at all. Dialog API - https://cai.tools.sap/docs/api-reference/#dialog-endpoints The payload of this endpoint is supposed to contain all the replies set for a particular skill. Check the sample payload attached in the documentation. There exists a key called message which contains the replies.
So, if I have configured 3 different types of replies in the skill section, they should come up in the message section. |
I am encountering a very weird problem with the Dialog endpoint of the API ( Dialog Endpoint ). Well, I have set an actions if a particular intent is triggered. The action does the following -
Now, when I am trying to fetch the information about this conversation using the above mentioned endpoint, I am not getting the information about the Webhook call.
Ideally, the messages key in the returned response should contain all the configured responses for a particular Action, right ? . The returned response only contains information about the message and the quick reply . The info about the Webhook call is missing. Sample response below -
The text was updated successfully, but these errors were encountered: