Integrate Microsoft Teams into the workflow. Read, write, update, and delete chat and channel messages. Reply to messages, add reactions, and list team/channel members. Can be used in trigger mode to trigger a workflow when a message is sent to a chat or channel. To mention users in messages, wrap their name in \<at> tags: \<at>userName\</at>
Read content from a Microsoft Teams chat
| Parameter | Type | Required | Description |
|---|
chatId | string | Yes | The ID of the chat to read from |
includeAttachments | boolean | No | Download and include message attachments (hosted contents) into storage |
| Parameter | Type | Description |
|---|
success | boolean | Teams chat read operation success status |
messageCount | number | Number of messages retrieved from chat |
chatId | string | ID of the chat that was read from |
messages | array | Array of chat message objects |
attachmentCount | number | Total number of attachments found |
attachmentTypes | array | Types of attachments found |
content | string | Formatted content of chat messages |
attachments | file[] | Uploaded attachments for convenience (flattened) |
Write or update content in a Microsoft Teams chat
| Parameter | Type | Required | Description |
|---|
chatId | string | Yes | The ID of the chat to write to |
content | string | Yes | The content to write to the message |
files | file[] | No | Files to attach to the message |
| Parameter | Type | Description |
|---|
success | boolean | Teams chat message send success status |
messageId | string | Unique identifier for the sent message |
chatId | string | ID of the chat where message was sent |
createdTime | string | Timestamp when message was created |
url | string | Web URL to the message |
updatedContent | boolean | Whether content was successfully updated |
Read content from a Microsoft Teams channel
| Parameter | Type | Required | Description |
|---|
teamId | string | Yes | The ID of the team to read from |
channelId | string | Yes | The ID of the channel to read from |
includeAttachments | boolean | No | Download and include message attachments (hosted contents) into storage |
| Parameter | Type | Description |
|---|
success | boolean | Teams channel read operation success status |
messageCount | number | Number of messages retrieved from channel |
teamId | string | ID of the team that was read from |
channelId | string | ID of the channel that was read from |
messages | array | Array of channel message objects |
attachmentCount | number | Total number of attachments found |
attachmentTypes | array | Types of attachments found |
content | string | Formatted content of channel messages |
attachments | file[] | Uploaded attachments for convenience (flattened) |
Write or send a message to a Microsoft Teams channel
| Parameter | Type | Required | Description |
|---|
teamId | string | Yes | The ID of the team to write to |
channelId | string | Yes | The ID of the channel to write to |
content | string | Yes | The content to write to the channel |
files | file[] | No | Files to attach to the message |
| Parameter | Type | Description |
|---|
success | boolean | Teams channel message send success status |
messageId | string | Unique identifier for the sent message |
teamId | string | ID of the team where message was sent |
channelId | string | ID of the channel where message was sent |
createdTime | string | Timestamp when message was created |
url | string | Web URL to the message |
updatedContent | boolean | Whether content was successfully updated |
Update an existing message in a Microsoft Teams chat
| Parameter | Type | Required | Description |
|---|
chatId | string | Yes | The ID of the chat containing the message |
messageId | string | Yes | The ID of the message to update |
content | string | Yes | The new content for the message |
| Parameter | Type | Description |
|---|
success | boolean | Whether the update was successful |
messageId | string | ID of the updated message |
updatedContent | boolean | Whether content was successfully updated |
Update an existing message in a Microsoft Teams channel
| Parameter | Type | Required | Description |
|---|
teamId | string | Yes | The ID of the team |
channelId | string | Yes | The ID of the channel containing the message |
messageId | string | Yes | The ID of the message to update |
content | string | Yes | The new content for the message |
| Parameter | Type | Description |
|---|
success | boolean | Whether the update was successful |
messageId | string | ID of the updated message |
updatedContent | boolean | Whether content was successfully updated |
Soft delete a message in a Microsoft Teams chat
| Parameter | Type | Required | Description |
|---|
chatId | string | Yes | The ID of the chat containing the message |
messageId | string | Yes | The ID of the message to delete |
| Parameter | Type | Description |
|---|
success | boolean | Whether the deletion was successful |
deleted | boolean | Confirmation of deletion |
messageId | string | ID of the deleted message |
Soft delete a message in a Microsoft Teams channel
| Parameter | Type | Required | Description |
|---|
teamId | string | Yes | The ID of the team |
channelId | string | Yes | The ID of the channel containing the message |
messageId | string | Yes | The ID of the message to delete |
| Parameter | Type | Description |
|---|
success | boolean | Whether the deletion was successful |
deleted | boolean | Confirmation of deletion |
messageId | string | ID of the deleted message |
Reply to an existing message in a Microsoft Teams channel
| Parameter | Type | Required | Description |
|---|
teamId | string | Yes | The ID of the team |
channelId | string | Yes | The ID of the channel |
messageId | string | Yes | The ID of the message to reply to |
content | string | Yes | The reply content |
| Parameter | Type | Description |
|---|
success | boolean | Whether the reply was successful |
messageId | string | ID of the reply message |
updatedContent | boolean | Whether content was successfully sent |
Get a specific message from a Microsoft Teams chat or channel
| Parameter | Type | Required | Description |
|---|
teamId | string | No | The ID of the team (for channel messages) |
channelId | string | No | The ID of the channel (for channel messages) |
chatId | string | No | The ID of the chat (for chat messages) |
messageId | string | Yes | The ID of the message to retrieve |
| Parameter | Type | Description |
|---|
success | boolean | Whether the retrieval was successful |
content | string | The message content |
metadata | object | Message metadata including sender, timestamp, etc. |
Add an emoji reaction to a message in Microsoft Teams
| Parameter | Type | Required | Description |
|---|
teamId | string | No | The ID of the team (for channel messages) |
channelId | string | No | The ID of the channel (for channel messages) |
chatId | string | No | The ID of the chat (for chat messages) |
messageId | string | Yes | The ID of the message to react to |
reactionType | string | Yes | The emoji reaction (e.g., ❤️, 👍, 😊) |
| Parameter | Type | Description |
|---|
success | boolean | Whether the reaction was added successfully |
reactionType | string | The emoji that was added |
messageId | string | ID of the message |
Remove an emoji reaction from a message in Microsoft Teams
| Parameter | Type | Required | Description |
|---|
teamId | string | No | The ID of the team (for channel messages) |
channelId | string | No | The ID of the channel (for channel messages) |
chatId | string | No | The ID of the chat (for chat messages) |
messageId | string | Yes | The ID of the message |
reactionType | string | Yes | The emoji reaction to remove (e.g., ❤️, 👍, 😊) |
| Parameter | Type | Description |
|---|
success | boolean | Whether the reaction was removed successfully |
reactionType | string | The emoji that was removed |
messageId | string | ID of the message |
List all members of a Microsoft Teams team
| Parameter | Type | Required | Description |
|---|
teamId | string | Yes | The ID of the team |
| Parameter | Type | Description |
|---|
success | boolean | Whether the listing was successful |
members | array | Array of team members |
memberCount | number | Total number of members |
List all members of a Microsoft Teams channel
| Parameter | Type | Required | Description |
|---|
teamId | string | Yes | The ID of the team |
channelId | string | Yes | The ID of the channel |
| Parameter | Type | Description |
|---|
success | boolean | Whether the listing was successful |
members | array | Array of channel members |
memberCount | number | Total number of members |
Trigger workflow from Microsoft Teams channel messages via outgoing webhooks
| Parameter | Type | Description |
|---|
from.id | string | Sender ID |
from.name | string | Sender name |
from.aadObjectId | string | AAD Object ID |
message.raw.attachments | array | Array of attachments |
message.raw.channelData.team.id | string | Team ID |
message.raw.channelData.tenant.id | string | Tenant ID |
message.raw.channelData.channel.id | string | Channel ID |
message.raw.channelData.teamsTeamId | string | Teams team ID |
message.raw.channelData.teamsChannelId | string | Teams channel ID |
message.raw.conversation.id | string | Composite conversation ID |
message.raw.conversation.name | string | Conversation name (nullable) |
message.raw.conversation.isGroup | boolean | Is group conversation |
message.raw.conversation.tenantId | string | Tenant ID |
message.raw.conversation.aadObjectId | string | AAD Object ID (nullable) |
message.raw.conversation.conversationType | string | Conversation type (channel) |
message.raw.text | string | Message text content |
message.raw.messageType | string | Message type |
message.raw.channelId | string | Channel ID (msteams) |
message.raw.timestamp | string | Timestamp |
activity | object | Activity payload |
conversation.id | string | Composite conversation ID |
conversation.name | string | Conversation name (nullable) |
conversation.isGroup | boolean | Is group conversation |
conversation.tenantId | string | Tenant ID |
conversation.aadObjectId | string | AAD Object ID (nullable) |
conversation.conversationType | string | Conversation type (channel) |
Trigger workflow from new messages in Microsoft Teams chats via Microsoft Graph subscriptions
| Parameter | Type | Description |
|---|
message_id | string | Message ID |
chat_id | string | Chat ID |
from_name | string | Sender display name |
text | string | Message body (HTML or text) |
created_at | string | Message timestamp |
attachments | file[] | Uploaded attachments as files |
- Category:
tools
- Type:
microsoft_teams