on 08-05-2022 4:03 PM
How can I access the response from a webhook call within SAP CAI?
The webhook response will directly be added to the bot response. The replies will be added to the messages and the conversation node will impact memory and language. More details can be found here.
If you want to use an API where the response needs to be transformed or only parts of the response should be used in further actions please refer to "consume API service" action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Webhooks need to match the following response structure:
{
"replies": [
{
"type": "text",
"content": "Hello world!"
}
],
"conversation": {
"language": "en",
"memory": {
"user": "Bob"
}
}
}
If the API called in your case does not match this structure "Consume API service" needs to be used instead of Webhook. The response of Consume API Service can be accessed with {{api_service_response}} afterwards.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.