Send chat message action

The Send chat message action is used to automatically send a message to a specific user or group chat in Microsoft Teams by specifying the recipients email or Chat ID. This enables your automation to communicate updates, alerts, or information directly to Teams user or group as part of your workflow.

Note: This action only retrieves data for users within the organization or the same domain.

Settings

  • Use the Session name field to select one of the following options:
    • Session name: Enter the name of the session you used in the Connect action.

      (Optional) Click the Insert a value icon to select an existing variable that you have used to store the Microsoft Teams session name.

    • Variable: Enter the name of the variable that you have used to store the session name.
  • Within the Send message to, use the following options to specify the recipient of your message:
    • Email: Use the recipient's Microsoft 365 email.​ For example, john.doe@company.com
      Note: The Email can be the user's email or user principal name.
    • Chat ID: See Using the For each chat of the user iterator to generate Chat ID.

    You can also pass a variable that contains the value.​

  • In the Message field, enter the actual content of the chat message to be sent. You can add the content in plain text or use a string variable.​
  • In Assign message ID to variable field, store the unique message ID of the sent message in a variable.