Microsoft Teams (Lite) icon

Microsoft Teams (Lite)

Consume Microsoft Teams API in a admin friendly way (Lite)

Actions11

Chat Message → Create

AI-generated

Summary

Create a message in a chat, auto-creating a one-on-one chat if needed.

Inputs

  • chatType — Whether to send to a user directly or to an existing chat. Defaults to one-on-one if not specified. Select 'existingChat' to target a pre-existing group or one-on-one chat via chatId.
  • sender (required) — The account to send the message from. Appears only when chatType is one-on-one. Select from list (current user) or enter email address.
  • recipient (required) — The recipient user. Appears only when chatType is one-on-one. Select from list or enter email address.
  • chatId (required) — The existing chat to send the message to. Appears only when chatType is existingChat. Select from list, enter ID (format: 19:...@unq.gbl.spaces), or paste a chat URL.
  • contentType (required) — Whether the message body is plain text or HTML.
  • message (required) — The content of the message to be sent.

Output shape

The Microsoft Graph API response containing the created message object, including its ID and metadata.

When chatType is one-on-one and the chat does not already exist, the operation first creates a one-on-one chat between the sender and recipient before sending the message. When chatType is existingChat, the message is posted directly to the specified chat ID. Message body is formatted via contentType (text or HTML) using the prepareMessage utility, which wraps the message in { body: { contentType, content: message } }.

Links

Discussion