Send Chat Message
teams.send_chat_message
ActionChat & messagingconnection required
POST /chats/{id}/messages.
Post to a 1:1 or group chat (a direct message).
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Microsoft Teams
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- tenant
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
chat_id Chat id — from teams.list_chats. | string | Yes | — | — | — |
message Message content. Supports {{ }} expressions. | string | Yes | — | — | — |
content_type html or text. | string | No | — | one of "html", "text" | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The posted message's id. | string | — |
web_url | string | — |
{
"id": "",
"web_url": ""
}Notes
- Needs a delegated Chat.ReadWrite permission.
Related Microsoft Teams nodes
Templates that use Microsoft Teams
Solutions with Microsoft Teams
See Send Chat Message run in a workflow.
In a technical demo we add the Microsoft Teams connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.