Send chat message
Send a message into an existing Teams chat, or straight to one person, starting a one-on-one chat with them when needed.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/send_chat_message · 8 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Chat ID | String | No | Chat id, e.g. from Create chat; or give to instead. | |
| Message | String | Yes | Message text (HTML allowed when html is true). | |
| Body is HTML | Boolean | No | false | Message is HTML. |
| Importance | String | No | normal | Importance of the message. |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
| To | String | No | Person's email address or user id; their one-on-one chat with the signed-in user is used, or started. Used instead of chat_id. | |
| Mentions | List | No | People in the chat to @mention, by email address or user id. Write @[ann@contoso.com] in the message where a mention goes; others are put at the start. |
Outputs
| Output | Type | What it is |
|---|---|---|
| message_id | String | Message id. |
| chat_id | String | Chat the message went to. |