Question 46 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question 46 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question

Responding to Events

After creating a bot, you can use its access token with the Webex REST APIs to perform actions as the bot,
such as sending a message with an interactive card to someone. To respond to events within Webex
Teams, such as someone sending your bot a message or adding it to a group space, you'll need to
configure webhooks. Webhooks will let you know when an activity has occurred so you can take action
Check out the Webhooks Guide for more information about configuring webhooks.

With cards, you can give your users even more ways to interact with your bot or service, right in the Webex
Teams clients. See the Cards Guide for more information

Differences Between Bots and People

One key difference between Webex Teams Bots and regular users is that, in group rooms, 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 room

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

Bot Frameworks & Tools

There are several bot frameworks that can greatly simplify the bot development process by abstracting
away the low-level communications with the Webex REST API, such as creating and sending API requests
and configuring webhooks. Instead, you can focus on the building the interaction and business logic of your
bot,

Flint is an open source bot framework with support for regex pattern matching for messages and more.

Refer to the exhibit.

Which set of API requests must be executed by a Webex Teams bot after receiving a webhook callback to process messages in a room and reply with a new message back to the same room? A.

GET /messages?ment ionedPeople=meéroomld=<ROOM_ID>|

POST /messages

{
“roomId”: “<ROOM_ID”,
“text”: “<MESSAGE>”

B.

GET /messages&roomId=<ROOM_ID>

PUT /messages

{
“roomId”: “<ROOM_ID”,
“text”: “<MESSAGE>”

C.

GET /messages?mentionedPeople=meéroomId=<ROOM_ID>

PUT /messages

{
“roomId”: “<ROOM_ID”,
“text”: “<MESSAGE>”

D.

GET /messages&roomId=<ROOM_ID>

POST /messages

{
“roomId”: “<ROOM_ID”,
“text”: “<MESSAGE>”

Explanations

B.