Salesforce
Connect Salesforce to keep one record per caller, log every call with its summary, and read or update records from your workflows.
Connect your Salesforce once, then use it in two places:
- After every call: your agent finds the caller's record by phone number, updates it or creates it, and can log the call and add the summary as a note.
- In workflows: the Salesforce step gets, creates and updates records of any object, custom objects included, and adds follow-up tasks, logged calls and notes.
Connect Salesforce
Open the integrations page
Go to Integrations in your dashboard, open the All Integrations tab, and click Connect on the Salesforce card. You can also connect from a workflow's Salesforce step with the + button.

Name it and pick your Salesforce
Give the connection a name you'll recognize when you pick it in a workflow.
Under Which Salesforce, choose Production for your live org. Choose
Sandbox only for a test org you log in to at test.salesforce.com.

Sign in with Salesforce
Click Sign in with Salesforce. A Salesforce window opens: log in and click Allow. The window closes and the connection appears in your list.
Your password never reaches OmniDimension, and the connection stays signed in on its own. You don't need a security token or a Connected App of your own.
If the connection stops working
A broken connection shows Needs reconnect in your integrations list, and any workflow step that uses it shows a Reconnect button. Sign in again: the connection keeps its id, so your workflows and agents keep working without any changes.
Common causes: the user's password was reset or the user was deactivated, an admin revoked the access under Setup → Connected Apps OAuth Usage, or your org restricts which IP addresses users can log in from.
Username and password (older orgs)
Sign-in is the recommended way. Use this only if your Salesforce admin can't allow the sign-in window.
Click Use username and password instead, then enter your instance URL
(for example, https://yourcompany.my.salesforce.com), username, password
followed by your security token, and the client ID and secret of a Connected
App in your org.

Send call data after every call
Add the post-call action
Open your agent, go to the Post-Call section, pick Salesforce under Delivery Method, and choose your connection.

Choose the object
Pick Lead, Contact, Account, Opportunity, Case, Task or Product. The agent fills that object's standard fields from the conversation, for example first name, last name, company, email and phone for a Lead.
Choose what happens after each call
- Find the record by the caller's number, then update it or create it (recommended): a repeat caller keeps one record. Several records with that number means nothing is written, so you never update the wrong one.
- Create a new record every call: a duplicate each time the same person calls.
With the first option, Phone field to match is the phone field the caller's
number is looked up in (Phone by default; MobilePhone or a custom phone
field works too). Any saved format matches: +14155552671 finds
(415) 555-2671.
Add the call to the record
- Log the call on the record (with the summary and recording link) adds a completed call to the record's activity history.
- Add the call summary as a note adds the summary as a note on the record.
Save and publish the agent. Real calls use the published version.
A web call has no caller number, so test find-by-number with a phone call.
For anything more, such as custom objects, your own field mapping, follow-up tasks for your team, or alerts when Salesforce refuses a write, run a workflow after the call instead.
Set it up over the API
You connect Salesforce once, in the dashboard. From then on, your code can add
it to any agent with the connection's integration_id.
Find the connection's id
API reference: List integrations
curl "https://omnidim.io/api/v1/integrations" \
-H "Authorization: Bearer YOUR_API_KEY"Pick the entry whose integration_type is salesforce and note its id.
Keep it: the same id works for every agent.
Add Salesforce to an agent
API reference: Add a post-call action
curl -X POST "https://omnidim.io/api/v1/agents/158910/post-call-actions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "salesforce",
"integration_id": 817,
"object_name": "Lead",
"action": "upsert",
"match_field": "Phone",
"log_call": true,
"add_note": true
}'| Key | Value |
|---|---|
object_name | Lead (default), Contact, Account, Opportunity, Case, Task or Product. |
action | upsert finds the record by the caller's number and updates it or creates it. create (default) creates a new record every call. |
match_field | upsert only: the phone field to look the number up in. Defaults to Phone. |
log_call | true logs the call on the record, with the summary and recording link. Defaults to false. |
add_note | true adds the call summary as a note on the record. Defaults to false. |
Salesforce gets a fixed set of fields for the object, so this action takes no
extracted_variables. The agent's other post-call actions are not touched.
Repeat for other agents
Send the same request with another agent's id. You don't connect Salesforce again.
For changing and removing actions, see Post-call actions over the API.
Tips
- Use a dedicated Salesforce integration user, with access to only the objects and fields your agent needs.
- Prefer find-by-number over a new record every call, so repeat callers don't pile up as duplicates.
- Try workflows on a sandbox or on test records first: Salesforce steps write for real, in test runs too.
Was this page helpful?
