# SalesForce

#### Connect Salesforce → GAN.AI (Generate Personalized Videos)

**STEP 1 — Create a Zap**

1. Open <https://zapier.com>
2. Click Create Zap

**STEP 2 — Choose Salesforce as the Trigger**

1. Search for Salesforce
2. Select a trigger, such as:

* New Lead
* New Contact
* Updated Record
* New Opportunity
* Stage Change

3. Connect your Salesforce account
4. Pull sample data

**STEP 3 — Add GAN.AI as the Action App**

1. Choose GAN.AI
2. Select action: Generate Personalized Video
3. Choose your personalized video project

**STEP 4 — Map Salesforce Fields to GAN.AI Variables**

Example mapping:

| Salesforce Field |   GAN.AI Variable   |
| :--------------: | :-----------------: |
|    First Name    |       {{name}}      |
|      Company     |     {{company}}     |
|       Email      |      {{email}}      |
|   Account Owner  |    {{rep\_name}}    |
|    Lead Status   |      {{status}}     |
|   Custom Field   | {{custom\_message}} |

4. Test the step to confirm GAN.AI is generating correctly
5. Turn the Zap ON

**Result:**

Every time a Salesforce record is created or updated → GAN.AI instantly generates a personalized video.

#### Send GAN.AI Video Copies Back to Salesforce Using Zapier

**PREPARATION**

* Create a custom field in Salesforce:
* Field Name: Personalized Video Link
* Type: URL or Text

**(Add this field to the Lead/Contact layout so reps can see it.)**

**STEP 1 — Create a New Zap**

1. Go to Zapier
2. Click Create Zap

**STEP 2 — Choose GAN.AI as the Trigger**

1. Search GAN.AI
2. Choose Video Generated
3. Connect your GAN.AI account
4. Pull a sample to get:

* Video URL
* Email / variable data

**STEP 3 — Use Salesforce as the Action**

1. Search Salesforce
2. Choose Update Record OR Find & Update Record
3. Select object type:

* Lead
* Contact
* Opportunity
* Account

**STEP 4 — Map GAN.AI Data Back to Salesforce**

| GAN.AI Value |            Salesforce Field            |
| :----------: | :------------------------------------: |
|     Email    |           Lead/Contact Email           |
|   Video URL  | Personalized Video Link (Custom Field) |

**Tip: Use "Find Record by Email" to ensure the correct record is updated.**

**STEP 5 — Turn Your Zap ON**

* Salesforce will now receive video links automatically.

By connecting Gan.AI with Salesforce, you create a seamless automation loop—Salesforce triggers personalized video creation, and Gan.AI delivers the links back into your CRM instantly. This powerful workflow helps your team scale personalization, improve response rates, and enhance every touchpoint with minimal effort.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.gan.ai/integrations-and-automation/available-integrations/salesforce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
