AACFlow

Microsoft Teams

Manage messages, reactions, and members in Teams

Usage Instructions

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>

Tools

microsoft_teams_read_chat

Input

ParameterTypeRequiredDescription
chatIdstringYesThe ID of the chat to read from (e.g., "19:abc123def456@thread.v2" - from chat listings)
includeAttachmentsbooleanNoNo description

Output

ParameterTypeDescription
successbooleanTeams chat read operation success status
messageCountnumberNumber of messages retrieved from chat
chatIdstringID of the chat that was read from
messagesarrayArray of chat message objects
attachmentCountnumberTotal number of attachments found
attachmentTypesarrayTypes of attachments found
contentstringFormatted content of chat messages
attachmentsfile[]Uploaded attachments for convenience (flattened)

microsoft_teams_write_chat

Input

ParameterTypeRequiredDescription
chatIdstringYesThe ID of the chat to write to (e.g., "19:abc123def456@thread.v2" - from chat listings)
contentstringYesThe content to write to the message (plain text or HTML formatted, supports @mentions)
filesfile[]NoNo description

Output

ParameterTypeDescription
successbooleanTeams chat message send success status
messageIdstringUnique identifier for the sent message
chatIdstringID of the chat where message was sent
createdTimestringTimestamp when message was created
urlstringWeb URL to the message
updatedContentbooleanWhether content was successfully updated
filesfile[]Files attached to the message

microsoft_teams_read_channel

Input

ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team to read from (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings)
channelIdstringYesThe ID of the channel to read from (e.g., "19:abc123def456@thread.tacv2" - from channel listings)
includeAttachmentsbooleanNoNo description

Output

ParameterTypeDescription
successbooleanTeams channel read operation success status
messageCountnumberNumber of messages retrieved from channel
teamIdstringID of the team that was read from
channelIdstringID of the channel that was read from
messagesarrayArray of channel message objects
attachmentCountnumberTotal number of attachments found
attachmentTypesarrayTypes of attachments found
contentstringFormatted content of channel messages
attachmentsfile[]Uploaded attachments for convenience (flattened)

microsoft_teams_write_channel

Input

ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team to write to (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings)
channelIdstringYesThe ID of the channel to write to (e.g., "19:abc123def456@thread.tacv2" - from channel listings)
contentstringYesThe content to write to the channel (plain text or HTML formatted, supports @mentions)
filesfile[]NoNo description

Output

ParameterTypeDescription
successbooleanTeams channel message send success status
messageIdstringUnique identifier for the sent message
teamIdstringID of the team where message was sent
channelIdstringID of the channel where message was sent
createdTimestringTimestamp when message was created
urlstringWeb URL to the message
updatedContentbooleanWhether content was successfully updated
filesfile[]Files attached to the message

microsoft_teams_update_chat_message

Input

ParameterTypeRequiredDescription
chatIdstringYesThe ID of the chat containing the message (e.g., "19:abc123def456@thread.v2" - from chat listings)
messageIdstringYesThe ID of the message to update (e.g., "1234567890123" - a numeric string from message responses)
contentstringYesNo description

Output

ParameterTypeDescription
successbooleanWhether the update was successful
messageIdstringID of the updated message
updatedContentbooleanWhether content was successfully updated

microsoft_teams_update_channel_message

Input

ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings or channel info)
channelIdstringYesThe ID of the channel containing the message (e.g., "19:abc123def456@thread.tacv2" - from channel listings)
messageIdstringYesThe ID of the message to update (e.g., "1234567890123" - a numeric string from message responses)
contentstringYesNo description

Output

ParameterTypeDescription
successbooleanWhether the update was successful
messageIdstringID of the updated message
updatedContentbooleanWhether content was successfully updated

microsoft_teams_delete_chat_message

Input

ParameterTypeRequiredDescription
chatIdstringYesThe ID of the chat containing the message (e.g., "19:abc123def456@thread.v2" - from chat listings)
messageIdstringYesThe ID of the message to delete (e.g., "1234567890123" - a numeric string from message responses)

Output

ParameterTypeDescription
successbooleanWhether the deletion was successful
deletedbooleanConfirmation of deletion
messageIdstringID of the deleted message

microsoft_teams_delete_channel_message

Input

ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings or channel info)
channelIdstringYesThe ID of the channel containing the message (e.g., "19:abc123def456@thread.tacv2" - from channel listings)
messageIdstringYesThe ID of the message to delete (e.g., "1234567890123" - a numeric string from message responses)

Output

ParameterTypeDescription
successbooleanWhether the deletion was successful
deletedbooleanConfirmation of deletion
messageIdstringID of the deleted message

microsoft_teams_reply_to_message

Input

ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings or channel info)
channelIdstringYesThe ID of the channel (e.g., "19:abc123def456@thread.tacv2" - from channel listings)
messageIdstringYesThe ID of the message to reply to (e.g., "1234567890123" - a numeric string from message responses)
contentstringYesNo description

Output

ParameterTypeDescription
successbooleanWhether the reply was successful
messageIdstringID of the reply message
updatedContentbooleanWhether content was successfully sent

microsoft_teams_get_message

Input

ParameterTypeRequiredDescription
teamIdstringNoThe ID of the team for channel messages (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID)
channelIdstringNoThe ID of the channel for channel messages (e.g., "19:abc123def456@thread.tacv2")
chatIdstringNoThe ID of the chat for chat messages (e.g., "19:abc123def456@thread.v2")
messageIdstringYesThe ID of the message to retrieve (e.g., "1234567890123" - a numeric string from message responses)

Output

ParameterTypeDescription
successbooleanWhether the retrieval was successful
contentstringThe message content
metadataobjectMessage metadata including sender, timestamp, etc.
messageIdstringMessage ID
contentstringMessage content
createdTimestringMessage creation timestamp
urlstringWeb URL to the message
teamIdstringTeam ID
channelIdstringChannel ID
chatIdstringChat ID
messagesarrayArray of message details
messageCountnumberNumber of messages

microsoft_teams_set_reaction

Input

ParameterTypeRequiredDescription
teamIdstringNoThe ID of the team for channel messages (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID)
channelIdstringNoThe ID of the channel for channel messages (e.g., "19:abc123def456@thread.tacv2")
chatIdstringNoThe ID of the chat for chat messages (e.g., "19:abc123def456@thread.v2")
messageIdstringYesThe ID of the message to react to (e.g., "1234567890123" - a numeric string from message responses)
reactionTypestringYesNo description

Output

ParameterTypeDescription
successbooleanWhether the reaction was added successfully
reactionTypestringThe emoji that was added
messageIdstringID of the message

microsoft_teams_unset_reaction

Input

ParameterTypeRequiredDescription
teamIdstringNoThe ID of the team for channel messages (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID)
channelIdstringNoThe ID of the channel for channel messages (e.g., "19:abc123def456@thread.tacv2")
chatIdstringNoThe ID of the chat for chat messages (e.g., "19:abc123def456@thread.v2")
messageIdstringYesThe ID of the message (e.g., "1234567890123" - a numeric string from message responses)
reactionTypestringYesNo description

Output

ParameterTypeDescription
successbooleanWhether the reaction was removed successfully
reactionTypestringThe emoji that was removed
messageIdstringID of the message

microsoft_teams_list_team_members

Input

ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings)

Output

ParameterTypeDescription
successbooleanWhether the listing was successful
membersarrayArray of team members
memberCountnumberTotal number of members

microsoft_teams_list_channel_members

Input

ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings)
channelIdstringYesThe ID of the channel (e.g., "19:abc123def456@thread.tacv2" - from channel listings)

Output

ParameterTypeDescription
successbooleanWhether the listing was successful
membersarrayArray of channel members
memberCountnumberTotal number of members

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started