MS Teams Bot Framework icon

MS Teams Bot Framework

Send messages and interact with MS Teams using Azure Bot Framework

Send Message

AI-generated

Summary

Send a message to a Microsoft 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
  • messageText (required) — The text message to send
  • additionalFields — Optional extra fields such as channel ID, tenant ID, and message type

Output shape

An array of result objects

Each element contains a success flag and the full activity response; when continueOnFail is disabled errors throw, otherwise error details are included.

Examples

Example 1: Send a simple text message to a channel

Set Service URL, Conversation ID, and Message Text; leave Additional Fields at default.

Example 2: Reply to an existing message

Provide Service URL, Conversation ID, Activity ID, and Reply Text; optionally configure Additional Fields.

Discussion