Do you still need to set up your Flex-Salesforce Integration? Check out our guide for configuring your Salesforce instance for Flex!
In this guide, we will walk through how to customize the default call flow in your Flex-Salesforce integration by
- Creating an IVR (Interactive Voice Response) to collect a case number from our caller
- Look up an existing case, or
- Create a new case from the caller's input if no existing case is found
To accomplish this, we'll need to do the following:
- Create a Studio flow to introduce IVR and collect a Case Number from the caller
- Pass The Case Object to Flex-Salesforce integration using a custom task attribute called
- Re-configure the Salesforce Softphone layout to point to a Case Object
Remember: Flex is a Programmable Application Platform, so you can customize Flex to any extent using the Flex Plugin Model and those changes will be reflected in your Salesforce integration as well. The customizations in this guide refer to the enhancements in both the integration and the call flow itself.
From your Twilio Console, create a Studio flow, or edit an existing studio flow with the following:
- Add a Studio widget to
Gather input on a callto collect user input for a given Case Id (if one exists). Let’s call this widget
- On Keypresses, connect this widget to the
Send to Flexwidget.
- Pass the
sfdcSearchStringtask attribute, making sure that the default
- The final Studio Flow will look like this:
The way to tell Salesforce which object should be used for Search and Screen Pop is through the Softphone layout.
We will configure the softphone layout to refer to the Case object instead of the default Contacts object.
For inbound calls:
- Change the order of objects to move Case to the top:
- Change the Screen Pop settings to point to Case object:
Now when the caller keys in a Case ID on being prompted by the IVR, that case ID is used to search for the case and render the relevant ScreenPop.