cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
457
Views
0
Helpful
1
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?

1 Reply 1

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