MS Teams Bot Framework icon

MS Teams Bot Framework

Send messages and interact with MS Teams using Azure Bot Framework

Send Adaptive Card

AI-generated

Summary

Send an Adaptive Card to a Teams conversation

Inputs

  • serviceUrl (required) — Service URL from the Teams activity (e.g., https://smba.trafficmanager.net/amer/)
  • conversationId (required) — The conversation ID where to send the message
  • adaptiveCardJson (required) — The Adaptive Card JSON to send
  • additionalFields — Additional Fields (e.g., channel ID, tenant ID, message type)

Output shape

An array of result objects indicating success and activity details

Each element includes a success flag and activityId; may contain additional response data. Errors are either thrown or returned as error objects when continueOnFail is enabled.

Examples

Example 1: Send a simple Adaptive Card

Configure Service URL, Conversation ID, set Adaptive Card JSON, optionally adjust channelId/tenantId/messageType; leave defaults for other fields.

Example 2: Send with custom channel and message type

Set Service URL, Conversation ID, provide Adaptive Card JSON, set additionalFields.channelId to a specific channel, set messageType to "notification".

Discussion