Send Chat Message
In this article
Overview
You can use this Snap to send a chat message using the specified Chat ID.
Snap Type
Send Message as Chat Snap is a Write-type Snap that sends a text message to a user.
Support for Ultra Pipelines
Works in Ultra Pipelines.
Limitations
Does not support the application (client_credentials grant type) option in the Teams Dynamic OAuth2 Account.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
|---|---|---|---|---|
Input | Document
|
|
| The input includes:
|
Output | Document
|
|
| The typical output includes:
|
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines. | |||
Snap Settings
Expression : JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
SnapGPT : Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
Suggestion : Populates a list of values dynamically based on your Account configuration.
Upload : Uploads files. Learn more.
Learn more about the icons in the Snap Settings dialog.
Field Name | Field Type | Description |
|---|---|---|
Label*
| String | The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.
Default Value: Send Chat Message |
Message
| String/Expression | The actual content to send to the user. This Snap supports the following message formats: HTML formatted message: <h1>Welcome to the Team!</h1>
<p>We're excited to have you join our project team.</p>
<ul>
<li>Check your email for onboarding materials</li>
<li>Join our next team meeting on Friday</li>
<li>Don't hesitate to reach out with questions</li>
</ul>Message with data from upstream Snaps: "New order received:
Order ID: " + $orderId + "
Customer: " + $customerName + "
Amount: $" + $orderAmount + "
Delivery Date: " + $deliveryDate
Dynamic Message Using Expressions "Hello " + $firstName + "! Your request #" + $requesRich Text with Emojis and Formatting <h2>🎉 Congratulations!</h2>
<p>Your project milestone has been achieved!</p>
<p><strong>Achievement:</strong> Database migration completed</p>
<p><em>Great work team! 👏</em></p>
Default Value: None |
Chat ID | String/Expression/Suggestion | The unique identifier of the chat conversation where you want to send your message. You can obtain Chat IDs using the following methods:
Here are a few examples of how you can configure the Chat ID field:
Chat ID Format Patterns: Group chat format:
Direct message format:
Meeting chat format:
Default Value: N/A |
Number of retries | Integer/Expression | Specify the maximum number of attempts to be made to receive a response. Default Value: 0 |
Retry interval (seconds) | Integer/Expression | Specify the time interval between two successive retry requests. A retry happens only when the previous attempt resulted in an exception. Default Value: 1 |
Snap Execution
| Dropdown list | Select one of the following three modes in which the Snap executes:
Default Value: Execute only |
Example
Teams message automation
This example pipeline demonstrates how to send an HTML-formatted chat message to a Microsoft Teams group chat. The message contains an image, formatted text with quotes, and various emoji characters displayed in different formats and sizes.
Configure the Send Chat Message Snap to send an HTML-formatted message to a Microsoft Teams group chat. The message includes an embedded image from an external URL, formatted text about WWF's mission with quotes, and multiple emoji characters displayed using both decimal and hexadecimal HTML entity codes with custom font sizing.
On validation, the output provides a preview of the following, allowing you to verify the message configuration before pipeline execution.
You can connect a Mapper Snap after the Send Chat Message Snap to capture and transform the timestamp and other output data for use in downstream operations like updating messages or creating threaded conversations.
On execution, the Snap sends the HTML message to the Microsoft Teams group chat.
Downloads
Download and import the pipeline into the SnapLogic application.
Configure Snap accounts, as applicable.
Provide pipeline parameters, as applicable.
Snap Pack History
Related Content
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2025 SnapLogic, Inc.