Salesforce
AI-powered Salesforce CRM assistant
The Fastest Way: HeraClaw Cloud ā”
Skip the Salesforce Connected App setup, OAuth 2.0 configuration, and security token management. HeraClaw Cloud comes with Salesforce integration pre-configured and ready to use in 60 seconds.
Why HeraClaw Cloud for Salesforce?
ā Ready in 60 seconds - No Connected App creation, no OAuth flows, no security token headaches ā Pre-configured authentication - Works immediately after Salesforce authorization ā Always updated - We handle Salesforce API changes and version updates automatically ā Professional support - If anything breaks, we fix it for you ā Secure by default - Enterprise-grade security, SOC 2 compliant infrastructure ā Zero maintenance - No sandbox testing, no API version migrations, no certificate renewals ā Multi-org support - Connect multiple Salesforce orgs (production, sandbox, developer) instantly
How it works:
- Sign up at cloud.getopenclaw.ai (takes 60 seconds)
- Go to Integrations ā Salesforce
- Click 'Connect to Salesforce'
- Authorize our app for your Salesforce org
- Done! Start querying your CRM data with AI
Get Started: Start with HeraClaw Cloud ā
Complete Guide to OpenClaw + Salesforce
Salesforce is the world's #1 CRM platform, powering sales, service, and marketing teams at over 150,000 companies worldwide. From Fortune 500 enterprises to high-growth startups, Salesforce is where customer relationships live. OpenClaw's Salesforce integration brings powerful AI assistance directly into your CRM workflow, eliminating data silos and making customer intelligence available exactly when you need it.
Whether you're running Sales Cloud, Service Cloud, Marketing Cloud, or a custom Salesforce implementation, this integration transforms how your team accesses and acts on customer data. No more switching between tools, no SQL queries, no report building - just ask questions in natural language and get instant, intelligent answers.
Why Use Salesforce with OpenClaw?
Salesforce's robust API architecture and comprehensive data model make it one of the most powerful platforms for AI-powered workflows. Here's why the OpenClaw + Salesforce combination is transformative:
1. Natural Language CRM Queries
Salesforce's interface is powerful but complex. Reports, dashboards, and SOQL queries require training and time. OpenClaw eliminates this friction:
Traditional Salesforce:
- Build a report (5-10 minutes)
- Export to Excel for analysis
- Share with team via email
- Repeat when data changes
With OpenClaw:
Q: "Show me all opportunities closing this quarter over $50K"A: *Returns live data in seconds with deal details, owners, and close probability*Q: "Which accounts haven't been contacted in 30 days?"A: *Identifies at-risk accounts with last touch date and owner*Q: "What's our win rate by industry this year?"A: *Calculates and visualizes win rates across verticals*No report builder. No formulas. Just natural questions and instant answers.
2. Enterprise-Grade Security and Compliance
Salesforce is built for enterprise security, and OpenClaw respects every permission:
- Profile-based access: Users only see data they have permission to view
- Field-level security: Sensitive fields (SSN, salary) remain hidden if user lacks access
- Sharing rules: Territory, role, and manual sharing all respected
- Object permissions: If you can't see Opportunities in Salesforce, you can't query them via OpenClaw
- Audit trail: Every query logged in Salesforce Setup Audit Trail
- IP restrictions: Honors Login IP Ranges and network access rules
- MFA compliance: Requires multi-factor authentication if your org enforces it
This makes it perfect for enterprises with strict compliance requirements (HIPAA, SOC 2, GDPR). Your admins control exactly what data the AI can access.
3. Real-Time Data Access Across All Objects
Salesforce stores everything - standard objects (Leads, Contacts, Accounts, Opportunities, Cases) and custom objects. OpenClaw can query it all:
Standard Objects:
- Leads: Qualification status, source, conversion metrics
- Accounts: Company info, industry, revenue, ownership
- Contacts: Decision makers, roles, engagement history
- Opportunities: Pipeline, stages, amounts, close dates
- Cases: Support tickets, resolution times, customer issues
- Tasks & Events: Activities, meetings, follow-ups
- Campaigns: Marketing attribution, ROI, member status
Custom Objects:
- Products: Inventory, SKUs, pricing, availability
- Contracts: Terms, renewals, compliance tracking
- Assets: Customer equipment, serial numbers, warranties
- Projects: Implementation status, milestones, resources
- Partners: Channel relationships, deal registration
Example: "Show me all Enterprise accounts in California with open support cases and opportunities closing this month" - OpenClaw joins Accounts, Cases, and Opportunities in one query.
4. Intelligent Context Understanding
OpenClaw understands Salesforce business logic and terminology:
- Stage progression: Knows "Closed Won" is different from "Negotiation"
- Lead status: Understands "Qualified" vs "Unqualified" vs "Converted"
- Record types: Differentiates between "New Business" and "Renewal" opportunities
- Relationship fields: Follows lookup and master-detail relationships automatically
- Formula fields: Reads calculated fields like "Days to Close" or "Opportunity Score"
- Roll-up summaries: Accesses aggregated child data on parent records
You ask business questions, not technical questions. "Show me our pipeline" automatically knows to query Opportunities where IsClosed = false.
5. Multi-Cloud and Multi-Org Support
Enterprises often run multiple Salesforce instances:
- Production org: Live customer data
- Sandbox orgs: UAT, development, testing environments
- Multiple business units: Separate orgs per region/division
- Acquired companies: Legacy Salesforce instances not yet migrated
OpenClaw connects to all of them:
- Query across orgs: "Compare pipeline in US org vs EMEA org"
- Sandbox testing: Test queries in sandbox before running on production
- Unified view: Aggregate metrics across multiple Salesforce instances
- Per-org permissions: Different access levels per Salesforce org
6. Advanced Query Capabilities
Beyond simple queries, OpenClaw handles complex Salesforce operations:
Aggregations:
- "What's our total pipeline by sales rep?"
- "Average deal size by industry"
- "Sum of all open cases by product line"
Time-based queries:
- "Opportunities created last week"
- "Accounts added in Q1"
- "Cases closed this month"
Filtering and sorting:
- "Top 10 accounts by revenue"
- "Leads from webinars, sorted by score"
- "Opportunities over $100K, stage = Proposal"
Related data:
- "Show account details AND related contacts for Acme Corp"
- "All opportunities for accounts in the Enterprise segment"
- "Cases associated with opportunities closing this quarter"
7. Einstein AI Integration
For Salesforce orgs with Einstein AI, OpenClaw can:
- Query Einstein Opportunity Scores
- Access Einstein Lead Scoring predictions
- Retrieve Einstein Activity Capture insights
- Read Einstein Analytics (Tableau CRM) datasets
- Analyze Einstein Conversation Insights data
Example: "Show me opportunities with Einstein score > 70 and no activity in 2 weeks" - combines AI predictions with activity data to identify hot leads going cold.
8. Workflow Automation and Data Updates
Beyond read-only queries, OpenClaw can update Salesforce data:
Create records:
- "Create a lead for John Smith at Acme Corp, title CEO, source = Referral"
- "Log a task to follow up with Sarah next Tuesday"
- "Create a case for Account ABC about login issues, priority High"
Update records:
- "Change opportunity XYZ stage to Closed Won"
- "Update lead status to Qualified for all leads from last week's webinar"
- "Add tag 'VIP' to all accounts with revenue > $1M"
Delete records:
- "Delete test leads created today"
- "Remove duplicate contacts with no activity"
All updates respect field-level security, validation rules, and workflow automation. If a human can't do it, OpenClaw can't either.
Real-World Use Cases
1. Sales Rep: Quick CRM Lookups During Calls
Scenario: Your sales reps are on Zoom calls with prospects and customers. They need instant access to account history, opportunity status, and customer context without putting prospects on hold to search Salesforce.
How OpenClaw helps:
Integrate OpenClaw with Slack or Microsoft Teams:
- Pre-call prep: "@OpenClaw give me background on Acme Corp" ā Company overview, open opportunities, recent activity, key contacts
- During discovery: "What products does Acme use?" ā Lists current licenses, usage, and contract details
- Objection handling: "Have we worked with other fintech companies?" ā Case studies and references from similar industries
- Follow-up capture: "Create a task to send pricing to John by Friday" ā Task created in Salesforce with due date
- Next steps: "Update opportunity ABC to stage Negotiation, close date end of month" ā Updates in real-time
Impact:
- Sales calls feel more prepared and consultative
- No more awkward pauses to search Salesforce
- CRM stays updated without post-call data entry
- Reps close 25% more deals with instant context
2. Sales Manager: Pipeline Analysis and Forecasting
Scenario: You're a sales manager responsible for accurate forecasting. Every Monday you need to review pipeline health, identify at-risk deals, and coach your team. Building reports and analyzing data takes 2-3 hours per week.
How OpenClaw helps:
Ask strategic questions instead of building reports:
- Pipeline overview: "What's our total pipeline for Q2?" ā $2.4M across 47 opportunities
- At-risk deals: "Which deals over $50K have no activity in 2 weeks?" ā Identifies 8 opportunities needing attention
- Rep performance: "Compare quota attainment across my team" ā Table showing each rep vs target
- Stage velocity: "Average time from Qualified to Closed Won this year" ā 42 days (vs 38 days last quarter - flagged for investigation)
- Win rate analysis: "Win rate by lead source" ā Referrals 45%, Inbound 32%, Cold outbound 12%
- Forecast accuracy: "Opportunities marked Commit that didn't close last quarter" ā Lists deals to discuss in forecast call
Impact:
- Pipeline review time drops from 3 hours to 20 minutes
- Earlier identification of at-risk deals (more time to course-correct)
- Data-driven coaching conversations with reps
- Forecast accuracy improves 15-20%
3. Account Executive: Opportunity Management and Next Steps
Scenario: You manage 30-40 active opportunities across different stages. Keeping track of next steps, following up at the right time, and moving deals forward requires constant CRM monitoring.
How OpenClaw helps:
Proactive opportunity management:
- Daily standup: "What opportunities need my attention today?" ā Prioritized list with upcoming close dates, overdue tasks, and stalled deals
- Deal status: "Give me a full summary of the Acme Corp opportunity" ā Stage, amount, contacts, competitors, next steps, timeline
- Relationship mapping: "Who are the decision makers at Acme?" ā Contact hierarchy with roles and engagement history
- Competitive intel: "What competitors are we facing in active deals?" ā Lists competitors by opportunity with win/loss trends
- Task management: "Show all my overdue tasks" ā Tasks sorted by priority with associated opportunities
- Multi-threading: "Which opportunities only have one contact?" ā Flags single-threaded deals for relationship expansion
Impact:
- Never miss a follow-up or deadline
- Better prioritization (focus on high-value, high-probability deals)
- Stronger multi-threading in accounts
- 30% reduction in deal cycle time
4. SDR: Lead Qualification and Routing
Scenario: Your SDR team processes 500+ inbound leads per week. They need to quickly qualify leads, assign to the right sales rep, and ensure hot leads get immediate attention.
How OpenClaw helps:
Streamlined lead management:
- Lead triage: "Show me all unassigned leads from yesterday" ā List of new leads needing assignment
- Qualification: "How many leads are marked 'MQL' but not yet contacted?" ā Identifies 23 hot leads
- Territory routing: "Assign all Enterprise leads in California to Sarah" ā Bulk assignment based on territory rules
- Lead scoring: "Which leads have score > 80 and came from paid ads?" ā High-intent leads for immediate outreach
- Duplicate detection: "Find duplicate leads for john@acme.com" ā Prevents wasted effort on duplicates
- Conversion metrics: "My lead-to-opportunity conversion rate this month" ā Performance tracking for coaching
Impact:
- Lead response time drops from 3 hours to under 30 minutes
- Better lead assignment (right rep, right time)
- Higher conversion rates (20-30% improvement)
- SDRs handle 40% more volume with same team size
5. Customer Success Manager: Account Health Monitoring
Scenario: You manage a portfolio of 80 customer accounts. Your job is to ensure customer success, identify expansion opportunities, and prevent churn. Manually tracking account health is overwhelming.
How OpenClaw helps:
Proactive customer success:
- Health check: "Which accounts have open support cases over 7 days old?" ā At-risk accounts needing attention
- Engagement tracking: "Accounts with no activity in the last month" ā Identifies disengaged customers
- Expansion opportunities: "Customers using Product A but not Product B" ā Cross-sell targets
- Renewal pipeline: "Contracts renewing in the next 90 days" ā Prioritized renewal outreach list
- Usage analysis (if integrated with usage data): "Accounts with decreasing usage this quarter" ā Churn risk signals
- Executive relationships: "Which strategic accounts haven't had an executive touchpoint this quarter?" ā Ensures QBRs happen
- NPS tracking: "Accounts with NPS score under 6" ā Detractors needing intervention
Impact:
- Proactive churn prevention (identify risk before cancellation)
- Higher expansion revenue (systematic cross-sell/upsell identification)
- Better customer relationships (timely touchpoints)
- Customer retention increases 10-15%
6. Support Agent: Case Creation and Customer History
Scenario: Your support team handles 200+ cases per day. Agents need instant access to customer history, product details, and case resolution patterns to resolve issues quickly.
How OpenClaw helps:
Faster, smarter support:
- Customer lookup: "Show me account details for customer@acme.com" ā Company info, contacts, open opportunities, case history
- Case creation: "Create a case for Acme Corp: login issues, priority High" ā Case created with proper categorization
- Related cases: "Have we seen login issues before with Acme?" ā Historical case patterns
- Product context: "What products does this customer use?" ā License details, implementation dates
- Escalation: "Show all P1 cases assigned to me" ā Critical issues needing immediate attention
- Resolution patterns: "How did we resolve similar login issues?" ā Knowledge base articles and past solutions
- Case metrics: "My average case resolution time this week" ā Performance tracking
Impact:
- First response time drops 50% (instant customer context)
- Faster resolution (learn from past cases)
- Better customer experience (agents have full context)
- Case volume handled increases 30% without adding headcount
7. Marketing Ops: Campaign ROI and Attribution
Scenario: Your marketing team runs dozens of campaigns across channels (webinars, ads, events, content). You need to track which campaigns drive pipeline and revenue, but multi-touch attribution is complex.
How OpenClaw helps:
Data-driven marketing decisions:
- Campaign performance: "Which campaigns generated the most pipeline this quarter?" ā Campaign ROI ranked by influenced pipeline
- Lead source analysis: "Conversion rate by lead source" ā Webinars 15%, Paid ads 8%, Organic 12%
- Attribution: "Show opportunities influenced by Q1 webinar series" ā Multi-touch attribution tracking
- Campaign members: "How many MQLs came from last week's trade show?" ā Event ROI measurement
- Sales alignment: "Campaigns with highest lead-to-close rate" ā Identifies best-performing programs
- Budget allocation: "Cost per opportunity by campaign" ā Optimize marketing spend
- Content performance: "Which whitepapers led to the most SQLs?" ā Content strategy insights
Impact:
- Marketing budget allocated to highest-ROI channels
- Faster campaign analysis (hours to minutes)
- Better sales-marketing alignment (shared data)
- Marketing-sourced pipeline increases 25%
8. Sales Ops: Data Cleanup and Deduplication
Scenario: Your Salesforce org has grown organically over 5 years. Data quality issues are everywhere: duplicates, incomplete records, stale data, inconsistent formatting. Cleanup projects are tedious and time-consuming.
How OpenClaw helps:
Systematic data hygiene:
- Duplicate detection: "Find duplicate accounts by domain" ā Lists potential merges
- Incomplete records: "Accounts missing industry or employee count" ā Data enrichment targets
- Stale data: "Leads created over 1 year ago with status = New" ā Cleanup candidates
- Format standardization: "Update all phone numbers to E.164 format" ā Bulk formatting fixes
- Territory gaps: "Accounts with no owner assigned" ā Assignment needed
- Data validation: "Opportunities over $1M with close date in the past" ā Data integrity issues
- Merge preview: "Show me all data before merging Account A and Account B" ā Safer merges
Impact:
- Data quality improves systematically (not ad-hoc)
- Sales team trusts CRM data again
- Reports and dashboards become accurate
- Marketing campaigns avoid bounces and bad data
Features Deep Dive
Natural Language Queries
Ask questions in plain English (no SOQL required):
- "Show me all opportunities"
- "Which accounts are in California?"
- "Leads from last week"
- "Cases assigned to me"
- "Top 5 deals by amount"
- "Contacts at Acme Corp"
OpenClaw translates to SOQL automatically and handles Salesforce API calls.
Complex Filtering
Multiple conditions, boolean logic:
- "Opportunities over $50K AND stage = Negotiation"
- "Leads from webinars OR events"
- "Accounts in California, Texas, or New York"
- "Cases opened this month but not yet closed"
- "Contacts with email AND phone populated"
Relationship Traversal
Query across related objects:
- "Show Account name and Owner name for all Opportunities" (Opportunity ā Account, User)
- "All Contacts where Account Industry = Technology" (Contact ā Account)
- "Cases for Accounts owned by Sarah" (Case ā Account ā Owner)
- "Opportunities for Contacts with title 'CEO'" (Opportunity ā Contact)
Aggregations and Analytics
Summarize data:
- "Total pipeline amount" (SUM)
- "Average deal size" (AVG)
- "Number of open cases" (COUNT)
- "Largest opportunity this quarter" (MAX)
- "Oldest lead not yet contacted" (MIN)
Time-Based Queries
Flexible date filtering:
- "TODAY", "YESTERDAY", "THIS WEEK", "LAST WEEK"
- "THIS MONTH", "LAST MONTH", "THIS QUARTER", "LAST QUARTER"
- "THIS YEAR", "LAST YEAR"
- "LAST N DAYS", "NEXT N DAYS"
- Custom date ranges: "Between Jan 1 and Mar 31"
Sorting and Limiting
Control result sets:
- "Show top 10 accounts by revenue"
- "Sort opportunities by close date descending"
- "Newest leads first"
- "Limit results to 50"
Field Selection
Request specific fields:
- "Show Name, Email, Phone for all Contacts"
- "Opportunity Name, Amount, Stage, Close Date"
- "Account Name, Industry, Annual Revenue"
Record Creation
Create new records:
- "Create lead: Name = John Smith, Company = Acme Corp, Email = john@acme.com"
- "Log a task to call Sarah tomorrow"
- "Create case for Account ABC"
Record Updates
Modify existing data:
- "Update Opportunity X to stage Closed Won"
- "Change lead status to Qualified"
- "Set Account rating to Hot for all accounts with pipeline > $100K"
Bulk Operations
Update many records at once:
- "Update all leads from Trade Show A to status = Contacted"
- "Assign all California accounts to Sarah"
- "Delete test data created today"
Custom Objects
Query your custom Salesforce objects:
- "Show all custom object records where Status = Active"
- "Count of Project__c records by Owner"
- "Assets with warranty expiring this year"
OpenClaw auto-discovers your custom objects and fields.
Salesforce Metadata Access
Query Salesforce configuration:
- "What fields exist on the Account object?"
- "List all custom objects in this org"
- "Show picklist values for Lead Status"
- "Describe validation rules on Opportunity"
Useful for admins and developers.
Multi-Org Queries
If connected to multiple Salesforce orgs:
- "Show pipeline in Production org"
- "Compare lead volume: Sandbox vs Production"
- "Query accounts in EMEA org"
Einstein AI Data
For orgs with Einstein:
- "Opportunities with Einstein score > 80"
- "Lead scores from Einstein Lead Scoring"
- "Activity insights from Einstein Activity Capture"
Security and Compliance
- Respects all Salesforce permissions (profile, object, field)
- Honors sharing rules (role hierarchy, territory, manual)
- Audit trail (all queries logged)
- IP restrictions enforced
- MFA required if your org requires it
- Encrypted connections (TLS 1.3)
- No data stored outside Salesforce (queries are real-time)
Setup Option 1: HeraClaw Cloud (Recommended)
Time required: 60 seconds Technical skill: None Cost: Included in HeraClaw Cloud subscription Best for: 95% of users, all team sizes
Why HeraClaw Cloud?
- No Salesforce Connected App configuration required
- No OAuth 2.0 flow setup
- No security token management
- No API version compatibility concerns
- No certificate management
- No IP allowlisting
- Professional support included
- Automatic updates when Salesforce APIs change
- 99.9% uptime SLA
- Enterprise-grade security (SOC 2, GDPR, HIPAA available)
Steps:
1. Sign up for HeraClaw Cloud
- Visit cloud.getopenclaw.ai
- Click "Sign In" (no credit card required)
- Create your account (takes 60 seconds)
2. Navigate to Integrations
- Click "Integrations" in the left sidebar
- Find "Salesforce" in the list
- Click "Connect to Salesforce"
3. Authorize Your Salesforce Org
- Salesforce OAuth login screen appears
- Enter your Salesforce credentials
- Select environment:
- Production (login.salesforce.com) - for live customer data
- Sandbox (test.salesforce.com) - for testing environments
- Custom Domain - if your org uses My Domain
- Review permissions
- Click "Allow"
4. Configure Permissions (Optional)
- Back in HeraClaw dashboard
- Choose which objects the AI can access
- Set user-level restrictions (which team members can query Salesforce)
- Configure data retention policies
- Save configuration
5. Test the Connection
- In HeraClaw chat interface, ask:
- "Show me 5 recent opportunities"
- "How many accounts do we have?"
- "List my open tasks"
- Verify data appears correctly
6. Invite Your Team
- Go to Team Settings
- Invite team members via email
- Assign Salesforce permissions per user
- They can start querying immediately
That's it! You're up and running.
What You Get with HeraClaw Cloud:
ā Instant Setup - No technical configuration ā Automatic Updates - We handle Salesforce API version migrations ā Professional Support - Email, chat, and phone support ā 99.9% Uptime - SLA-backed reliability ā Enterprise Security - SOC 2, GDPR, HIPAA available ā Unlimited Orgs - Connect production, sandbox, and multiple business units ā Advanced Features - Multi-org queries, Einstein integration, custom object support ā No Maintenance - We manage servers, scaling, API limits
Pricing: See cloud.getopenclaw.ai/pricing (starts with affordable team plans)
Get Started: Start with HeraClaw Cloud ā
Setup Option 2: Self-Hosted (Advanced)
Time required: 45-60 minutes (first time), 20-30 minutes (if experienced) Technical skill: Intermediate to Advanced Cost: VPS hosting ($10-50/month) + your time Best for: DevOps engineers, technical teams, strict compliance requirements
Who should self-host?
ā DevOps engineers who enjoy infrastructure ā Organizations with strict data residency requirements ā Teams already running Kubernetes/Docker infrastructure ā Companies that cannot use third-party SaaS ā Technical enthusiasts with homelab setups ā Need to customize query logic or add proprietary business rules
Who should NOT self-host?
ā Small teams without DevOps expertise ā Anyone who values time over cost savings ā Teams without security/compliance expertise ā Organizations without experience managing OAuth apps ā Teams that don't want to handle Salesforce API version upgrades
Prerequisites:
- OpenClaw installed and running (Mac/Linux/VPS)
- Terminal/SSH access to your OpenClaw server
- Salesforce System Administrator permissions
- Understanding of OAuth 2.0 and JWT
- Basic networking knowledge
- SSL certificate (for production)
Detailed Self-Hosted Setup
Step 1: Create a Salesforce Connected App
-
Log into Salesforce
-
Go to Setup (gear icon ā Setup)
-
In Quick Find, search "App Manager"
-
Click New Connected App
-
Fill in basic information:
- Connected App Name: "OpenClaw Integration"
- API Name: Auto-generated (OpenClaw_Integration)
- Contact Email: your-email@company.com
-
Check Enable OAuth Settings
-
Callback URL:
- If using localhost for testing:
http://localhost:8080/oauth/callback - If using a domain:
https://your-openclaw-domain.com/oauth/callback - Must be HTTPS for production (Salesforce requires it)
- If using localhost for testing:
-
Selected OAuth Scopes - Add these scopes:
- Full access (full) - For complete API access (simplest)
- OR select specific scopes:
- Access and manage your data (api)
- Perform requests on your behalf at any time (refresh_token, offline_access)
- Access your basic information (id, profile, email, address, phone)
- Access custom permissions (custom_permissions)
-
Check Require Secret for Web Server Flow (recommended for security)
-
Check Require Secret for Refresh Token Flow
-
Click Save
Important: After saving, it takes 2-10 minutes for Salesforce to activate the Connected App.
Step 2: Retrieve Consumer Key and Secret
- After saving, click Continue
- You'll see the Connected App detail page
- Click Manage Consumer Details
- Verify your identity (Salesforce will send a verification code to your email)
- Copy the Consumer Key (this is your Client ID)
- Copy the Consumer Secret (this is your Client Secret)
- Store these securely - you'll need them for OpenClaw configuration
Step 3: Configure IP Relaxation and Security (Optional but Recommended)
- Still on the Connected App detail page
- Click Edit Policies
- IP Relaxation:
- Relax IP restrictions - Allows connections from any IP (easier, less secure)
- Enforce IP restrictions - Requires connections from trusted IPs (more secure)
- Refresh Token Policy:
- Refresh token is valid until revoked (recommended)
- Permitted Users:
- All users may self-authorize (easiest)
- Admin approved users are pre-authorized (more control - requires profile/permission set assignment)
- Click Save
Step 4: Pre-Authorize Users (If Using Admin Approved Users)
If you selected "Admin approved users" in Step 3:
- Go to Setup ā Manage Connected Apps
- Find your "OpenClaw Integration" app
- Click on it
- Click Manage
- Click Edit Policies
- Under Permitted Users, select Admin approved users are pre-authorized
- Click Save
- Scroll to Profiles section
- Click Manage Profiles
- Select profiles that should have access (e.g., System Administrator, Sales User)
- Click Save
Alternatively, use Permission Sets:
- Create a permission set: Setup ā Permission Sets ā New
- Assign the Connected App to the permission set
- Assign the permission set to users who need access
Step 5: Get Your Salesforce Org URL and API Version
You'll need:
- Instance URL: Your Salesforce org URL (e.g.,
https://yourcompany.my.salesforce.com) - API Version: Current Salesforce API version (e.g.,
v60.0as of Spring '24)- Find this at Setup ā API ā Check the version numbers
- Use the latest version for best compatibility
Step 6: Configure OpenClaw
Edit your OpenClaw config file (usually ~/.openclaw/config.yaml or ~/.config/openclaw/config.yaml):
integrations: salesforce: enabled: true # Connected App credentials from Step 2 clientId: "3MVG9...your_consumer_key_here" clientSecret: "1234567890...your_consumer_secret_here" # Salesforce environment # Production: https://login.salesforce.com # Sandbox: https://test.salesforce.com # Custom domain: https://yourcompany.my.salesforce.com loginUrl: "https://login.salesforce.com" # OAuth callback URL (must match Connected App setting) callbackUrl: "http://localhost:8080/oauth/callback" # API version (use latest: v60.0, v61.0, etc.) apiVersion: "v60.0" # Optional: Restrict object access allowedObjects: - "Account" - "Contact" - "Opportunity" - "Lead" - "Case" # Add custom objects: "CustomObject__c" # Optional: Restrict field access (if not specified, all fields allowed) # restrictedFields: # Account: # - "SSN__c" # - "Salary__c" # Optional: Query limits (protect against expensive queries) queryLimits: maxRecords: 2000 # Max records returned per query timeout: 30 # Query timeout in seconds # Optional: Rate limiting rateLimit: requestsPerHour: 1000 # Salesforce API limits apply # Optional: Enable/disable operations permissions: read: true # Allow queries create: true # Allow record creation update: true # Allow record updates delete: false # Disallow deletions (recommended)Security Best Practice: Use environment variables instead of hardcoding credentials:
integrations: salesforce: clientId: ${SALESFORCE_CLIENT_ID} clientSecret: ${SALESFORCE_CLIENT_SECRET}Then set environment variables:
export SALESFORCE_CLIENT_ID="3MVG9...your_key"export SALESFORCE_CLIENT_SECRET="1234567890...your_secret"Step 7: Start OpenClaw and Authenticate
# If running as a servicesudo systemctl restart openclaw# If running directlyopenclaw gateway start# Check logsopenclaw gateway logs --followWhat to look for in logs:
ā Salesforce integration enabledā OAuth client configuredā Waiting for OAuth authorization...Step 8: Complete OAuth Authorization Flow
-
In your browser, visit OpenClaw's authorization endpoint:
bashhttp://localhost:8080/integrations/salesforce/authorize -
You'll be redirected to Salesforce login
-
Enter your Salesforce credentials
-
Review permissions requested
-
Click Allow
-
You'll be redirected back to OpenClaw
-
Should see: "ā Salesforce authorization successful"
OpenClaw now has a refresh token to access your Salesforce org.
Step 9: Verify Connection
Test queries:
# Via OpenClaw CLIopenclaw query "Show me 5 accounts"# Via APIcurl http://localhost:8080/api/query \ -H "Content-Type: application/json" \ -d '{"query": "Show me my open opportunities"}'Expected response: JSON with Salesforce account data
Step 10: Set Up Token Refresh (Important)
Salesforce access tokens expire after a few hours. Refresh tokens last much longer (until revoked). OpenClaw handles refresh automatically, but verify:
integrations: salesforce: tokenRefresh: enabled: true # Refresh token before expiration (seconds) refreshBeforeExpiry: 300 # 5 minutes before expiryCheck logs for successful token refreshes:
ā Salesforce access token refreshedā New token expires at: 2026-04-10 15:30:00 UTCAdvanced Self-Hosted Configuration
Multiple Salesforce Orgs
Connect to production, sandbox, and multiple business units:
integrations: salesforce: instances: production: clientId: "${SF_PROD_CLIENT_ID}" clientSecret: "${SF_PROD_CLIENT_SECRET}" loginUrl: "https://login.salesforce.com" apiVersion: "v60.0" sandbox: clientId: "${SF_SANDBOX_CLIENT_ID}" clientSecret: "${SF_SANDBOX_CLIENT_SECRET}" loginUrl: "https://test.salesforce.com" apiVersion: "v60.0" emea_org: clientId: "${SF_EMEA_CLIENT_ID}" clientSecret: "${SF_EMEA_CLIENT_SECRET}" loginUrl: "https://emea.my.salesforce.com" apiVersion: "v60.0"Query specific orgs:
- "Show accounts in production org"
- "Compare pipeline: production vs sandbox"
- "Query opportunities in EMEA org"
Custom Query Transformations
Add business logic to queries:
integrations: salesforce: queryTransformations: # Automatically filter deleted records excludeDeleted: true # Add default filters defaultFilters: Account: - "IsDeleted = false" - "Type != 'Test'" Opportunity: - "IsDeleted = false" - "StageName != 'Closed Lost'" # Field aliases (rename fields in responses) fieldAliases: Account: AnnualRevenue: "Revenue" BillingCountry: "Country"SOQL Query Logging
Log all SOQL queries for debugging:
integrations: salesforce: logging: logQueries: true logResults: false # Don't log data (privacy) logFile: "/var/log/openclaw/salesforce-queries.log"Example log output:
2026-04-10 10:30:15 | User: sarah@company.com | Query: SELECT Name, Amount, StageName FROM Opportunity WHERE Amount > 500002026-04-10 10:31:42 | User: john@company.com | Query: SELECT Id, Name, Email FROM Contact WHERE AccountId = '001xx000003DGbY'Field-Level Security Enforcement
Respect Salesforce field-level security:
integrations: salesforce: security: # Enforce field-level security (FLS) respectFieldSecurity: true # Enforce object-level security (CRUD) respectObjectSecurity: true # Enforce sharing rules respectSharingRules: true # Run queries as specific user (sees only what that user sees) runAsUser: trueBulk API for Large Queries
Use Salesforce Bulk API for queries returning 10,000+ records:
integrations: salesforce: bulkApi: enabled: true # Use Bulk API when result count exceeds threshold threshold: 10000 # Bulk API timeout (can take minutes for large queries) timeout: 300 # 5 minutesCustom Object Auto-Discovery
Automatically discover custom objects and fields:
integrations: salesforce: metadata: autoDiscover: true # Refresh metadata cache interval (hours) refreshInterval: 24 # Cache location cacheDir: "/var/cache/openclaw/salesforce-metadata"This allows queries like:
- "Show all CustomObject__c records"
- "What fields exist on Product__c?"
Einstein AI Integration
For orgs with Einstein:
integrations: salesforce: einstein: enabled: true # Access Einstein Opportunity Scoring opportunityScoring: true # Access Einstein Lead Scoring leadScoring: true # Access Einstein Activity Capture activityCapture: trueQueries:
- "Opportunities with Einstein score > 80"
- "Lead score distribution"
- "Einstein activity insights for Account ABC"
Webhook Integration
Receive Salesforce events (requires Salesforce Platform Events or Change Data Capture):
integrations: salesforce: webhooks: enabled: true endpoint: "https://your-openclaw-domain.com/webhooks/salesforce" events: - "OpportunityChangeEvent" - "LeadChangeEvent" - "CaseChangeEvent"Use cases:
- Notify team when opportunity reaches "Closed Won"
- Alert when high-value lead is created
- Trigger workflow when case is escalated
Troubleshooting Self-Hosted Setup
"Invalid Client" Error During OAuth
Symptoms: OAuth flow fails with "invalid_client_id" or "invalid_client"
Potential causes:
- Consumer Key (Client ID) incorrect
- Consumer Secret incorrect
- Connected App not yet activated (wait 2-10 minutes after creation)
- Wrong Salesforce environment (using test.salesforce.com for production org)
Fix:
- Double-check Consumer Key and Secret
- Verify you're using the correct loginUrl (login.salesforce.com vs test.salesforce.com)
- Wait 10 minutes after creating Connected App
- Check Connected App status: Setup ā App Manager ā Find your app ā Should say "Active"
"Redirect URI Mismatch" Error
Symptoms: OAuth fails with "redirect_uri_mismatch"
Potential causes:
- Callback URL in OpenClaw config doesn't match Connected App
- HTTP vs HTTPS mismatch
- Port number missing or incorrect
Fix:
- Connected App callback URL must EXACTLY match OpenClaw config
- If using HTTPS in Connected App, must use HTTPS in OpenClaw (and vice versa)
- Include port if non-standard (e.g.,
:8080)
Example - these must match:
- Connected App:
https://openclaw.company.com/oauth/callback - OpenClaw config:
callbackUrl: "https://openclaw.company.com/oauth/callback"
"Insufficient Privileges" Error When Querying
Symptoms: Query fails with "INSUFFICIENT_ACCESS_OR_READONLY" or "INSUFFICIENT_PRIVILEGES"
Potential causes:
- User lacks object-level permissions (CRUD)
- User lacks field-level permissions (FLS)
- Sharing rules prevent access to records
- Profile restrictions
Fix:
- Check user's Profile: Setup ā Users ā Find user ā Profile
- Verify object permissions: Setup ā Profiles ā [User's Profile] ā Object Settings ā [Object] ā Check Read permission
- Verify field permissions: Object Settings ā [Object] ā Check field visibility
- Check sharing rules: Setup ā Sharing Settings ā [Object] ā Verify user has access
API Rate Limit Exceeded
Symptoms: Queries fail with "REQUEST_LIMIT_EXCEEDED"
Potential causes:
- Exceeded Salesforce daily API limit (varies by edition)
- Developer Edition: 5,000 requests/day
- Enterprise Edition: 10,000 + 1,000 per user license
- Unlimited Edition: 20,000 + 1,000 per user license
- Too many concurrent requests
Fix:
- Check current API usage: Setup ā System Overview ā API Usage
- Reduce query frequency
- Use SOQL more efficiently (request only needed fields)
- Implement caching in OpenClaw:
integrations: salesforce: caching: enabled: true ttl: 300 # Cache results for 5 minutes- Consider upgrading Salesforce edition for higher limits
Access Token Expired
Symptoms: Queries work initially, then fail with "INVALID_SESSION_ID" or "Session expired or invalid"
Potential causes:
- Access token expired (Salesforce tokens expire after ~2 hours)
- Refresh token not configured or failed
- User changed password (invalidates tokens)
- Admin revoked access
Fix:
- Verify token refresh is enabled:
integrations: salesforce: tokenRefresh: enabled: true- Check logs for refresh token errors
- Re-authorize if refresh token is invalid:
openclaw integrations salesforce reauthorize- Ensure OAuth scope includes
refresh_tokenandoffline_access
Query Returns No Results (But Data Exists)
Symptoms: Query succeeds but returns empty results, even though records exist in Salesforce
Potential causes:
- Sharing rules - user can't see those records
- Record type filtering (if using Record Types)
- Deleted records (IsDeleted = true)
- Wrong org (querying sandbox instead of production)
Fix:
- Check the same query in Salesforce Developer Console:
- Developer Console ā Query Editor ā Run same SOQL
- If returns results in Dev Console but not OpenClaw: likely a permission issue in the Connected App user context
- Check sharing settings: Setup ā Sharing Settings ā [Object]
- Verify record visibility in Salesforce UI (can you see the records when logged in as the integrated user?)
"INVALID_FIELD" Error
Symptoms: Query fails with "No such column 'FieldName' on entity"
Potential causes:
- Field doesn't exist on that object
- Field name typo
- Custom field missing
__csuffix - Field was deleted
Fix:
- Verify field exists: Setup ā Object Manager ā [Object] ā Fields & Relationships
- Check field API name (not label)
- Custom fields must end with
__c(e.g.,CustomField__c, notCustomField) - Use metadata query to list available fields:
openclaw query "What fields exist on Account?"SSL Certificate Errors
Symptoms: OAuth or queries fail with SSL/TLS errors
Potential causes:
- Self-signed certificate not trusted
- Expired SSL certificate
- Hostname mismatch
- Old TLS version (Salesforce requires TLS 1.2+)
Fix:
- Ensure TLS 1.2 or higher:
openssl s_client -connect login.salesforce.com:443 -tls1_2- Use a valid SSL certificate (Let's Encrypt for free certificates)
- For development, can disable SSL verification (NOT for production):
integrations: salesforce: security: verifySsl: false # ONLY for developmentConnected App Not Appearing for Users
Symptoms: Users can't authorize (app doesn't appear in OAuth flow)
Potential causes:
- Connected App not assigned to user's profile/permission set
- "Admin approved users" setting requires pre-authorization
Fix:
- Setup ā App Manager ā Your Connected App ā Manage
- Under Permitted Users, choose:
- "All users may self-authorize" (easier)
- OR assign profiles/permission sets (more secure)
- If using profiles: Manage Profiles ā Select user's profile ā Save
- If using permission sets: Create permission set ā Assign to users
Security Best Practices for Self-Hosted
1. Use Environment Variables for Secrets
Never hardcode credentials:
# .env file (add to .gitignore)SALESFORCE_CLIENT_ID=3MVG9...SALESFORCE_CLIENT_SECRET=1234567890...# Load in configexport $(cat .env | xargs)# config.yamlintegrations: salesforce: clientId: ${SALESFORCE_CLIENT_ID} clientSecret: ${SALESFORCE_CLIENT_SECRET}2. Restrict OAuth Scopes
Only request necessary permissions:
- ā Use specific scopes (api, refresh_token) instead of "full"
- ā Don't request "full" access unless absolutely needed
3. Use IP Allowlisting
Restrict Connected App to known IPs:
- Setup ā Connected Apps ā Your App ā Edit Policies
- IP Relaxation: Enforce IP restrictions
- Setup ā Network Access ā New
- Add your OpenClaw server IPs
4. Implement Audit Logging
integrations: salesforce: audit: enabled: true logFile: "/var/log/openclaw/salesforce-audit.log" logQueries: true logResults: false # Don't log actual data (privacy)Review logs regularly for suspicious queries.
5. Rotate Credentials Regularly
- Every 90 days, rotate Consumer Secret:
- Setup ā App Manager ā Your App ā View ā Manage Consumer Details ā Regenerate Secret
- Update OpenClaw config with new secret
- Restart OpenClaw
6. Use Role-Based Access Control
Restrict which OpenClaw users can query Salesforce:
integrations: salesforce: access: # Only these users can query Salesforce allowedUsers: - "sarah@company.com" - "john@company.com" # Or use role-based access allowedRoles: - "sales_team" - "support_team"7. Disable Dangerous Operations
Prevent accidental data deletion:
integrations: salesforce: permissions: read: true create: true update: true delete: false # Disable deletions8. Monitor Salesforce Session Inspector
Regularly review active sessions:
- Setup ā Session Management
- Check for unexpected sessions
- Revoke suspicious sessions
9. Enable Multi-Factor Authentication
Require MFA for all users:
- Setup ā Identity ā Multi-Factor Authentication
- Enable MFA for all users accessing Connected Apps
10. Use Salesforce Shield (If Available)
For sensitive data:
- Platform Encryption: Encrypt sensitive fields at rest
- Event Monitoring: Track API usage and anomalies
- Field Audit Trail: Track field history changes
Comparison: HeraClaw Cloud vs Self-Hosted
| Feature | HeraClaw Cloud ⨠| Self-Hosted š ļø |
|---|---|---|
| Setup time | 60 seconds | 45-60 minutes (first time) |
| Technical skill | None | Intermediate to Advanced |
| Connected App setup | Pre-configured | Manual OAuth setup |
| API version management | Automatic upgrades | Manual version migrations |
| Token refresh | Handled automatically | You implement refresh logic |
| Support | Professional support team | Community forums |
| Uptime SLA | 99.9% guaranteed | DIY |
| Security certs | SOC 2, GDPR, HIPAA | Self-certification |
| Monitoring | 24/7 monitoring | You set up alerts |
| Cost | Monthly subscription | VPS + your time |
| Scaling | Auto-scales | Manual scaling |
| Multi-org | Unlimited orgs | Limited by config |
| API limits | We manage limits | You monitor usage |
| Salesforce updates | We handle API changes | You update OpenClaw |
| SSL/TLS | Included | You manage certificates |
| Data residency | US/EU regions | Your choice |
| Einstein AI | Fully integrated | Manual configuration |
| Custom objects | Auto-discovered | Manual config |
Why 95% of users choose HeraClaw Cloud:
ā Time is valuable - 45-60 min setup + ongoing maintenance adds up ā Salesforce API changes frequently - 3 major releases per year (Spring, Summer, Winter) ā OAuth is complex - Connected Apps, security tokens, JWT flows - easy to misconfigure ā Security is hard - SOC 2 compliance costs $50K-$150K to achieve ā Reliability matters - 99.9% SLA vs DIY uptime monitoring ā Support is worth it - Email/chat/phone support when Salesforce throws errors ā Hidden costs - SSL certs, API monitoring, version upgrade testing
When self-hosting makes sense:
ā You have Salesforce admins and DevOps engineers with spare capacity ā Data cannot leave your infrastructure (regulatory compliance) ā You need to integrate proprietary business logic into queries ā You want to customize SOQL generation for specific use cases ā You have 24/7 on-call rotation to handle incidents ā You already maintain other Salesforce integrations (familiar with Connected Apps)
Frequently Asked Questions
Q: Which Salesforce editions are supported?
A: All editions with API access:
- ā Developer Edition (free, for testing)
- ā Professional Edition (requires API access add-on)
- ā Enterprise Edition
- ā Unlimited Edition
- ā Performance Edition
Note: Salesforce Professional Edition does not include API access by default. You must purchase the API add-on.
Q: Does it work with Salesforce sandboxes?
A: Yes! Connect to:
- Production orgs (login.salesforce.com)
- Full Copy sandboxes
- Partial Copy sandboxes
- Developer sandboxes
- Developer Pro sandboxes
Recommendation: Test queries in sandbox before running on production.
Q: Can I connect multiple Salesforce orgs?
A: Yes! HeraClaw Cloud supports unlimited orgs. Self-hosted requires configuring each org separately. Common use cases:
- Production + multiple sandboxes
- Multiple business units (separate orgs)
- Acquired companies (legacy orgs)
- Global operations (regional orgs)
Q: What about Salesforce API limits?
A: Salesforce enforces daily API request limits:
- Developer Edition: 5,000 requests/day
- Enterprise Edition: 10,000 base + 1,000 per user license
- Unlimited Edition: 20,000 base + 1,000 per user license
HeraClaw Cloud monitors your API usage and optimizes queries to stay under limits. Self-hosted users must monitor usage manually (Setup ā System Overview ā API Usage).
Q: Does it work with custom objects?
A: Absolutely! Query any custom object:
- "Show all Product__c records"
- "Count of Contract__c by Status"
- "Assets with SerialNumber__c populated"
OpenClaw auto-discovers custom objects and fields.
Q: What about Einstein AI features?
A: Full support for Einstein:
- Einstein Opportunity Scoring
- Einstein Lead Scoring
- Einstein Activity Capture
- Einstein Analytics (Tableau CRM)
- Einstein Conversation Insights
Example queries:
- "Opportunities with Einstein score > 80"
- "Lead score distribution by source"
Q: Can I create/update/delete Salesforce records?
A: Yes (if configured):
- Create: "Create a lead for John Smith at Acme Corp"
- Update: "Change opportunity ABC to stage Closed Won"
- Delete: "Delete test accounts created today" (usually disabled for safety)
All operations respect validation rules, triggers, and workflow automation.
Q: Is my Salesforce data secure?
A: HeraClaw Cloud:
- SOC 2 Type II certified
- Encrypted in transit (TLS 1.3)
- Encrypted at rest (AES-256)
- GDPR compliant
- HIPAA available (BAA upon request)
- No data stored (queries are real-time to Salesforce)
Self-hosted: Your responsibility, but you control the infrastructure.
Both options respect all Salesforce permissions (profile, object, field, sharing).
Q: What if Salesforce API changes?
A: Salesforce releases 3 major API updates per year (Spring, Summer, Winter).
HeraClaw Cloud: We handle all API migrations automatically with zero downtime.
Self-hosted: You must:
- Test queries against new API version
- Update OpenClaw configuration
- Deploy updates to production
Q: Can I query across multiple objects (joins)?
A: Yes! OpenClaw handles relationship queries:
- "Show Account name and Owner name for all Opportunities"
- "Contacts where Account Industry = Technology"
- "Cases for Accounts owned by Sarah"
Salesforce relationships (lookups and master-detail) are automatically traversed.
Q: How fast are queries?
A: Typically 1-3 seconds, depending on:
- Query complexity (simple vs aggregations)
- Result size (10 records vs 10,000 records)
- Salesforce org performance (large orgs can be slower)
- Network latency (cloud regions)
Q: Does it support Salesforce reports and dashboards?
A: Not directly, but you can replicate report logic:
- Instead of building a report, ask: "Show opportunities by stage"
- Instead of a dashboard, ask: "What's our win rate this quarter?"
OpenClaw generates the SOQL query to get the same data.
Q: What about Salesforce Communities (Experience Cloud)?
A: OpenClaw connects via standard Salesforce APIs, so it can query data visible to Community users if you authenticate as a Community user. However, most users connect as an internal Salesforce user.
Q: Can I schedule automated queries?
A: Yes! Set up scheduled queries:
- Daily pipeline report emailed to sales team
- Weekly lead volume summary
- Monthly closed-won analysis
- Real-time alerts (e.g., when opportunity > $100K is created)
Q: Does it work with Salesforce Mobile App?
A: OpenClaw is separate from Salesforce Mobile. However, if you integrate OpenClaw with Slack or Teams, you can query Salesforce data from mobile via those apps.
Q: What about Salesforce CPQ (Configure, Price, Quote)?
A: Yes, if you have CPQ:
- Query Quote objects
- Access Product rules
- Retrieve pricing information
- Analyze quote-to-close metrics
CPQ uses custom objects (SBQQ__*), which OpenClaw auto-discovers.
Q: Can I migrate from self-hosted to Cloud?
A: Absolutely! Export your OpenClaw configuration, sign up for HeraClaw Cloud, re-authorize Salesforce (60 seconds), and you're done. We'll help you migrate - most migrations complete in under 15 minutes.
Q: What about Salesforce Shield encryption?
A: OpenClaw can read Shield-encrypted fields if the authenticated user has "View Encrypted Data" permission. Encrypted fields are decrypted by Salesforce before being returned via API.
Q: Does it support Salesforce Knowledge?
A: Yes! Query Knowledge articles:
- "Show all Knowledge articles about password resets"
- "Most viewed articles this month"
- "Articles by topic = Billing"
Q: How do I revoke access?
A: HeraClaw Cloud:
- Dashboard ā Integrations ā Salesforce ā Disconnect
- (Optional) Revoke in Salesforce: Setup ā Connected Apps ā HeraClaw ā Revoke
Self-hosted:
- Disable in OpenClaw config
- Revoke in Salesforce: Setup ā Connected Apps ā Your App ā Manage ā Revoke All Sessions
Get Started
For 95% of users (recommended):
- 60-second setup
- No technical skills needed
- No Connected App configuration
- Professional support
- 99.9% uptime SLA
- No credit card required to start
For advanced users only:
- 45-60 minute setup
- Requires Salesforce admin + DevOps skills
- You maintain infrastructure
- Full control and customization
- Must handle API version upgrades
Questions? Email support@cloud.getopenclaw.ai or join our community Slack for help.
Last updated: April 10, 2026
Built with OpenClaw ā The open-source AI assistant platform. Self-host or use HeraClaw Cloud.
Features
Contact lookup
Find contacts, accounts, and full relationship history instantly
Pipeline management
View, update, and manage your opportunity pipeline
Activity logging
Log calls, emails, and meetings directly from chat
Deal updates
Update stage, amount, and close dates without opening Salesforce
Reports on demand
Quota attainment, pipeline health, and at-risk deals
Task creation
Create follow-up tasks linked to contacts and opportunities
Use Cases
Pre-call research
Quick account and contact context before every sales call
Pipeline hygiene
Identify stale deals and update statuses from your phone
Activity logging
Log calls and emails immediately after they happen
Forecast reviews
Weekly pipeline summaries and quota tracking on demand
Setup Guide
Requirements
- āSalesforce account (any edition with API access)
- āConnected App configured in Salesforce
- āAPI access enabled for your user profile
- āOpenClaw running on a server or Mac
Create a Connected App
In Salesforce Setup, go to App Manager and create a new Connected App. Enable OAuth settings with 'Full access' or specific scopes like 'api' and 'refresh_token'.
Configure OAuth callback
Add 'http://localhost:8080/callback' as a callback URL for the initial authentication flow.
Get your credentials
Copy the Consumer Key (client_id) and Consumer Secret (client_secret) from your Connected App.
Configure OpenClaw
Add the Salesforce configuration with your instance URL, client ID, and client secret to your OpenClaw config.
Authenticate
Run the authentication flow to obtain and store your access tokens. For SSO environments, this goes through your identity provider.
Test the connection
Ask your assistant 'Show me my recent opportunities' to verify everything is connected.
Configuration Example
salesforce: instanceUrl: \"https://yourcompany.salesforce.com\" clientId: \"your-connected-app-client-id\" clientSecret: \"your-connected-app-secret\" # For sandbox environments: # instanceUrl: \"https://yourcompany--sandbox.sandbox.my.salesforce.com\"
Limitations
- ā ļøAPI access requires Salesforce Enterprise Edition or API add-on
- ā ļøCustom objects and fields need additional configuration
- ā ļøSome complex reports may require Salesforce Reports & Dashboards
Frequently Asked Questions
Do I need Salesforce Enterprise Edition?
API access is included in Enterprise, Unlimited, and Performance editions. Professional Edition requires the API add-on. Developer Edition includes API access for testing.
Does it work with Salesforce SSO?
Yes, OpenClaw supports SAML and OAuth-based SSO. The initial authentication goes through your identity provider (Okta, Azure AD, etc.) and tokens are stored locally.
Can it access custom objects?
Yes, any object accessible through the Salesforce REST API works. Custom objects, custom fields, and custom picklists are all supported.
Is this compliant with our security policies?
OpenClaw runs on infrastructure you control. Salesforce data is accessed via official APIs with your credentials, and nothing passes through third-party services.
Can multiple team members use this?
Each user authenticates with their own Salesforce credentials. Permissions and data access follow your existing Salesforce security model.
Does it work with Salesforce Sandbox?
Yes, point the instanceUrl to your sandbox environment for testing before deploying to production.
š„ Your AI should run your business, not just answer questions.
We'll show you how.Free to join.
Related Integrations
š Learn More
AI Assistant for Sales Professionals
Close more deals, update less CRM
OpenClaw Self-Audit: The Prompt That Checks Your Own Security Setup
Most people set up OpenClaw, lock things down as best they can, and never check again. Meanwhile, configs drift, updates change settings, and new integration...
OpenClaw Installation Guide ā All Platforms (Linux, macOS, Unraid)
Complete installation guide covering gateway setup, Ollama integration, systemd services, and troubleshooting common setup errors like ECONNREFUSED and model loading issues.
How to Connect Gmail to Your AI Assistant (Complete Integration Guide)
Turn Gmail into an AI-powered inbox. Summarize threads, draft replies, auto-categorize messages, and search your email with natural language.
š Your AI should run your business.
Weekly live builds + template vault. We'll show you how to make AI actually work.Free to join.
Join Vibe Combinator ā