Skip to content
Last updated

Using the Omni Channel message activity

In order to send messages using the Omni Channel message activity in your journey, you must:

  1. Add the Omni Channel message activity to the journey itself
  2. Configure the Omni Channel message activity

Adding the Omni Channel message activity to your journey

To add the Omni Channel message activity to your Salesforce Journey:

  1. Navigate to or create the journey to which you'd like to add the Omni Channel message activity. If you are creating a journey, ensure you select a Multi-Step journey.

    Omni Channel Multi Step

  2. Locate the Omni Channel message activity under the Messages category of the ACTIVITIES section on the left side of the screen.

    Omni Channel activity

  3. Click and drag the Omni Channel message activity to an appropriate space on your journey.

    Omni Channel drag

After it has been added to your journey, you must configure the Omni Channel message activity.

Configuring the Omni Channel message activity

To configure an Omni Channel message activity that has been included in your journey:

  1. Double-click the Omni Channel message activity that is included in your journey. The first page of the Omni Channel message activity configuration wizard is displayed.

    Omni Channel configure

  2. Select the Conversation API app to use with your Journey from the Conversation API App drop-down list.

    Select Conversation app

    Depending on your configuration (i.e., if you have an existing solution that is already set to the CONVERSATION processing mode), you may also set the processing mode. If this is a new solution, or if your existing solution uses an app that is already set to DISPATCH mode, you will be unable to update the processing mode. Note that, by default, all new Conversation API apps are set to DISPATCH mode.

    Finally, you may set the queue to high priority.

  3. A new section, Select and prioritise channels, is displayed. Use the left and right arrow buttons to transfer channels from the Available channels list to the Selected channels list. The Selected channels are the channels the Omnichannel Connector app will use to send messages in this campaign. Use the up and down arrow buttons on the right side of the Selected channels list to determine channel priority.

    Select Conversation channels

  4. When you have completed selecting and prioritising your channels, click Next in the bottom right corner of the screen. The Channel identities page is displayed.

  5. The channel identities drop-down lists that are displayed depend on the channels you selected on the previous page. The channel identities represent the recipients of your message(s). For each displayed channel, select the source of the channel identity/recipient (for example, a phone number when using the SMS, WhatsApp, MMS, and/or RCS channels) from the drop-down list.

    Note:

    The options available in these drop-down lists depend on the entry source that precedes the Omni Channel message activity in your journey.

    Select Conversation identities

    You may also specify what metadata to be included with sent messages. Additionally, you can specify an SMS Sender ID for outbound messages (the default Sender ID configured for your Sinch SMS account will be used if this value is not specified).

  6. After you have completed selecting channel identities, click Next in the bottom right corner of the screen. The Setup templates page is displayed.

  7. Select either Starting a conversation (if this journey is to be used to initiate conversations with recipients) or Follow up conversation (if this journey is to be used to continue a conversation). Note that some channels require an approved template to start a conversation, whereas follow up conversations allow for the use of a wider variety of templates.

    Omni Channel template conversation type

  8. If you would like specific templates to be used with specific channels (instead of a single template for all channels), select those channels from the Select channel drop-down list and click Add channel. A section representing that channel is added to the bottom of the screen.

    Omni Channel add channel templates

    Note the following:

    • In addition to omni-channel templates that can be used by any channel of the Conversation API, you are able to configure use channel-specific templates for certain Conversation API channels. These are templates that meet specific requirements defined by the channel itself. In many cases, these templates are used to initiate conversations. If these templates are configured in your Conversation API solution, they will appear in the drop-down list for the corresponding channel.
    • In some cases, channel-specific templates may be required. If so, the corresponding channel will appear at the bottom of the screen, regardless of the channel selections you made from the Select channel drop-downlist.
  9. Select the default omni-channel template to use when sending your message from the Select default template drop-down list, or click Create Omnitemplate to create a new template.

    Omni Channel default template

    Alternatively, depending on the channels you selected earlier in the process, you may also have channel-specific templates you can choose from. These are displayed in their own sections, and may have additional options.

    Note:

    If you selected Starting a conversation and a channel that requires an approved template in order to initiate a conversation, you must select a channel-specific template for that corresponding channel.

    Omni Channel channel specific template

    In some cases, you also define an explicit payload for the channel-specific template by clicking the coding icon and clicking Open editor.

    Omni Channel specific code icon

    Omni Channel open editor

    After selecting the template, a preview of how the message will appear on the handset is displayed on the right side of the page.

    Populate variables

  10. Depending on the template you choose, there may be more selections to make. Complete any remaining selections and click Continue setup. This may include configuring variables. Any variables are listed with a corresponding drop-down. For each variable drop-down, select the field from the preceding entry source that will be used to populate the variable.

    Populate variables

    Note:

    If you are using an SMS channel-specific template, and you provide a value for SMS maximum parts (which corresponds to the SMS_MAX_NUMBER_MESSAGE_PARTS property), you will be given an estimate of how many messages will be required when sending your content. This value is an estimate (based on the SMS maximum parts value, you encoding settings, and the lengths of the overall message content). Ensure that you monitor your outbound traffic in a production environment.

  11. After you have completed making your selections, click Next in the bottom right corner of the screen. The Summary page is displayed. First, select how you want your delivery reports and inbound messages to be stored.

    • Select Save in a global bucket to store all content in a single, pre-named data extension (Omnichannel Connector Delivery Reports for delivery reports and Omnichannel Connector Inbound Messages for inbound messages from exisiting contacts).
    • Select Save in a journey scoped data extension to store the content in a custom-named data extension associated with this journey. If you select this option, populate the field under the radio button with the name to use for the data extension.
    • Note that inbound messages from unknown contacts will be saved in the Omnichannel Connector User-Initiated Messages Data Extension regardless of your selection.
    • After making your selections, click Confirm Data Extensions.

    Omni Channel summary data extensions

    Then, review the rest of your your configuration options. You may optionally send a Test message by selecting the appropriate channel, populating required fields, and clicking Send. This will emulate the Omni Channel message activity's functionality, though the information you provide will be populated by the entry preceding the Omni Channel message activity in your journey in production.

    Omni Channel summary

  12. Once you have reviewed your configuration (and, optionally, sent a test message and validated that the test message was received), click Done in the bottom right of the screen. If there are any issues with your test message, or if you need to update your configuration, use the Back button to navigate through the configuration process and update your selections.

