The HeyGen API offers tools for generating visual content, such as social media posts, banners, and other graphics programmatically. Integrating this API with Pipedream allows you to automate the creation and distribution of visual assets based on various triggers and data sources. For example, you can generate new images when a new product is added to your inventory, create customized social media posts from RSS feed items, or even automate weekly visual reports.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
heygen: {
type: "app",
app: "heygen",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.heygen.com/v2/avatars`,
headers: {
"X-Api-Key": `${this.heygen.$auth.api_token}`,
},
})
},
})
Automated Social Media Posts: When a new blog post is published, the RSS trigger in Pipedream detects the update and triggers a workflow. The HeyGen API is then used to create a social media graphic with the blog post's title and featured image. The graphic is then posted to various social media platforms via Pipedream's Twitter, LinkedIn, or Facebook integrations.
Dynamic Ad Campaign Generation: Set up a workflow that listens to a Google Sheets update via Pipedream's Google Sheets trigger. Whenever a new product is listed in the sheet, the HeyGen API generates promotional banners with product details. These banners can be directly uploaded to Google Ads or Facebook Ads platforms through their respective Pipedream integrations.
Personalized Email Campaigns: Combine HeyGen with Pipedream's Email trigger to send out personalized email campaigns. The HeyGen API creates custom images with the recipient's name or other personalized details. Pipedream then sends an email using an SMTP service or integrates with SendGrid to distribute the personalized emails to your subscribers’ list.
Emit new event when a specific avatar video event occurs. The user can define a custom set of event(s) to trigger. See the documentation
Emit new event when a Heygen video fails during processing. See the documentation
Emit new event when a new avatar video has been successfully generated. See the documentation
Creates a talking photo from a provided image. See the documentation
Generates a video from a selected template. See the documentation
Fetches a link for a specific heygen video. See the documentation
HeyGen uses API keys for authentication. When you connect your HeyGen account, Pipedream securely stores the keys so you can easily authenticate to HeyGen APIs in both code and no-code steps.