capabilities.work

Post an Adaptive Card and Read its Attachment Action

A 3-step recipe with Cisco Webex. We can help you get access.

Recipe · 3 steps

Post an Adaptive Card and Read its Attachment Action

Post a card, submit an attachment action, then read it back.

  1. Post a message carrying an adaptive card attachment into the room. The contentType identifies the payload as an adaptive card.
  2. Create a submit attachment action against the posted card message, carrying the user-provided input data.
  3. Read the attachment action back to retrieve the captured inputs.
What you'll need to have ready
  • accessToken: Webex API bearer access token.
  • roomId: The room ID to post the card message into.
  • text: Fallback text shown by clients that cannot render the card.
  • cardContent: The adaptive card content object for the attachment.
  • inputs: The user input data submitted from the adaptive card fields.
For your developer

Arazzo workflow cisco-webex:post-card-and-read-attachment-action, 3 operations: Create a Message → Create an Attachment Action → Get Attachment Action Details. Specs on APIs.io.