Retrieving delivery reports

After messages are sent on the Conversation API, delivery reports are generated. Data from these delivery reports is transferred to your connected Omnichannel Connector app and stored in a Data Extension called Omni Connector Delivery Reports. This Data Extension includes the following fields (any corresponding Conversation API delivery report fields are noted in the table):

Data Extension fieldConversation API fieldDescription
eventIdN/AThe ID of the journey event associated with this Data Extension
eventTimeN/AThe time at which the journey event occurred.
messageIdmessage_idThe ID of the sent message.
contactIdcontact_idThe ID of the contact to whom the message was sent. Will be empty if the processing_mode of the corresponding Conversation API app is set to DISPATCH.
identitychannel_identityThe identity of the contact in the underlying channel (for example, a phone number for the SMS channel or WhatsApp channel). See the identity field of the Channel Identity object for details.
channelchannelThe channel on which the message was sent. See the channel field of the Channel Identity object for details.
statusstatusThe delivery status of the message. See Delivery Status for details.
errorCode (if present)The code field of the reason objectHigh level classification of the error. See Error Codes for details.
errorMessage (if present)The description field of the reason objectA description of the error. See Reason for more information.
journeyIdN/AThe ID of the corresponding journey.
journeyNameN/AThe name of the corresponding journey.
journeyVersionN/AThe version of the corresponding journey.
activityIdN/AThe ID of the activity that supplied the data to this Data Extension.
activityNameN/AThe name of the activity that supplied the data to this Data Extension.
templateChannelTypeN/AEither Omnichannel or a channel-specific template.
templateIdN/AThe ID of the template used to send the message.
templateNameN/AThe name of the template used to send the message.
omnichannelMessageIdN/AAn internal identification value that is used by backend processes.
externalIdN/AAn external identifier

You may export this data to process it externally. You may also use the Omni Flow flow control to configure your journey to respond to the status of the delivery report.