Salesforce Integration
Connect agents to your Salesforce CRM
Prerequisites
You'll need Salesforce admin access to create a Connected App and generate API credentials.
What You Can Do
The Salesforce integration enables your agents to:
- Create and update leads - Automatically capture leads from forms, calls, emails
- Sync contact data - Keep contact information up-to-date across systems
- Manage opportunities - Track deals through your sales pipeline
- Log activities - Record calls, emails, meetings automatically
- Update custom objects - Work with your custom Salesforce schema
- Run reports - Trigger actions based on Salesforce reports
Setup Instructions
Step 1: Create a Connected App in Salesforce
- Log into Salesforce as an administrator
- Go to Setup β App Manager
- Click New Connected App
- Fill in the basic information:
- Connected App Name:
Inteliworks AI Agents - API Name:
Inteliworks_AI_Agents - Contact Email: Your email
- Connected App Name:
- Enable OAuth Settings
- Set Callback URL:
https://app.inteliworks.io/integrations/salesforce/callback - Select OAuth Scopes:
Full access (full)Perform requests at any time (refresh_token, offline_access)
- Click Save
Step 2: Get Your Credentials
- After saving, click Continue
- You'll see your Consumer Key and Consumer Secret
- Copy both values - you'll need them in the next step
Keep Credentials Secure
Never share your Consumer Secret publicly. Store it securely in Inteliworks.
Step 3: Connect in Inteliworks
- Go to Integrations in your Inteliworks dashboard
- Find Salesforce and click Connect
- Enter your Consumer Key and Consumer Secret
- Choose your Salesforce instance:
Production- For live Salesforce orgSandbox- For testing
- Click Authorize
- You'll be redirected to Salesforce to grant permissions
- After authorizing, you'll return to Inteliworks
Common Use Cases
1. Automatic Lead Creation
Create Salesforce leads from web form submissions:
Agent Configuration
Trigger: Webhook (form submission)
Actions:
1. Extract form data (name, email, company, phone)
2. Salesforce: Create Lead
- First Name: {{form.firstName}}
- Last Name: {{form.lastName}}
- Email: {{form.email}}
- Company: {{form.company}}
- Phone: {{form.phone}}
- Lead Source: "Website Form"
- Status: "Open - Not Contacted"
3. Slack: Notify sales channel
Message: "New lead: {{form.firstName}} {{form.lastName}} from {{form.company}}" 2. Opportunity Stage Updates
Automatically update opportunity stages based on customer actions:
Agent Configuration
Trigger: Calendly meeting booked
Actions:
1. Find Salesforce Opportunity by email
2. If found:
- Update Stage: "Demo Scheduled"
- Update Next Step: "Product demo on {{meeting.date}}"
- Add Task: "Prepare demo materials"
3. Else:
- Create new Opportunity
- Stage: "Demo Scheduled"
- Close Date: {{30 days from now}} 3. Activity Logging
Log all customer interactions automatically:
Agent Configuration
Trigger: Gmail - Email received
Actions:
1. Check if sender is in Salesforce
2. If yes:
- Create Activity
- Type: "Email"
- Subject: {{email.subject}}
- Description: {{email.body}}
- Related To: Contact
3. If important keywords detected:
- Add flag for sales rep follow-up Advanced Features
Custom Object Support
Work with custom Salesforce objects:
- Access custom fields on standard objects
- Create/update records in custom objects
- Run queries on custom object data
SOQL Queries
Use Salesforce Object Query Language for complex data retrieval:
SELECT Id, Name, Email, Account.Name
FROM Contact
WHERE Email = '{{trigger.email}}'
AND Account.Type = 'Customer'
LIMIT 1 Bulk Operations
Process multiple records efficiently:
- Batch create up to 200 records at once
- Bulk update based on CSV uploads
- Mass delete with safety checks
Field Mapping
| Inteliworks Field | Salesforce Field | Required |
|---|---|---|
firstName | FirstName | No |
lastName | LastName | β Yes |
email | Email | No |
company | Company (Lead) / Account.Name (Contact) | β Yes (for Leads) |
phone | Phone | No |
Troubleshooting
Error: "Invalid Grant"
Cause: OAuth token expired or revoked
Solution: Reconnect the integration from your Integrations dashboard
Error: "Request Limit Exceeded"
Cause: Hit Salesforce API rate limits (15,000 requests per 24hrs for Enterprise)
Solution::
- Enable request batching in agent settings
- Use bulk operations for multiple records
- Upgrade Salesforce edition for higher limits
Error: "Required Field Missing"
Cause: Salesforce requires fields not provided by agent
Solution::
- Check Salesforce object requirements
- Add default values in agent configuration
- Map additional form fields to required Salesforce fields
Rate Limits & Best Practices
Salesforce API Limits
- Professional: 1,000 API requests per 24 hours
- Enterprise: 15,000 API requests per 24 hours
- Unlimited: 100,000 API requests per 24 hours
Best Practices
- Use bulk operations - Batch multiple records to save API calls
- Cache data locally - Don't query Salesforce for every execution
- Set up monitoring - Track API usage in Salesforce Setup
- Use webhooks - Let Salesforce push updates instead of polling
Need Help with Salesforce?
Our team can help configure complex Salesforce integrations and automations.