Pailot

Salesforce

Interact with Salesforce CRM

The Salesforce tool enables you to connect directly to your Salesforce CRM and perform a wide range of customer relationship management operations within your agentic workflows. With seamless and secure integration, you can efficiently access and automate key business processes across your sales, support, and marketing data.

With the Salesforce tool, you can:

  • Retrieve accounts: Use the salesforce_get_accounts operation to fetch Accounts from Salesforce with custom filters, sorting, and field selection.
  • Create accounts: Automatically add new Accounts to Salesforce using the salesforce_create_account operation, specifying details like name, industry, and billing address.
  • Manage contacts: (If provided, similar tooling available for Contacts—add, update, or fetch contacts as needed.)
  • Handle leads & opportunities: Integrate lead and opportunity management into your workflow, letting your agents capture, qualify, and update sales pipeline data.
  • Track cases & tasks: Automate customer support and follow-up activities by interacting with Cases and Tasks within Salesforce.

The Salesforce tool is ideal for workflows where your agents need to streamline sales, account management, lead generation, and support operations. Whether your agents are syncing data across platforms, providing real-time customer insights, or automating routine CRM updates, the Salesforce tool brings the full power and extensibility of Salesforce into your programmatic, agent-driven processes.

Usage Instructions

Integrate Salesforce into your workflow. Manage accounts, contacts, leads, opportunities, cases, and tasks with powerful automation capabilities.

Tools

salesforce_get_accounts

Retrieve accounts from Salesforce CRM

Input

ParameterTypeRequiredDescription
idTokenstringNoThe ID token from Salesforce OAuth (contains instance URL)
instanceUrlstringNoThe Salesforce instance URL
limitstringNoNumber of results to return (default: 100, max: 2000)
fieldsstringNoComma-separated list of fields to return (e.g., "Id,Name,Industry,Phone")
orderBystringNoField to order by (e.g., "Name ASC" or "CreatedDate DESC")

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectAccounts data
accountsarrayArray of account objects
pagingobjectPagination information
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
metadataobjectResponse metadata
totalReturnednumberNumber of accounts returned
hasMorebooleanWhether more records exist
totalReturnednumberNumber of accounts returned
hasMorebooleanWhether more records exist
successbooleanSalesforce operation success

salesforce_create_account

Create a new account in Salesforce CRM

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
namestringYesAccount name (required)
typestringNoAccount type (e.g., Customer, Partner, Prospect)
industrystringNoIndustry (e.g., Technology, Healthcare, Finance)
phonestringNoPhone number
websitestringNoWebsite URL
billingStreetstringNoBilling street address
billingCitystringNoBilling city
billingStatestringNoBilling state/province
billingPostalCodestringNoBilling postal code
billingCountrystringNoBilling country
descriptionstringNoAccount description
annualRevenuestringNoAnnual revenue (number)
numberOfEmployeesstringNoNumber of employees (number)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated account data
idstringCreated account ID
successbooleanSalesforce operation success
createdbooleanWhether account was created

salesforce_update_account

Update an existing account in Salesforce CRM

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
accountIdstringYesAccount ID to update (required)
namestringNoAccount name
typestringNoAccount type
industrystringNoIndustry
phonestringNoPhone number
websitestringNoWebsite URL
billingStreetstringNoBilling street address
billingCitystringNoBilling city
billingStatestringNoBilling state/province
billingPostalCodestringNoBilling postal code
billingCountrystringNoBilling country
descriptionstringNoAccount description
annualRevenuestringNoAnnual revenue (number)
numberOfEmployeesstringNoNumber of employees (number)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated account data
idstringUpdated account ID
updatedbooleanWhether account was updated

salesforce_delete_account

