Automate Tools using Flows
Create_Case
.
This is a great use case for a Flow-based Tool. We’ll use a Salesforce Autolaunched Flow to handle the backend logic while your assistant keeps the conversation going.
Variable Name | Type | Description | Input |
---|---|---|---|
name | String | Customer’s full name | ✅ |
contact_number | Number | Mobile number with country code | ✅ |
complaint | String | Complaint or issue description | ✅ |
🔁 Make sure these match the Flow input variable names exactly.
🧱 Usesnake_case
for consistency and better integration.
Variable Name | Type | Description | Output |
---|---|---|---|
created_caseid | String | ID of the created Case | ✅ |
created_case_subject | String | Subject line of the new Case | ✅ |
Create a New Auto-Launched Flow
Add Input Variables
name
contact_number
(Number, input)complaint
(Text, input)Lookup Existing Contact
Contact
MobilePhone Equals {!contact_number}
Record Found?
Fetch_Contact.Id Is Null False
Create Records
Case
ContactId = {!Fetch_Contact.Id}
Subject = {!complaint}
priority = Medium
Contact
using:
LastName = {!name}
MobilePhone = {!contact_number}
Case
using Contact.Id
from above new contact
Fields:
ContactId =
Contact Id from above new conactSubject = {!complaint}
priority = Medium
Create Output Variables
created_case_id
created_case_subject
– Text – Available for OutputAdd Output Assignment
created_case_id = Case.Id
created_case_subject = {!complaint}
Save & Activate
Create Voice Case
create_voice_case