DevNet Associate (DEVASC) v1.0Cisco Platforms and DevelopmentHard
A software developer is creating a custom chatbot for a Webex Teams space. The chatbot needs to receive messages from users in real-time, process their requests, and send back appropriate responses. Which Webex Teams API mechanism is specifically designed for the chatbot to receive incoming messages from the space?
- AWebex Teams SDK for client-side interaction
- BREST API for sending messages
- COutgoing Webhooks
- DIncoming Webhooks
Show answer & explanationAnswer & explanation
Correct answer: C. Outgoing Webhooks
Outgoing Webhooks in Webex Teams are configured to send messages from a specific space to an external URL (your chatbot's endpoint) whenever a new message is posted in that space. This is the primary mechanism for a chatbot to receive messages.
Why the other options are wrong
- A. A Webex Teams SDK primarily facilitates client-side interaction (e.g., building a GUI client), not server-side chatbot message reception.
- B. The REST API for sending messages is for the chatbot to post replies, not to receive initial messages.
- D. Incoming Webhooks are for sending messages FROM an external application TO a Webex Teams space.
Webex Teams Outgoing Webhooks
Webex Teams Outgoing Webhooks are configured within a Webex Teams space to send notifications (HTTP POST requests) to a specified external URL whenever a new message is posted in that space. They are crucial for chatbots to receive user input.
- Pushes messages from a space to an external endpoint.
- Includes message content, sender, and space details in the payload.
- Requires a verification token for security.
Memory trick: Webex Teams uses webhooks for flow, API for direct control.