Delete an account from Salesforce CRM

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
accountIdstringYesAccount ID to delete (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted account data
idstringDeleted account ID
deletedbooleanWhether account was deleted

salesforce_get_contacts

Get contact(s) from Salesforce - single contact if ID provided, or list if not

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
contactIdstringNoContact ID (if provided, returns single contact)
limitstringNoNumber of results (default: 100, max: 2000). Only for list query.
fieldsstringNoComma-separated fields (e.g., "Id,FirstName,LastName,Email,Phone")
orderBystringNoOrder by field (e.g., "LastName ASC"). Only for list query.

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectContact(s) data
contactsarrayArray of contacts (list query)
contactobjectSingle contact (by ID)
pagingobjectPagination information
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
metadataobjectResponse metadata
totalReturnednumberNumber of contacts returned
hasMorebooleanWhether more records exist
totalReturnednumberNumber of contacts returned
hasMorebooleanWhether more records exist
singleContactbooleanWhether single contact was returned
successbooleanSalesforce operation success

salesforce_create_contact

Create a new contact in Salesforce CRM

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
lastNamestringYesLast name (required)
firstNamestringNoFirst name
emailstringNoEmail address
phonestringNoPhone number
accountIdstringNoAccount ID to associate contact with
titlestringNoNo description
departmentstringNoDepartment
mailingStreetstringNoMailing street
mailingCitystringNoMailing city
mailingStatestringNoMailing state
mailingPostalCodestringNoMailing postal code
mailingCountrystringNoMailing country
descriptionstringNoContact description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated contact data
idstringCreated contact ID
successbooleanSalesforce operation success
createdbooleanWhether contact was created

salesforce_update_contact

Update an existing contact in Salesforce CRM

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
contactIdstringYesContact ID to update (required)
lastNamestringNoLast name
firstNamestringNoFirst name
emailstringNoEmail address
phonestringNoPhone number
accountIdstringNoAccount ID to associate with
titlestringNoNo description
departmentstringNoDepartment
mailingStreetstringNoMailing street
mailingCitystringNoMailing city
mailingStatestringNoMailing state
mailingPostalCodestringNoMailing postal code
mailingCountrystringNoMailing country
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated contact data
idstringUpdated contact ID
updatedbooleanWhether contact was updated

salesforce_delete_contact

Delete a contact from Salesforce CRM

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
contactIdstringYesContact ID to delete (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted contact data
idstringDeleted contact ID
deletedbooleanWhether contact was deleted

salesforce_get_leads

Get lead(s) from Salesforce

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
leadIdstringNoLead ID (optional)
limitstringNoMax results (default: 100)
fieldsstringNoComma-separated fields
orderBystringNoOrder by field

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectLead data
leadobjectSingle lead object (when leadId provided)
leadsarrayArray of lead objects (when listing)
pagingobjectPagination information
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
metadataobjectResponse metadata
totalReturnednumberNumber of leads returned
hasMorebooleanWhether more records exist
totalReturnednumberNumber of leads returned
hasMorebooleanWhether more records exist
singleLeadbooleanWhether single lead was returned
successbooleanOperation success status

salesforce_create_lead

Create a new lead

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
lastNamestringYesLast name (required)
companystringYesCompany (required)
firstNamestringNoFirst name
emailstringNoNo description
phonestringNoNo description
statusstringNoLead status
leadSourcestringNoLead source
titlestringNoNo description
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated lead data
idstringCreated lead ID
successbooleanSalesforce operation success
createdbooleanWhether lead was created

salesforce_update_lead

Update an existing lead

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
leadIdstringYesLead ID (required)
lastNamestringNoLast name
companystringNoNo description
firstNamestringNoFirst name
emailstringNoNo description
phonestringNoNo description
statusstringNoLead status
leadSourcestringNoLead source
titlestringNoNo description
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated lead data
idstringUpdated lead ID
updatedbooleanWhether lead was updated

salesforce_delete_lead

Delete a lead

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
leadIdstringYesLead ID (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted lead data
idstringDeleted lead ID
deletedbooleanWhether lead was deleted

salesforce_get_opportunities

Get opportunity(ies) from Salesforce

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
opportunityIdstringNoOpportunity ID (optional)
limitstringNoMax results (default: 100)
fieldsstringNoComma-separated fields
orderBystringNoOrder by field

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectOpportunity data
opportunityobjectSingle opportunity object (when opportunityId provided)
opportunitiesarrayArray of opportunity objects (when listing)
pagingobjectPagination information
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
metadataobjectResponse metadata
totalReturnednumberNumber of opportunities returned
hasMorebooleanWhether more records exist
totalReturnednumberNumber of opportunities returned
hasMorebooleanWhether more records exist
successbooleanOperation success status

salesforce_create_opportunity

Create a new opportunity

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
namestringYesOpportunity name (required)
stageNamestringYesStage name (required)
closeDatestringYesClose date YYYY-MM-DD (required)
accountIdstringNoAccount ID
amountstringNoAmount (number)
probabilitystringNoProbability (0-100)
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated opportunity data
idstringCreated opportunity ID
successbooleanSalesforce operation success
createdbooleanWhether opportunity was created

salesforce_update_opportunity

Update an existing opportunity

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
opportunityIdstringYesOpportunity ID (required)
namestringNoOpportunity name
stageNamestringNoStage name
closeDatestringNoClose date YYYY-MM-DD
accountIdstringNoAccount ID
amountstringNoNo description
probabilitystringNoProbability (0-100)
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated opportunity data
idstringUpdated opportunity ID
updatedbooleanWhether opportunity was updated

salesforce_delete_opportunity

Delete an opportunity

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
opportunityIdstringYesOpportunity ID (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted opportunity data
idstringDeleted opportunity ID
deletedbooleanWhether opportunity was deleted

salesforce_get_cases

Get case(s) from Salesforce

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
caseIdstringNoCase ID (optional)
limitstringNoMax results (default: 100)
fieldsstringNoComma-separated fields
orderBystringNoOrder by field

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCase data
caseobjectSingle case object (when caseId provided)
casesarrayArray of case objects (when listing)
pagingobjectPagination information
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
metadataobjectResponse metadata
totalReturnednumberNumber of cases returned
hasMorebooleanWhether more records exist
totalReturnednumberNumber of cases returned
hasMorebooleanWhether more records exist
successbooleanOperation success status

salesforce_create_case

Create a new case

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
subjectstringYesCase subject (required)
statusstringNoStatus (e.g., New, Working, Escalated)
prioritystringNoPriority (e.g., Low, Medium, High)
originstringNoOrigin (e.g., Phone, Email, Web)
contactIdstringNoContact ID
accountIdstringNoAccount ID
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated case data
idstringCreated case ID
successbooleanSalesforce operation success
createdbooleanWhether case was created

salesforce_update_case

Update an existing case

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
caseIdstringYesCase ID (required)
subjectstringNoCase subject
statusstringNoStatus
prioritystringNoPriority
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated case data
idstringUpdated case ID
updatedbooleanWhether case was updated

salesforce_delete_case

Delete a case

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
caseIdstringYesCase ID (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted case data
idstringDeleted case ID
deletedbooleanWhether case was deleted

salesforce_get_tasks

Get task(s) from Salesforce

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
taskIdstringNoTask ID (optional)
limitstringNoMax results (default: 100)
fieldsstringNoComma-separated fields
orderBystringNoOrder by field

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectTask data
taskobjectSingle task object (when taskId provided)
tasksarrayArray of task objects (when listing)
pagingobjectPagination information
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
nextRecordsUrlstringURL for next page of results
totalSizenumberTotal number of records
donebooleanWhether all records returned
metadataobjectResponse metadata
totalReturnednumberNumber of tasks returned
hasMorebooleanWhether more records exist
totalReturnednumberNumber of tasks returned
hasMorebooleanWhether more records exist
successbooleanOperation success status

salesforce_create_task

Create a new task

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
subjectstringYesTask subject (required)
statusstringNoStatus (e.g., Not Started, In Progress, Completed)
prioritystringNoPriority (e.g., Low, Normal, High)
activityDatestringNoDue date YYYY-MM-DD
whoIdstringNoRelated Contact/Lead ID
whatIdstringNoRelated Account/Opportunity ID
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated task data
idstringCreated task ID
successbooleanSalesforce operation success
createdbooleanWhether task was created

salesforce_update_task

Update an existing task

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
taskIdstringYesTask ID (required)
subjectstringNoTask subject
statusstringNoStatus
prioritystringNoPriority
activityDatestringNoDue date YYYY-MM-DD
descriptionstringNoDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated task data
idstringUpdated task ID
updatedbooleanWhether task was updated

salesforce_delete_task

Delete a task

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
taskIdstringYesTask ID (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted task data
idstringDeleted task ID
deletedbooleanWhether task was deleted

salesforce_list_reports

Get a list of reports accessible by the current user

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
folderNamestringNoFilter by folder name
searchTermstringNoSearch term to filter reports by name

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReports data
reportsarrayArray of report objects
totalReturnednumberNumber of reports returned
successbooleanSalesforce operation success

salesforce_get_report

Get metadata and describe information for a specific report

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
reportIdstringYesReport ID (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReport metadata
reportobjectReport metadata object
reportIdstringReport ID
successbooleanSalesforce operation success

salesforce_run_report

Execute a report and retrieve the results

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
reportIdstringYesReport ID (required)
includeDetailsstringNoInclude detail rows (true/false, default: true)
filtersstringNoJSON string of report filters to apply

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReport results
reportIdstringReport ID
reportMetadataobjectReport metadata
reportExtendedMetadataobjectExtended metadata
factMapobjectReport data organized by groupings
groupingsDownobjectRow groupings
groupingsAcrossobjectColumn groupings
hasDetailRowsbooleanWhether report has detail rows
allDatabooleanWhether all data is returned
reportNamestringReport name
reportFormatstringReport format type
successbooleanSalesforce operation success

salesforce_list_report_types

Get a list of available report types

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReport types data
reportTypesarrayArray of report type objects
totalReturnednumberNumber of report types returned
successbooleanSalesforce operation success

salesforce_list_dashboards

Get a list of dashboards accessible by the current user

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
folderNamestringNoFilter by folder name

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDashboards data
dashboardsarrayArray of dashboard objects
totalReturnednumberNumber of dashboards returned
successbooleanSalesforce operation success

salesforce_get_dashboard

Get details and results for a specific dashboard

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
dashboardIdstringYesDashboard ID (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDashboard data
dashboardobjectDashboard details
dashboardIdstringDashboard ID
componentsarrayDashboard component data
dashboardNamestringDashboard name
folderIdstringFolder ID containing the dashboard
runningUserobjectRunning user information
successbooleanSalesforce operation success

salesforce_refresh_dashboard

Refresh a dashboard to get the latest data

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
dashboardIdstringYesDashboard ID (required)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectRefreshed dashboard data
dashboardobjectDashboard details
dashboardIdstringDashboard ID
componentsarrayDashboard component data
statusobjectDashboard status
dashboardNamestringDashboard name
refreshDatestringDate when dashboard was refreshed
successbooleanSalesforce operation success

salesforce_query

Execute a custom SOQL query to retrieve data from Salesforce

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
querystringYesSOQL query to execute (e.g., SELECT Id, Name FROM Account LIMIT 10)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectQuery results
recordsarrayArray of record objects
totalSizenumberTotal number of records matching query
donebooleanWhether all records have been returned
nextRecordsUrlstringURL to fetch next batch of records
querystringThe executed SOQL query
metadataobjectResponse metadata
totalReturnednumberNumber of records returned in this response
hasMorebooleanWhether more records exist
totalReturnednumberNumber of records returned in this response
hasMorebooleanWhether more records exist
successbooleanSalesforce operation success

salesforce_query_more

Retrieve additional query results using the nextRecordsUrl from a previous query

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
nextRecordsUrlstringYesThe nextRecordsUrl from a previous query response

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectQuery results
recordsarrayArray of record objects
totalSizenumberTotal number of records matching query
donebooleanWhether all records have been returned
nextRecordsUrlstringURL to fetch next batch of records
metadataobjectResponse metadata
totalReturnednumberNumber of records returned in this response
hasMorebooleanWhether more records exist
totalReturnednumberNumber of records returned in this response
hasMorebooleanWhether more records exist
successbooleanSalesforce operation success

salesforce_describe_object

Get metadata and field information for a Salesforce object

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description
objectNamestringYesAPI name of the object (e.g., Account, Contact, Lead, Custom_Object__c)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectObject metadata
objectNamestringAPI name of the object
labelstringDisplay label
labelPluralstringPlural display label
fieldsarrayArray of field definitions
keyPrefixstringID prefix for this object type
queryablebooleanWhether object can be queried
createablebooleanWhether records can be created
updateablebooleanWhether records can be updated
deletablebooleanWhether records can be deleted
childRelationshipsarrayChild relationship definitions
recordTypeInfosarrayRecord type information
fieldCountnumberNumber of fields in the object
successbooleanSalesforce operation success

salesforce_list_objects

Get a list of all available Salesforce objects

Input

ParameterTypeRequiredDescription
idTokenstringNoNo description
instanceUrlstringNoNo description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectObjects list
objectsarrayArray of available Salesforce objects
encodingstringEncoding used
maxBatchSizenumberMaximum batch size
totalReturnednumberNumber of objects returned
successbooleanSalesforce operation success
On this page

On this page

Get access
Copilot assembles the process. A manager can run it. You can install it in the company contour.
Get access