We now have a direct Clay integration! We'd recommend you use the direct integration instead of the API for simplicity. Here's the link to the new guide.
Looking to use the Sendspark API to automatically generate & send videos?
In this tutorial, we will walk you through how to do that using Clay for automation and Instantly to send emails.
You should be able to swap out these platforms with other platforms (Make, HighLevel, etc. for automation and Smartlead, Apollo, Outreach, Salesloft, etc. for email sending).
Let us know if you have any questions!
These are the steps:
Let's dive in!
How to Make AI Personalized Videos from Clay
1. Create a list of qualified leads in Clay
The first thing you want to do is create your list of leads in Clay.
You can do this based on any criteria you would like. In this demo, I just made a simple list of contacts in our ideal customer persona.
You can check out this tutorial for how to make a good lead list in Clay:
2. Generate AI-personalized videos in Sendspark
To generate AI videos in Sendspark, first, you want to have created a Dynamic Video campaign:
From Sendspark, go to Dynamic Videos
Click "Create New Campaign"
Follow the steps to customize your campaign
Important notes for AI personalization:
Record your video with the starter phrase, "Hi Watermelon" 🍉
Make sure to toggle voice cloning "on"
Use a better quality mic for better quality AI!
Now, we want to automatically enroll contacts into the campaign using a Clay HTTP API request:
From Clay, click "Add Enrichment"
Select "HTTP API"
Fill out fields with data fields with the data below:
Method:
POST
Endpoint:
Find your workspace ID in your API Credentials
Find your Dynamic Video Campaign ID in the URL of your dynamic video campaign, between the last 2 slashes
Body:
{
"processAndAuthorizeCharge":true,
"prospectDepurationConfig":
{
"forceCreation":true,
"payloadDepurationStrategy":"keep-last-valid"
},
"prospect":{
"contactName":"Bethany",
"contactEmail":"b@sendspark.com",
"company": "Sendspark",
"jobTitle": "CEO",
"backgroundUrl":"https://sendspark.com"
}
}Make sure to replace the prospect fields with your Clay column titles, like so:
Headers
x-api-key
your API key (found in your API Credentials)
x-api-secret
your API secret (also found in your API Credentials)
Altogether, it should looks something like this:
Click "Save and run first 10 rows"
You'll know it works if...
You see "200" in the column in Clay
You see that videos are starting to generate in your Sendspark campaign
If all looks good, you can run for all of the rows that haven't run, or that have errors:
Alright, now the final step! Let's send these videos in Instantly.
3. Share videos in email sequences in Instantly
Before you can start enrolling contacts in your Instantly sequence, you need to add your Sendspark share snippet to the email:
From Sendspark, click "share campaign"
Click on "Instantly" to copy the code snippet to your clipboard
Go to your email in Instantly
Switch into "Code View"
Paste into your email where you want the video to be:
Switch back out of Code View
You should see the Sendspark placeholder in your email now.
And, if you want to preview your video as a contact who's been added to your Sendspark campaign, you can click "Preview" and then use their email in the "email" variable:
Important Note on Sending Video Emails
Use the video email in the SECOND step in your sequence. This helps for 2 reasons:
Gives your video time to generate in Sendspark.
Videos should just take ~1 minute to generate, but if you're uploading a list of contacts, it will take a long time for the last video to generate
Helps deliverability to just have plain text (no images & links) in the first email.
Now, the final step is to add a column in Clay to add your contact to the Instantly email sequence.
From Clay, click "Add Enrichment"
Search for Instantly, and select the "Add Lead to Campaign" option
Select your Campaign ID
Add the contact email, and any other data you want to send to Instantly
You can save and run the workflow. And that's it! 🥳
You've successfully...
Found qualified leads
Generated AI-personalized videos for them
And enrolled them in an email sequence
Congratulations!!!