I try to implement to send a card to chat using google chat api using HTTP method all messages are send to the chat like text and card but if i clicked on the card it shows as unable to process your request i want to know why it is and how to rectify it because all other messages are properly sent and receive . Kindly response as soon as possible. Thanks in prior.
Yeah, that happens when the card has buttons or other interactive stuff but it’s sent through a webhook. Webhooks only show static cards , clicks won’t work.
If you want the buttons to respond, you’ll need to use a proper Chat bot with an endpoint that handles the actions. Also make sure interactive features are turned on in Google Cloud Console and your bot URL is correct.
A simple test card with one button is a good way to check if it’s working.
Hey,
Hope you’re keeping well.
In Google Chat, interactive card actions such as buttons require an endpoint that can handle the POST request sent by Chat when the user clicks the button. If your card’s action references a function or url, make sure that endpoint is publicly reachable, responds within 5 seconds, and returns a valid JSON response per the Google Chat API card action format. Also verify that your Chat app is deployed and authorized in the space, since actions will fail if the app isn’t registered or lacks permission to process events. You can check logs in your receiving service for any request errors to see why the click is not being processed.
Thanks and regards,
Taz