> For a complete page index, fetch https://docs.synthflow.ai/llms.txt. For full documentation content, fetch https://docs.synthflow.ai/llms-full.txt.

# Salesforce

> Install the Synthflow Salesforce apps to start calls from Salesforce Flows and use Salesforce in custom actions.

![Synthflow AI integration with Salesforce](https://storage.googleapis.com/granular-changelog/doc-images/salesforce_cover.svg)

Salesforce is a customer relationship management platform where teams manage leads, contacts, accounts, and sales workflows.

With this integration, you can start Synthflow calls from Salesforce Flows and use [custom actions](/about-custom-actions) to call Salesforce APIs from Synthflow agents. If you use custom actions, you can connect both Salesforce Production and Salesforce Sandbox and choose the environment per action.

## Install the Synthflow Salesforce App

> **Tip**
>
> You'll need to have a Synthflow Enterprise plan before you start.

Synthflow has two Salesforce apps, one per feature. Each works on its own, so install the one you need, or both:

| App                    | Use it for                                                                                       | Install                                                                                                                                                                                        |
| ---------------------- | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Synthflow Connect**  | [Custom actions](#use-salesforce-in-custom-actions) that read or update Salesforce during a call | [Production](https://login.salesforce.com/packaging/installPackage.apexp?p0=04td2000000VWJlAAO) or [Sandbox](https://test.salesforce.com/packaging/installPackage.apexp?p0=04td2000000VWJlAAO) |
| **Synthflow call app** | Starting calls from Salesforce Flows with the **Make a Call** action                             | [Synthflow on AppExchange](https://appexchange.salesforce.com/appxListingDetail?listingId=b3c5184b-8f61-48c9-be81-b8672b6bd33e)                                                                |

A Salesforce admin installs each app once per Salesforce org and chooses **Install for All Users**.

![Synthflow app listing on Salesforce AppExchange](https://storage.googleapis.com/granular-changelog/doc-images/salesforce_marketplace.png)

## Use Salesforce in custom actions

[Custom actions](/about-custom-actions) authenticate to Salesforce through the Salesforce app in Synthflow. You can connect both **Salesforce** (Production) and **Salesforce Sandbox** in the same workspace, then choose the connection per action in **Authentication**.

> **Warning**
>
> We changed how Synthflow connects to Salesforce. Reconnect Salesforce in each workspace by November 30, 2026. After that date, Salesforce custom actions in workspaces that haven't reconnected stop working.

Make sure a Salesforce admin has installed **Synthflow Connect** in your Salesforce org, as described in [Install the Synthflow Salesforce App](#install-the-synthflow-salesforce-app).

Open **Settings** → **Workspace Settings** → **Integrations**, open **Salesforce** or **Salesforce Sandbox**, and select **Reconnect**.

Log in with your Salesforce account and select **Allow** when Salesforce asks for access.

If you're creating a new Salesforce custom action, set the endpoint URL and choose the Salesforce connection under **Authentication**.

Existing Salesforce custom actions use the new connection automatically, so you don't need to change them. If you use Salesforce in more than one workspace, repeat steps 2 and 3 in each one.

Keep separate actions per environment, such as `salesforce_prod` and `salesforce_sandbox`, so testing and live traffic stay isolated.

### Salesforce Production

* Use for live workflows and customer-facing automations.
* Point to your Production Salesforce domain.
* Promote only after validation in Sandbox.

### Salesforce Sandbox

* Use for prompt, payload, and field-mapping validation.
* Point to your Sandbox Salesforce domain.
* Validate here before enabling the Production variant.

![Custom action configured for Salesforce Sandbox with GET method, Salesforce Sandbox authentication, and initialized status](https://storage.googleapis.com/granular-changelog/doc-images/salesforce_custom_action_sandbox.png)

## Call app setup

A Salesforce admin connects the Synthflow call app to your workspace once, after installing it:

In Salesforce, open **Setup** → **Named Credentials** and select **Syntflow API Details**.

Under **Custom Headers**, edit **Authorization**. Set its value to `Bearer`, a space, and your Synthflow [API key](/authentication).

Select **Edit**, set **URL** to the address for your workspace's region, and select **Save**:

| Region | URL                                               |
| ------ | ------------------------------------------------- |
| Global | `https://api.synthflow.ai/v2/calls` (the default) |
| US     | `https://api.us.synthflow.ai/v2/calls`            |
| EU     | `https://api.eu.synthflow.ai/v2/calls`            |

A key from a US or EU workspace returns `401 Unauthorized` on the Global URL.

Open **Setup** → **Custom Settings**, select **Manage** next to **SynthFlow Integration**, then select **New**.

Enter the agent ID in **Model Key** and select **Save**. The call app places every call with this agent.

Open **Setup** → **Permission Sets** → **Make Call Sythflow** → **Manage Assignments**. Assign it to every user whose changes trigger the Flow.

## Create a Call Action

This Flow uses the **Make a Call** action from the Synthflow call app. Complete the [call app setup](#call-app-setup) first.

In your Salesforce dashboard, select **Process Automation** > **Flows** on the left-hand sidebar. Click **New Flow** in the top-right corner.

Select **Start from Scratch** and click **Next**. Select **Record-Triggered Flow** and click **Create**.

Select **Contact** under Object and **A record is created** under Trigger the Flow When.

Under Set Entry Conditions, select **All Condition Requirements Are Met (AND)**. Enter this configuration:

<table>
  <tr>
    <th>
      Field
    </th>

    <th>
      Operator
    </th>

    <th>
      Value
    </th>
  </tr>

  <tr>
    <td>
      LeadSource
    </td>

    <td>
      Equals
    </td>

    <td>
      Phone Inquiry
    </td>
  </tr>

  <tr>
    <td>
      LeadSource
    </td>

    <td>
      Is Changed
    </td>

    <td>
      True
    </td>
  </tr>

  <tr>
    <td>
      MobilePhone
    </td>

    <td>
      Is Null
    </td>

    <td>
      False
    </td>
  </tr>
</table>

Close the configuration form (click the cross icon under Activate).

Click the plus icon and select the **Action** element. Select **Apex** > **Make a Call**.

Under Set Input Values for the Selected Action, select these variables:

<table>
  <tr>
    <th>
      Field
    </th>

    <th>
      Value
    </th>
  </tr>

  <tr>
    <td>
      Name of Customer
    </td>

    <td>
      Triggering Contact > Full Name
    </td>
  </tr>

  <tr>
    <td>
      Phone Number
    </td>

    <td>
      Triggering Contact > Mobile Phone 
    </td>
  </tr>

  <tr>
    <td>
      Record ID
    </td>

    <td>
      Triggering Contact > Contact ID 
    </td>
  </tr>
</table>

Close the configuration form (click the cross icon under Activate) and click **Save**. Name your flow and add an API name for it. Click **Save** and **Activate**.

## FAQ

#### Do I need to re-authenticate my Salesforce custom actions?

No. Reconnect Salesforce once in each workspace by November 30, 2026, following the steps in [Use Salesforce in custom actions](#use-salesforce-in-custom-actions). Existing custom actions use the new connection automatically. After that date, Salesforce custom actions in workspaces that haven't reconnected stop working.

#### Can I connect both Salesforce Production and Sandbox in one workspace?

Yes. You can connect both environments in the same workspace and choose the correct connection per [custom action](/about-custom-actions).

#### Do I need separate endpoints for Production and Sandbox?

Yes. Each environment has its own Salesforce domain, so each action should point to the matching endpoint for that environment.

#### When should I use Salesforce Sandbox instead of Production?

Use Sandbox to validate prompts, payloads, and field mappings before enabling the same workflow in Production.

#### Can I trigger Synthflow calls from Salesforce Flows?

Yes. Install the Synthflow call app and complete the [call app setup](#call-app-setup). Then add the **Make a Call** action to a Flow, as in [Create a Call Action](#create-a-call-action).

#### Do I need both Salesforce apps?

No. Synthflow Connect is only for custom actions. The Synthflow call app is only for starting calls from Flows. Install both if you use both features.