---
updatedAt: 2026-10-08T10:51:29.000Z
agentTools:
  projectIndex: https://studio.talkdesk.com/llms.txt
---

# Assigning a Call to the Case Owner

Studio makes it easy for you to collect data from Salesforce and use it to assign a call to the appropriate agent. A simple way to do this is by first requesting the caller to input their Case ID on the dial pad. Then, through a Data Dip in Salesforce, you will find out which agent owns the case. Lastly, you will use the Assignment and dial (A\&D) node to assign the call to that agent.

Please follow these instructions to learn in detail how to assign a call using a data dip:

1. Add the **Standard IVR** node to your <Glossary>flow</Glossary>.
2. Open the **Standard IVR** node, and on the **Preferences** tab, choose **Text to speech** as the message type.
3. Select the language in which you will write your message.
4. In the “Text to speech” field, type in the message that will be played when the flow reaches the Standard IVR node.<br />*Example: “Welcome. Please press 1 if you have a case number. Press 2 if you don’t have a case number.”*

<Image src="https://files.readme.io/6657fe13d97d57074a2daa8494c39d6f34b03e30b756022cf6af7b2aab49bdad-image6.png" alt="1009" width="smart" />

5. Select the **Exits** tab and under “Custom Exits” choose **2** as the key that the caller should press to go straight to your support line.
6. Give an appropriate name to the Exit and under “Send to” add the **A\&D** node and name it “Support Queue”.
7. Click on **Add Exit** and under “Keypress Exits #2”” choose 1 as the “Keypress”.
8. Name the Exit and under “Send to” add the **Input IVR** node.
9. Scroll down to the “Timeout” and “Invalid” sections and select the **Standard IVR** from the drop-down lists, creating a loop in both scenarios.

<Image src="https://files.readme.io/093541d072b0105ada5f41e2235feedd9ca473790f6f1e339bfea70c9fcbd773-image5.png" alt="1091" width="smart" />

10. Open the **Input IVR** node, and on the **Preferences** tab, choose **Text to speech** as the message type.

11. In the “Text to speech” field, type in the message that will be played when the <Glossary>flow</Glossary> reaches the **Input IVR** node.<br />Example: “Please insert your case number followed by an asterisk.”

12. Under “Keypress inputs”, configure the maximum number of digits your caller can input and which key should be used to finalize the input.

13. In the “Variables” section, click on the drop-down and then on **Create variable**.

14. Give a name to the variable. This variable will store the digits that your caller pressed, so we’ve named it “case\_number”.

<Image src="https://files.readme.io/c1356d1a9a113d4e3129835724bf9b7e47fc4c06216bcb4070dd5053b41aaed3-image8.png" alt="1172" width="smart" />

15. Select the **Exits** tab, and under “Ok” add the **Salesforce data dip** node.
16. Scroll down to the “Timeout” section and add the number of seconds the system will wait for an input before it times out.
17. Under “Send to”, create a loop by selecting **Input IVR** from the drop-down.

<Image src="https://files.readme.io/b43488a5e2686d06b9d634a2f7464f4e9030121c5f5ece306bbeca74b67ea934-image1.png" alt="1273" width="smart" />

15. Open the **Salesforce data dip** node and paste the following query:

```sql SOQL
SELECT Id, CaseNumber, Owner.Email, CreatedDate FROM Case WHERE CaseNumber = '%{current_flow.case_number}' ORDER BY CreatedDate DESC LIMIT 1
```

***Note:*** *If you have given a different name to your variable (step 14), replace “case\_number” (the lower case instance only) with the name of your variable.*

19. Click on **Retrieve Data**.
20. Click on the **Owner.Email** drop-down and add a new variable with the name “case\_owner”.

<Image src="https://files.readme.io/366fe5f5c13677c7766344497ff46347b9f8e72f4efb5ec01c3e25bbdb71f227-image4.png" alt="1148" width="smart" />

The case number your caller inserted in the dial pad (and that was stored in the “case\_number” variable) will be used to find in Salesforce the agent who owns the case. The agent’s information (email) will be stored in the “case\_owner” variable, which will be used in step 27 to assign the call to that agent.

21. Select the **Exits** tab, and add a new **A\&D** node under “Ok”.
22. Name it “Assign to Owner”.
23. Add the **Play Audio** node in both the “No result” and “Error” sections. In this node, you will inform your callers that you were unable to find the case.
24. Create a loop in the “Timeout” section by selecting the Input IVR “Case number IVR” in the “Send to” dropdown.

<Image src="https://files.readme.io/e3a971d-Assign_to_case_owner_6.png" alt="1074" width="smart" />

25. Open the **A\&D** node named “Assign to owner”.
26. Select **Agents** as the assignment type.
27. Under “Select how to find agents”, choose **"Variables in the flow context"** and select **"case\_owner"** from the list.
28. Fill out the remaining fields on the **Preferences** tab.
29. Select the **Exits** tab and choose the support queue (A\&D node) in all drop-downs.

<Image src="https://files.readme.io/46aacc531afc2de5ed11955c3141284637bfcd4f6f87e7fd1d9a4fcf1b310888-image7.png" alt="1175" width="smart" />

30. Open the **Play audio** node.
31. Select the **Preferences** tab, and in the “Text to speech” field, type the message that will be played when the flow reaches this node.<br />Example: *“We apologize, but we were unable to find the Case ID.”*
32. Select the **Exits** tab and route the call to the “Support Queue”.
33. Complete the configuration of your **A\&D** nodes and save your <Glossary>flow</Glossary> when you are finished.

<Image src="https://files.readme.io/03c483b9a5b4c88932e17dfcab6d11a6359d0159c8ed4ec75af6023d6a92cd01-image2.png" alt="1161" width="smart" />

From now on, if a caller inserts their Case ID when requested, the call will automatically be routed to the agent who owns the case in Salesforce. If the agent is offline or if the caller inserts an invalid Case ID, for example, the call will be directed to the “Support Queue”.