Skip to main content
SalesforceTools enable an Agent to interact with Salesforce CRM. Query records with SOQL, search with SOSL, manage objects, and run reports. Read-only by default. Write operations (create, update, delete) require explicit opt-in.

Prerequisites

Install the simple-salesforce library and set your Salesforce credentials.
Username / Password auth (most common):
To get your security token: Log into Salesforce > click your avatar (top right) > Settings > “Reset My Security Token”. Session / Instance URL auth (when SOAP login is disabled):

Example

A read-only agent that explores Salesforce objects, runs SOQL queries, and searches across the org.
cookbook/91_tools/salesforce_tools.py
Enable write operations for full CRM management:

Toolkit Params

Toolkit Functions

You can use include_tools or exclude_tools to modify the list of tools the agent has access to. See selecting tools.

Developer Resources