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.

FieldTypeRequiredDefaultConstraintsExample
chat_id
Chat id — from teams.list_chats.
stringYes———
message
Message content. Supports {{ }} expressions.
stringYes———
content_type
html or text.
stringNo—one of "html", "text"—

Output

One shape.

result

FieldTypeExample
id
The posted message's id.
string—
web_url
string—
{
  "id": "",
  "web_url": ""
}

Notes

  • Needs a delegated Chat.ReadWrite permission.

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.