Microsoft Teams
Send channel and chat messages, and trigger workflows on new Teams activity
Connect Microsoft Teams to send channel and chat messages and start workflows on new mentions, messages, or meeting transcripts.
Authentication: OAuth 2.0. Connect your Microsoft account on the integrations page.
Triggers
New Channel Mention
Fires when a user is mentioned in a Teams channel message.
| Output | Type | Description |
|---|---|---|
messageId | string | ID of the message itself (of the reply, for a reply) |
isReply | boolean | Whether the message is a reply in a thread |
replyToId | string | ID of the thread's top-level message for a reply, empty otherwise |
content | string | Message content |
from | string | Author's display name |
channelId | string | Channel ID |
teamId | string | Team ID |
mentionedUsers | string | Names of the mentioned users |
createdDateTime | string | When the message was sent |
New Channel Message
Fires when a new message is posted in a monitored channel.
| Output | Type | Description |
|---|---|---|
messageId | string | ID of the message itself (of the reply, for a reply) |
isReply | boolean | Whether the message is a reply in a thread |
replyToId | string | ID of the thread's top-level message for a reply, empty otherwise |
content | string | Message content |
from | string | Author's display name |
channelId | string | Channel ID |
teamId | string | Team ID |
createdDateTime | string | When the message was sent |
Replies in threads
Both channel triggers have the option Include thread replies, off by default. Off, they start only on new top-level messages in the channel. On, they also start when someone replies under a message; the keyword and mention filters then apply to the reply. isReply and replyToId tell you which message was answered.
A workflow does not start on the replies it posts itself with Reply to Channel Message, so a workflow that answers in the thread does not trigger itself in a loop. Replies from other workflows and from people still start it.
New Chat Message
Fires when a new message arrives in a direct chat or group chat.
| Output | Type | Description |
|---|---|---|
messageId | string | Message ID |
text | string | Message text |
user | string | Sender's user ID |
chatId | string | Chat ID |
New Meeting Transcript
Fires when a meeting transcript becomes available after a Teams meeting.
| Output | Type | Description |
|---|---|---|
transcriptId | string | Transcript ID |
meetingId | string | Meeting ID |
content | string | Transcript text with timestamps |
createdDateTime | string | When the transcript was created |
The transcript includes speaker names only if speaker attribution is enabled in your Microsoft 365 tenant. If it is off (Microsoft's default), the trigger delivers the transcript without speaker names. A Teams administrator changes this setting in the Teams Admin Center.
To test the workflow, first click "Get test event" on the trigger. This loads the transcript of your most recent recorded meeting as test data.
Actions
Send Channel Message
Posts a message to a Teams channel.
| Input | Required | Description |
|---|---|---|
| Team ID | Yes | The team containing the channel |
| Channel ID | Yes | The channel to post to |
| Message | Yes | Message text (supports markdown) |
| Output | Type | Description |
|---|---|---|
messageId | string | ID of the posted message |
Reply to Channel Message
Posts a reply in the thread of a channel message.
| Input | Required | Description |
|---|---|---|
| Team ID | Yes | The team containing the channel |
| Channel ID | Yes | The channel containing the message |
| Message ID | Yes | The message to reply to |
| Thread Message ID (parent) | No | Only when the message is itself a reply: the thread's top-level message. Teams threads are one level deep, so the reply goes under it. |
| Content | Yes | Reply text (plain text or HTML) |
To answer whatever started the workflow, map the channel trigger's messageId to Message ID and its replyToId to Thread Message ID (parent).
| Output | Type | Description |
|---|---|---|
messageId | string | ID of the posted reply |
replyToId | string | ID of the top-level message the reply is under |
webUrl | string | Link to the reply in Teams, when Microsoft returns one |
Get Channel Messages
Retrieves recent messages from a channel.
| Input | Required | Description |
|---|---|---|
| Team ID | Yes | Team ID |
| Channel ID | Yes | Channel ID |
| Limit | No | Number of messages to retrieve |
| Output | Type | Description |
|---|---|---|
messages | array | Message objects |
Search Messages
Searches messages across Teams.
| Input | Required | Description |
|---|---|---|
| Query | Yes | Search query |
| Output | Type | Description |
|---|---|---|
messages | array | Matching messages |
Send Chat Message
Sends a message in a direct chat or group chat.
| Input | Required | Description |
|---|---|---|
| Chat ID | Yes | The chat to send to |
| Message | Yes | Message text |
List Teams
Returns all teams the connected account is a member of.
| Output | Type | Description |
|---|---|---|
teams | array | Team objects with id, displayName |
List Channels
Returns channels within a team.
| Input | Required | Description |
|---|---|---|
| Team ID | Yes | The team to list channels for |
| Output | Type | Description |
|---|---|---|
channels | array | Channel objects with id, displayName |
List Chats
Returns direct and group chats for the connected account.
| Output | Type | Description |
|---|---|---|
chats | array | Chat objects with id, topic, members |
Get Chat Messages
Retrieves messages from a specific chat.
| Input | Required | Description |
|---|---|---|
| Chat ID | Yes | Chat ID |
| Output | Type | Description |
|---|---|---|
messages | array | Message objects |
Find Chat
Finds a chat by participant email addresses.
| Input | Required | Description |
|---|---|---|
| Member Emails | Yes | Email addresses of chat participants |
| Output | Type | Description |
|---|---|---|
chat | object | Chat object or null if not found |