Overview
The Salesforce Connector automatically syncs your service cases and conversation data from Salesforce Service Cloud to cxconnect.ai.What Data is Synced
The connector will sync the following information from your Salesforce account:- Cases: Service cases including subject, description, status, and priority
- Conversations: Messaging conversation details from Salesforce Messaging
- Messages: Individual messages within each conversation
Prerequisites
Before you begin, make sure you have:- Administrator access to your Salesforce account
- Access to a computer with command-line tools (for generating security keys)
This connector requires some technical setup including creating security keys. If you’re not comfortable with command-line tools, please contact your IT team or reach out to our support team for assistance.
Required Information
You’ll need to provide the following when setting up the connector:| Field | What is it? | Where to find it |
|---|---|---|
| Username | Salesforce integration user email | Your integration user’s email |
| Client ID | Unique identifier from Connected App | Generated in Step 2 below |
| Private Key | Security key file | Generated in Step 1 below |
| Is Sandbox | Whether you’re using a test environment | Select “true” for sandbox, “false” for production |
Setup Instructions
Step 1: Generate Security Keys
You’ll need to create a security key pair. Open a terminal or command prompt and run these commands:Step 2: Create Connected App in Salesforce
- Log in to Salesforce as an administrator
- Go to Setup > App Manager
- Click New Connected App
- Fill in the details:
- App Name:
cxconnect.ai Sync - Contact Email: Your email address
- App Name:
- Under API (Enable OAuth Settings):
- Check Enable OAuth Settings
- Callback URL: Enter
https://login.salesforce.com - Check Use digital signatures and upload the
certificate.crtfile from Step 1 - Select these OAuth scopes:
- Access and manage your data (api)
- Perform requests on your behalf at any time (refresh_token, offline_access)
- Access Connect REST API resources (chatter_api)
- Uncheck Require Secret for Web Server Flow
- Click Save
- Click Continue
- Copy the Consumer Key - this is your Client ID
Step 3: Configure Permissions
- From the Connected App page, click Manage
- Click Edit Policies
- Under OAuth Policies:
- For Permitted Users: Select “Admin approved users are pre-authorized”
- For IP Relaxation: Select “Relax IP restrictions”
- Click Save
- Click Manage Permission Sets
- Assign the permission set to your integration user
Step 4: Set Up Integration User
Make sure your integration user has these permissions:- API Enabled
- View All Data (or specific read access to Cases and Conversations)
- Access to Bulk API
Step 5: Connect in cxconnect.ai Admin Portal
- Log in to the cxconnect.ai Admin Portal
- Go to Sync Connectors > Add Connector
- Select Salesforce
- Enter your information:
- Username: Your integration user email
- Client ID: The Consumer Key from Step 2
- Private Key Path: Path to your
private_key.pemfile - Is Sandbox: Choose
truefor sandbox,falsefor production
- Click Test Connection to make sure everything is set up correctly
- Click Save & Activate to start syncing
Step 6: Monitor Your Sync
The Sync Engine is currently in development and not yet deployed. This documentation is provided in advance of the feature release.
- Initial sync may take some time depending on data volume
- Monitor progress in the Admin Portal dashboard
- Check sync logs for any issues
Troubleshooting
Connection Issues
Problem: Unable to connect or authenticate What to check:- Verify the private key file matches the certificate uploaded to Salesforce
- Make sure the username exactly matches your Salesforce user (case-sensitive)
- Check that the user is pre-authorized in the Connected App
- Confirm the “Is Sandbox” setting matches your Salesforce environment
- Verify the Consumer Key (Client ID) is correct
Permission Errors
Problem: Connection works but can’t access data What to check:- Ensure the integration user has “API Enabled” permission
- Verify the user has read access to Cases and Conversations
- Check that the Connected App is assigned to the user
- Make sure the user has Bulk API access
Missing Data
Problem: Some cases or conversations aren’t syncing What to check:- Verify Salesforce Messaging is enabled if syncing conversations
- Check that the integration user has access to the records
- Ensure records exist in the date range being synced
- Contact support if data consistently appears to be missing
Certificate Mismatch
Problem: Authentication fails with certificate errors What to check:- Confirm the private key file matches the certificate in Salesforce
- Make sure the certificate hasn’t expired
- Verify you’re using the correct private key file
- Try regenerating the key pair and certificate if issues persist
Need Help?
This connector requires technical setup. If you need assistance:- Email Support: [email protected] (we can help walk you through the setup)
- Salesforce Documentation: Salesforce Developer Docs