Microsoft Teams Bot icon

Microsoft Teams Bot

Use Bot Framework conversation and activity APIs for Microsoft Teams bots

Adaptive Card → Reply With Adaptive Card

AI-generated

Summary

Send a reply to an existing activity in a Microsoft Teams conversation using an Adaptive Card.

Inputs

  • Service URL (required) — The Bot Framework service URL, typically obtained from a trigger node output.
  • Conversation ID (required) — The ID of the conversation containing the activity to reply to, usually from trigger output.
  • Activity ID (required) — The ID of the activity to reply to with the adaptive card.
  • Adaptive Card JSON (required) — The JSON payload defining the content and structure of the adaptive card to send as a reply.
  • Message Text — Optional text content accompanying the adaptive card.
  • Mention Options — Options to include mentions in the reply, such as automatically mentioning the sender or specifying mention ID and name.
  • Execution Options — Settings controlling debug output inclusion, output data shape, retry behavior and retry delays for API requests.

Output shape

a single JSON object representing the HTTP response from the Bot Framework containing details of the posted reply activity

Output shape depends on 'Execution Options.outputMode'; it can preserve the input item, merge with it, or return only the Teams Bot response fields. Errors can be caught if the node is set to continue on fail.

Examples

Example 1: Replying to a Teams message with an adaptive card

Specify the Service URL, Conversation ID, Activity ID of the message to reply to, and provide valid Adaptive Card JSON. Optionally add message text and mention options. The node posts the adaptive card reply to the specified activity in the conversation.

Links

Discussion