- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 10:57 AM
Hi all,
I have a webhook triggered by "attachmentActions" created.
IT is well trigered if the adaptative card is posted by a user but if the car is posted by a bot the webhook is not trigered.
My webhook has ot any filter. I was wondering if the issue is that owner is "creator" and not "org" but "org" is apparently not supported for "attachmentActions".
Any clu about how i can get a webhook trigered even if is a bot who is posting the card?
Thanks!
Solved! Go to Solution.
- Labels:
-
Webex API
-
Webex Bots
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 11:00 PM
Hi @Echpiel,
Yes this is an expected outcome!
If you want the Webhook to be triggered in case the Bot is posting a card or, even Bot is posting any message, the Webhook needs to be created with the Bot Token, not using yours or, any person's token.
You can find the Bot token once you visit https://developer.webex.com/my-apps/ page and select your Bot from there.
The first item in Bot details page would be Bot Access Token and you should use that Token to create the Webhook instead of your own Token.
That way, when the Bot would Post some messages or, Card (Card would be preferred here since your Webhook is on AttachmentActions), the Webhook would be fired & notification would be received.
Please let us know for any further assistance!
Regards,
Sandip
Please Note: If you think the solution provided above was helpful and satisfactory, please accept it as a Solution! However if you want to discuss it further and get yourself unblocked, please don't hesitate to reply back in this thread and we'll try to answer those queries by the soonest. In that case, once all of your queries are cleared - finally you can mark it as "Accepted as Solution"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 11:20 PM
It worked!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 01:05 AM
Beautiful !! Thanks for your confirmation @Echpiel !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 11:00 PM
Hi @Echpiel,
Yes this is an expected outcome!
If you want the Webhook to be triggered in case the Bot is posting a card or, even Bot is posting any message, the Webhook needs to be created with the Bot Token, not using yours or, any person's token.
You can find the Bot token once you visit https://developer.webex.com/my-apps/ page and select your Bot from there.
The first item in Bot details page would be Bot Access Token and you should use that Token to create the Webhook instead of your own Token.
That way, when the Bot would Post some messages or, Card (Card would be preferred here since your Webhook is on AttachmentActions), the Webhook would be fired & notification would be received.
Please let us know for any further assistance!
Regards,
Sandip
Please Note: If you think the solution provided above was helpful and satisfactory, please accept it as a Solution! However if you want to discuss it further and get yourself unblocked, please don't hesitate to reply back in this thread and we'll try to answer those queries by the soonest. In that case, once all of your queries are cleared - finally you can mark it as "Accepted as Solution"
