Talkdesk enables you to use Studio variables as filters or values in automations which:
- Are associated with an inbound call.
- Allow the use of variables.
For example, if your Talkdesk account is integrated with a CRM like Salesforce, you can create automations that send Studio variables to a Salesforce case, i.e., you will automatically transport the information you gather in Studio to Salesforce.
Let’s say that you request your callers to input their Social Security number via an Input IVR in your Studio flow. After you store that number in a variable, you can create an automation that sends the variable to Salesforce whenever an inbound call ends. Here’s how you can do it:
1. Select Integrations [1] under the Admin tab.
2. Click on the "Salesforce" option [2].
3. Click on Add New Automated Task [3].
4. Choose a Talkdesk event and an associated action [4]. You can only select one of the following events:
- A call is abandoned.
- A call is missed.
- A call is short-abandoned.
- A call enters the waiting queue.
- A call leaves the waiting queue.
- A transferred call is answered.
- A voicemail is left.
- An inbound call ends.
- An inbound call reaches the contact center.
- An inbound call starts.
- A post-call is finished.
- A warm transfer is finished.
- When a message conversation starts
- When a message conversation ends
- When a message conversation is assigned
In our example, we created the following condition:
- When an inbound call ends in Talkdesk then create a case in Salesforce.
5. (Optional) Add a filter to create a highly targeted automation [5]. This is necessary, for instance, if you have variables with the same name in different published flows (and with phone numbers assigned to them) and you don’t want your automation applied to all of them. In this step, you can also use the Studio variable by selecting the “Context” filter and defining the Studio variable name. By doing so, you are able to configure exactly when you want the automation to be executed, based on a variable collected in Studio.
6. Go to the “Description” field and add the variable(s) that you want to display in the Salesforce case [6]. You must add it in the following format:
{{context.name_of_the_variable}}
In our example, we wanted the Salesforce case to include the number stored in the “social_security” variable that we previously configured in one of our flows.
7. Fill out all the remaining fields in your automation.
8. Hit Save in the bottom-right corner of the page.
Note: The variable(s) you include in your automations must always be selected in the Manage Context window.