Microsoft Teams Bot icon

Microsoft Teams Bot

Use Bot Framework conversation and activity APIs for Microsoft Teams bots

Adaptive Card → Update Adaptive Card

AI-generated

Summary

Update an existing adaptive card message in a Microsoft Teams conversation by specifying the Bot Framework service URL, conversation ID, and activity ID, along with the new adaptive card JSON content and optional message text and mention settings.

Inputs

  • Service URL (required) — The Bot Framework service URL, typically obtained from trigger output, used to route the update request.
  • Conversation ID (required) — The conversation ID in which the adaptive card activity resides, typically obtained from trigger output.
  • Activity ID (required) — The specific activity ID of the adaptive card message to update.
  • Adaptive Card JSON (required) — The new Adaptive Card JSON content to replace the existing adaptive card in the activity.
  • Message Text — Optional text to include with the adaptive card message update.
  • Mention Options — Options to mention users in the message, including automatic mention of the sender, specific mention ID and name, and whether to prepend mention text to the message.
  • Execution Options — Options controlling debug output, retry count and delay for failed requests, and output shaping for downstream nodes.

Output shape

a single JSON object containing the HTTP request method, path, and response from the Teams Bot Framework API for the update operation.

Output shape can be controlled via Execution Options output mode. Debug metadata about retry attempts and reference store size can also be included if enabled.

Examples

Example 1: Updating an existing adaptive card message in a Teams conversation

Set the Service URL, Conversation ID, and Activity ID to target the message to update. Provide the new Adaptive Card JSON content, and optionally set Message Text and Mention Options to customize the update message.

Links

Discussion