Manage your CRM workflow with Salesforce integration
The Salesforce integration allows you to manage your complete CRM workflow including leads, contacts, opportunities, tasks, and cases. You can query records, create new entries, update existing data, and generate reports directly from your conversations. This integration supports full CRUD operations on Salesforce objects and enables you to automate your sales and customer service processes.
Required:
action
- The operation you want to perform (query, create, update, get_report)Optional:
object_type
- The Salesforce object type (Lead, Contact, Opportunity, Task, Case, etc.)
fields
- Specific fields to retrieve or update
Retrieve records from Salesforce using SOQL queries
Parameters:
query
(required) - The SOQL query to executeobject_type
(optional) - The object type to queryExample:
Response:
Create a new task in Salesforce
Parameters:
subject
(required) - Task subjectwho_id
(optional) - ID for contacts and leadswhat_id
(optional) - ID for other objectsowner_id
(required) - ID of the task ownerstatus
(optional) - Task status (defaults to “Not Started”)priority
(optional) - Task priority (defaults to “Normal”)description
(optional) - Task descriptionExample:
Response:
Update an existing Salesforce record
Parameters:
object_type
(required) - The type of object to updaterecord_id
(required) - The ID of the record to updatefields
(required) - Object containing field names and values to updateExample:
Response:
Create a new support case in Salesforce
Parameters:
subject
(required) - Case subjectdescription
(required) - Case descriptionstatus
(optional) - Case statuspriority
(optional) - Case priorityorigin
(optional) - Case origintype
(optional) - Case typecontact_email
(optional) - Contact email (uses SuppliedEmail if contact not found)contact_phone
(optional) - Contact phone (uses SuppliedPhone if contact not found)contact_name
(optional) - Contact name (uses SuppliedName if contact not found)Example:
Response:
Retrieve data from a Salesforce report
Parameters:
report_name
(required) - The name of the report to retrieveExample:
Response:
When creating tasks, use WhoId for contacts and leads, and WhatId for other objects. PATCH updates return empty responses on success, so avoid mixing PATCH operations with other actions. For case creation, the system will first attempt to find existing contacts by email; if not found, it will use the Supplied fields instead. All SOQL queries must be properly encoded using encodeURIComponent().