'Bot is unable to process your request
I have a GChat bot with some custom method, and I am unsure what the right "action response" is supposed to be.
I am using the default action response as seen in documentation: https://developers.google.com/chat/how-tos/bot-dialogs?hl=en
"action_response": {
"type": "DIALOG",
"dialog_action": {
"action_status": "OK"
}
}
Here is what the bot is returning despite a 200 status returned, after the timeout -
Solution 1:[1]
Unlike other message types, button clicks expects additional details to be sent in the response. It needs to respond with NEW_MESSAGE
or UPDATE_MESSAGE
.
Like this.
{
"actionResponse":{
"type":"UPDATE_MESSAGE"
},
"cards":[
{
"header":{
"title":"Hello World!"
},
"sections": ...
}
]
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |