Skip to main content
teams.onChatMessagePosted watches one existing one-to-one, group, or meeting chat.

Example

automations/watch-teams-chat.automation.ts

Options

The trigger requires the opaque Graph chat ID as chatId: string. Optional static account defaults to the project Microsoft binding. A runtime signal can’t choose either value.

Trigger data

Returns TeamsChatMessage & { chatId: string } with body, message ID, sender, timestamps, attachments, mentions, reactions, importance, reply parent, subject, summary, locale, URL, and Graph ETag when available.