Connecting Salesforce to action builder
Before you can include external actions in your action flows, you must connect the action builder to the external system.
- All external actions performed by an action flow are attributed to the user who connected the external system. Therefore, it is a best practice to use a dedicated service account rather than personal credentials when connecting to each external system.
- All integrations request access to necessary scopes. However, it's important that you review and validate the scopes before authorizing the connection to the external system.
- When managing credentials for API key-based tools, such as OpenAI, it's best to store keys in a secure vault or credential manager.
- In Admin Center, click
Apps and integrations in the sidebar, then select Actions > Action flows. - Create or edit an action flow.
- Open the step sidebar.
- Under External actions, click Salesforce.
- Click Connect.
- Use Salesforce to authenticate the account. Note: All external actions performed by an action flow are attributed to the user who connected the external system. Therefore, it is a best practice to use a dedicated service account rather than personal credentials when connecting to each external system.
After you've connected to the system, you'll see an indicator that it's connected and details about the instance you're connected to, as well as the actions available for Salesforce.
Using Salesforce actions in action flows
The Salesforce action steps can be used to automate many of the actions an agent might take as they work tickets. For example, you can use the Salesforce actions in action flows to automatically create new leads or other Salesforce objects when a user contacts you, automatically add notes to a Salesforce record after a customer interaction, clean up duplicated data, look up Salesforce contact data prior to sending a Slack message or creating a Jira issue, automatically convert highly rated leads identified by AI scoring models, and more.
Creating a record
Use the Create record action to add a new record to object (leads, contacts, accounts, opportunities, cases, and compaigns).
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs |
name, phone,
description
|
| Output | id |
Updating a record
Use the Update record action to change field values for an existing Salesforce record.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs |
name, phone,
description
|
| Output | id |
Deleting a record
Use the Delete record action to remove a lead or case from Salesforce.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | object_id |
| Output | none |
Finding a record
Use the Find record action to search for a record based on identifying information such as an email address or ID.
The inputs and outputs vary by object:
| Variables | |
|---|---|
| Inputs |
|
| Output |
|
Converting a lead to an opportunity
Use the Convert lead to opportunity action to transform a lead record into an opportunity record in Salesforce.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs |
lead_id, account_id
|
| Output | opportunity_id |