---
schema_version: "1"
id: 7945cc8f7eb9886c0b2208ffa6d8deb85a47f6080b248b818917e8509939d46b
title: Send Conversation Messages Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_sendconversationmessages.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_sendconversationmessages.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 996d5efed2e7953e986dd3835925e8a653663b1daddb2f68f251f7f40533ba39
description: Send a messaging component to one or more messaging users in an enhanced messaging channel or Enhanced In-App Chat.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Send Conversation Messages Action

Send a messaging component to one or more messaging users in an enhanced messaging channel or Enhanced In-App Chat.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. In the Action field, enter Messages, and select **Send Conversation Messages**.

## Set Input Values

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d313225e83">Field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d313225e86">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e83 "><strong class="uicontrol">Messaging Users</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e86 ">Select a collection variable that contains the IDs of up to 100 messaging users to
              receive the message. To send more than 100 messages, divide your end user recipients into
              batches of 100 or fewer and repeat the action for each batch.</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e83 "><strong class="uicontrol">Messaging Component</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e86 ">Select a messaging component, which provides the content of your message. Only
              notification messaging components can be sent with flow actions. You can also reference up
              to 5 custom parameters on the selected messaging component.</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e83 "><strong class="uicontrol">Messaging Timing</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e86 ">
              <p>Optionally, select an option to limit when the message is sent.</p>
              <ul>
                <li>Any Time: Send the message regardless of whether the messaging user is engaged in an
                  active messaging session with your company.</li>
                <li>Not During Active Sessions: Send the message unless the messaging user is engaged in a
                  session with a status of Active. The message is sent when the session’s status
                  changes.</li>
                <li>Not During Open Sessions: Send the message unless the messaging user is engaged in a
                  session with a status other than Error or Ended. The message is sent when the session’s
                  status changes to Error or Ended.</li>
              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e83 "><strong class="uicontrol">Apply Messaging channel consent preferences</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e86 ">
              <p>Determine who receives the message.</p><a name="flow_ref_elements_actions_sendconversationmessages__ul_ov2_bhg_gcc"><!-- --></a>
              <ul id="flow_ref_elements_actions_sendconversationmessages__ul_ov2_bhg_gcc">
                <li>To respect messaging users' consent settings for a channel, select <strong class="uicontrol">Yes,
                    apply Messaging End User settings</strong>. This is the most common approach.</li>
                <li>To add custom consent logic, select <strong class="uicontrol">No, I’ll apply custom consent
                    logic</strong>. For example, if a channel requires users to explicitly opt in, you can
                  select <strong class="uicontrol">No, I’ll apply custom consent logic</strong> and customize your flow
                  to send the message to users who both implicitly and explicitly opt in.</li>
                <li>To send the message only to messaging users who opted into a particular subscription,
                  select <strong class="uicontrol">Yes, choose a communication subscription</strong>. In the subsequent
                  field, enter a flow variable that provides the subscription ID. The subscription must be
                  tied to the channel where you’re sending the message. This option is visible only if you
                  have a unified channel that supports marketing interactions.</li>
              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e83 "><strong class="uicontrol">Session Longevity</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d313225e86 ">
              <p>Decide whether to end the session after the message is sent. Available values are:</p>
              <ul>
                <li><strong class="uicontrol">No, Keep Session Open</strong>: After the flow sends the
                  message, keep the messaging session in a New state. If the end user doesn’t
                  respond within 48 hours, the session ends. This is a good option if you expect
                  customers to respond to automated messages and want service reps to see their
                  response in context.</li>

                <li><strong class="uicontrol">Yes, End Session Immediately</strong>: After the flow sends the
                  message, end the messaging session. If the customer responds, a new messaging
                  session is created and routed to your support team.</li>

              </ul>
            </td>

          </tr>
        </tbody>
      </table>

## Usage

Here’s an example of the Send Conversation Messages action in a simple flow.

![Send Conversation Messages action](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/send_conv_messages.png)

To track messages sent by this action, query the ConvMessageSendRequest object.