How to
Setting up the Console messages flow in Pendula

Georgia White
Georgia White
  • Updated

This article outlines how to set up a flow in Pendula to send and receive the 1:1 Console messages that are displayed on the Console component on Salesforce objects.

Pre-requisites

Setting up the flow

  1. Create a new flow in the Experience & Workflow studio and call it 'Console Messages Flow'.

  2. Add the Salesforce event trigger. Select Console Message as the triggering object, and set the trigger condition as 'When a record is created'. This will trigger the flow when a user sends a 1:1 message (i.e. creates a new Console Message record) from the Pendula Console in Salesforce.

    Screenshot 2024-11-28 at 10.30.52 am-branded.png

  3. Add a 'Update record' action next in the flow. Select the Console Message as the record to be updated, and using the merge field explorer, enter the ID field of that object from the trigger node. See this article for how to find and use merge fields in the data explorer.

    Screenshot 2024-11-28 at 11.42.46 am-branded.png

  4. The final node in the flow is the Conversation node. Configure the recipient to be the phone number from the Console Message object (Pendula4E__To_Number__c) and the Console Message body (Pendula4E__Body__c) as a merge field in the Message body field.

    Screenshot 2024-11-28 at 11.43.03 am-branded.png

  5. In the 'Replies' tab of the Conversation node, set an 'any-reply' path and delete any other paths.

    Screenshot 2024-11-28 at 1.20.21 pm-branded.png

  6. The flow should have 3 total nodes. Activate the flow and test by sending a 1:1 message from the Console component in Salesforce.

    Screenshot 2024-11-28 at 11.43.43 am-branded.png