Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Lead Generation & Enrichment

Lead Generation & Enrichment

Reply to Inbound Leads with Personalized HeyGen Videos

When a lead submits a form, OpenAI writes a video script, HeyGen creates a personalized selfie-style video and Gmail sends it to the lead.

What it does

🎥 AI-Powered Inbound Video Agent – Auto-Respond to Leads with Personalized Videos Description: This workflow helps you instantly respond to inbound leads with a hyper-personalized video and email—fully automated using n8n, Heygen API, and OpenAI. Watch the step-by-step Tutorial Build here: https://www.youtube.com/@Automatewithmarc When a visitor submits a form on your website, this AI agent dynamically: Creates a video script tailored to the lead's input using an AI prompt agent Generates a video using the Heygen API with a branded avatar Crafts a contextual follow-up email embedding the video Sends it to the lead’s inbox with a call-to-action This is ideal for: Marketing agencies looking to impress new prospects Sales teams aiming to boost inbound conversions Founders and freelancers building trust through instant video touchpoints 📥 How It Works: Form Trigger Captures user inputs like name, email, business URL, and marketing pain points. AI Video Prompt Agent Uses LangChain + OpenAI to write a short, personalized script (e.g., “Hey this is Jason from Purple Unicorn Marketing...”). Video Generation (Heygen API) Triggers a video using a selected avatar and voice style. Video Status & Wait Logic Monitors the video generation status until completed. Get Final Video URL & Thumbnail Retrieves the finished video and prepares for embedding. Email Writer (GPT-4) Generates an HTML-based outreach email including the lead's info and embedded video thumbnail with a booking link. Email Delivery (Gmail Node) Sends the full message to the inbound lead automatically. ⚙️ Tools & Integrations: n8n (self-hosted or cloud) Heygen API – for video generation LangChain + OpenAI GPT-4 – for script writing and email creation Gmail Node – for automated outreach delivery 🔧 Setup Instructions: Heygen API Key Create a Heygen account and retrieve your API key. Set it up as a credential in n8n (httpHeaderAuth). OpenAI Key Add your OpenAI API key under OpenAI credentials. Gmail OAuth2 Connect your Gmail account using OAuth2 for sending emails. Customize the Prompt Modify the system message in the LangChain Agent node to reflect your brand tone or CTA. Calendly Link Update the call-to-action links in both the video prompt and email generator nodes with your real booking URL. 💡 Use Cases: Automating welcome sequences for new signups Personalized video lead responses for agencies AI-driven in

The steps

  1. On form submission
  2. HeyGen Post
  3. Wait
  4. If1
  5. Wait1
  6. Selfie Video Prompt Agent
  7. OpenAI Chat Model1
  8. Get Video
  9. OpenAI
  10. Send Email & Video

Similar automations