How to set up Video Agent in your Salesforce workflow
Want to reduce the amount of time your team spends on outreach? Use the Video Agent for Salesforce workflow in your Vidyard campaigns to automatically create and send personalized video messages to your contacts when they take certain actions, like booking a demo or filling out a form.
This article will walk you through how to get set up—connecting the integration in Vidyard, creating a Campaign, and configuring your Salesforce workflows to create custom videos. The steps here are an example of how to set up and use Video Agent, but you can further customize your workflow in Salesforce to perfectly fit your needs.
Connect your Salesforce Workflow in Vidyard
The first step to setting up your Salesforce workflow is to connect your Salesforce account to Vidyard.
- Select Admin > API tokens from the main menu, then copy and paste the Admin API token into your notepad
- Navigate to Admin > Integrations, then select Add next to the Salesforce AIA Integration
- Sign in to your Salesforce account, then select Next to continue
- Copy and paste the Salesforce webhook into your notepad, then select Next
- Copy the link in Configure Your AI Video Workflow to the webhook_url field beneath it, then select Finish
Choose a campaign for your workflow
To create AI videos for your viewers, you need to create a campaign in Vidyard that Video Agent can follow. You can use dynamic variables in your script (eg. {{first name}}, etc.) to personalize videos for each viewer.
Once you've created a campaign (or selected an existing one), select that campaign's Workflow tab, and pick the Salesforce platform option from the dropdown menu.
You'll need the values provided on this page for further setup in Salesforce, so copy them into your notepad for future steps.
Create a campaign in Salesforce
The campaign you create in Salesforce will send your email template out to your contacts with a personalized video just for them.
- Login to your Salesforce and navigate to Sales > Campaigns
- Create a new campaign with your preferred settings
- Copy the campaign ID from Vidyard into the Vidyard campaign ID field and select Save to finish
Create a trigger in Salesforce
The trigger you create in Salesforce sends a request to Vidyard to create an AI video for a contact.
- Navigate to Setup > Process Automation > Workflow Actions > Outbound Messages in Salesforce
- Select New Outbound Message, and create a message with the following values (please note that these are case sensitive, and must be entered exactly as shown)
- Object - Campaign Member
- Name - CampaignMemberCreated
- Endpoint URL - The webhook URL you copied from your campaign workflow
- Campaign Member fields to send - CampaignId, ContactID, LeadID, LeadOrContactID
Add custom fields to your Salesforce Contact and Lead records
Vidyard needs a custom field to store a video's unique identifier (UUID) on any contact or lead's record. This value allows Video Agent to associate a video with a viewer, so that they're provided the correct personalized AI video.
- Select Setup > Objects and Fields > Object Manager
- Choose the Contact object from the list, then select Fields & Relationships
- Create a New field, and select Text from the provided list
- Set the Field Label to Vidyard Video UUID (case sensitive) and the maximum value to 22 or more (the normal length of a Vidyard UUID)
- Repeat the process above for the Lead object under Fields & Relationships
Create a Salesforce Flow
Next, you'll build a Salesforce Flow that will start the process of creating a personalized video for your leads.
- Select Setup > Process Automation > Flows and create a New Flow
- Select Record Triggered Flow, and ensure the following fields are entered
- Object - Campaign Member
- Trigger - A record is created
-
Optimize for - Actions and Related Records
- Select + to add a new Element > Action, then choose your Outbound Message Workflow, CampaignMemberCreated
- Label your Action GenerateVidyardVideo (case sensitive), then select Save to finish
Sign up your Contacts or Leads to a campaign
Signing up your contacts or leads to a campaign triggers the creation of a custom, personalized AI video for each person.
Follow Salesforce's steps on adding multiple contacts or leads to a campaign to add people to the campaign you created earlier, and you're all done!