π οΈ Example Use Case: Create Case Tool
Letβs say your assistant is talking to a customer who wants to report a complaint. You want the assistant to:- Capture the **customerβs name, contact number **and complaint
- Check if a contact already exists in CRM using the customerβs phone number.
- If found, create a Case and relate it to that contact.
- If not found, create a new Contact, then create the Case record in Salesforce with that new contact.
- Return the Case Number and Case Subject as output.
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.
π§± Required Flow Inputs (Match Tool Parameters)
These inputs come from the assistant, so make sure the variable names match exactly in your flow: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.
π Flow Outputs
Your flow is returning two variables back to ConverseKit:Variable Name | Type | Description | Output |
---|---|---|---|
created_caseid | String | ID of the created Case | β |
created_case_subject | String | Subject line of the new Case | β |
π§ Steps to Build the Flow
1
Create a New Auto-Launched Flow
- Go to Setup β Flows
- Click New Flow
- Select Auto-Launched Flow (No Trigger)
- Click Create
2
Add Input Variables
- Click New Resource β Variable
- Name:
name
- Data Type: Text
- Check Available for Input
- Name:
contact_number
(Number, input)complaint
(Text, input)
3
Lookup Existing Contact
- Drag an Element β Get Records
- Label: Fetch Contact
- Object:
Contact
- Filter:
MobilePhone Equals {!contact_number}
- Select Only the first record
- Store all fields
- Connect this to a Decision element
- Label:
Record Found?
- Outcome 1: Yes β If
Fetch_Contact.Id Is Null False
- Default: No (contact not found)
- Label:
4
Create Records
If Contact Found β Create Case:
- Use Create Records
- Object:
Case
- Fields:
ContactId = {!Fetch_Contact.Id}
Subject = {!complaint}
priority = Medium
- Object:
-
Create
Contact
using:LastName = {!name}
MobilePhone = {!contact_number}
-
Create
Case
usingContact.Id
from above new contact Fields:ContactId =
Contact Id from above new conactSubject = {!complaint}
priority = Medium
5
Create Output Variables
- Click New Resource β Variable
- Name:
created_case_id
- Data Type: Text
- Check Available for Output
- Name:
created_case_subject
β Text β Available for Output
6
Add Output Assignment
- Use an Assignment element:
- Assign
created_case_id = Case.Id
- Assign
created_case_subject = {!complaint}
- Assign
7
Save & Activate
- Name the Flow:
Create Voice Case
- Set API Name:
create_voice_case
- Click Activate

Create Tool
Letβs walk through how to create a Tool