cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
598
Views
0
Helpful
2
Replies

BOT is not fetching all the messages from a Room

sandiban
Cisco Employee
Cisco Employee

Query from @daniel Desch at #webex4devs space

Hi Support Team,

 

I've created my first bot and posting messages is working fine.

But GET messages of a room does only work with my personal access token, not for the bot. The bot gets a 403. Am I missing some permissions for the bot?

2 Replies 2

mparra.fusionet
Level 1
Level 1

@sandiban 

Same topic was covered on the link below, it seems Cisco designed for bots not to get webhook notifications on a space where you have the bot and other users, only invoking the bot like @bot would get the webhook triggered(because the bot was directly triggered), can you please upvote the aha.idea request (please tell your friends to the same) to have this behavior changed:

https://ciscocollabcustomer.ideas.aha.io/ideas/WXCUST-I-18912

 

Original link:

https://community.cisco.com/t5/webex-for-developers/webhook-only-triggers-when-bot-is-tagged-unable-to-monitor-all/m-p/5253806

sandiban
Cisco Employee
Cisco Employee

Hi Daniel,

Bots are similar to regular Webex users. They can participate in 1-to-1 and group spaces and users can message them directly or add them to a group space. A special badge is added to a bot's avatar in the Webex clients so users know they're interacting with a bot instead of a human.

A bot can only access messages sent to it directly. In group spaces, bots must be @mentioned to access the message. In 1-to-1 spaces, a bot has access to all messages from the user.

Bots do not, however, perform actions within Webex on behalf of a Webex user. If you're creating an application that needs to participate in Webex and perform actions with a user's account, check out Integrations.

 

List messages with these people mentioned, by ID. Use me as a shorthand for the current API user. Only me or the person ID of the current user may be specified. Bots must include this parameter to list messages in group rooms (spaces).

Differences Between Bots and People

One key difference between Webex Bots and regular users is that, in group spaces, bots only have access to messages in which they are mentioned. This means that messages:created webhooks only fire when the bot is mentioned in a space.

Also, listing messages requires that you specify a special ?mentionedPeople=me query parameter.


Thanks,
Sandip