cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1086
Views
5
Helpful
3
Replies

Webhook not triggered if card is posted by bot

Echpiel
Level 1
Level 1

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!

1 Accepted Solution

sandiban
Cisco Employee
Cisco Employee

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"

View solution in original post

3 Replies 3

Echpiel
Level 1
Level 1

It worked!

Thanks

Beautiful !! Thanks for your confirmation @Echpiel !!

sandiban
Cisco Employee
Cisco Employee

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"