# Slack

#### Connect Slack → GAN.AI (Trigger Videos From Slack Events)

While Slack is usually used as the notification destination, you can also trigger video creation from Slack using commands or channel activity.

**Step 1 — Create a Zap**

1. Go to Zapier.com
2. Click Create Zap

**Step 2 — Choose Slack as the Trigger**

1. Search Slack
2. Choose a trigger:

* New Message Posted to Channel
* New Mention
* New Reaction Added

3. Connect your Slack workspace
4. Pull sample data

**Step 3 — Add GAN.AI as the Action**

1. Search GAN.AI
2. Choose Generate Personalized Video
3. Select your video personalization project
4. Map Slack message fields to GAN.AI variables:

|   Slack Field   |   GAN.AI Variable   |
| :-------------: | :-----------------: |
|   Message text  |       {{text}}      |
|   Sender name   |       {{name}}      |
| Custom keywords | {{custom\_message}} |

**Step 4 — Turn On Zap**

* GAN.AI will now generate a personalized video whenever the Slack trigger is activated.

**Send GAN.AI Video Notifications Directly Into Slack (Recommended)**

This is the most common integration.

**What This Workflow Does**

Whenever GAN.AI generates a personalized video:

* Zapier sends a notification to Slack
* Includes video link, viewer name, and metadata

Perfect for:

* Sales teams (see when videos are ready)
* Marketing teams (track launches)
* Support teams (notifications for customer responses)

**Step 1 — Create a Zap**

* Go to Zapier → Click Create Zap

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

1. Search GAN.AI
2. Select Video Generated
3. Connect your GAN.AI account
4. Pull a sample generated video to load fields like:

* Viewer name
* Email
* Personalization fields
* Video URL

**Step 3 — Add Slack as the Action**

1. Search Slack
2. Choose one of the following actions:
3. Send Channel Message
4. Send Direct Message
5. Send Private Channel Message

**Step 4 — Map GAN.AI Video Data to Slack Message**

Example Slack message:

<figure><img src="https://257817639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN7z5QEbLCyykfR50Gdpy%2Fuploads%2FoQm9aWaCzi2kskTFlz2U%2Funknown.png?alt=media&#x26;token=fbd57e30-d7dd-4bcb-b028-7f0602dead9c" alt=""><figcaption></figcaption></figure>

Map fields:

|    GAN.AI Output    | Slack Message Field |
| :-----------------: | :-----------------: |
|      Video URL      |     Message Body    |
|         Name        |     Message Body    |
|        Email        |     Message Body    |
| Personalized Fields |     Message Body    |

&#x20;**Step 5 — Turn On Zap**

* Your Slack workspace will now receive real-time notifications each time GAN.AI generates a personalized video.

GAN.AI can be integrated with Slack to either trigger personalized video creation from Slack activity or send video notifications directly into Slack channels. Using Zapier, you can set Slack events—like new messages, mentions, or reactions—as triggers to generate videos in GAN.AI, or configure GAN.AI as the trigger to automatically post generated video links, viewer names, and metadata into Slack. This integration keeps sales, marketing, and support teams informed in real time, streamlining workflows and enhancing team collaboration around personalized video campaigns.
