Lead magnet personalization
This workflow automatically creates personalized lead magnets for each prospect based on their form responses. It captures user information, generates AI-customized content specific to their industry and pain points, populates a Google Docs template, converts it to PDF, and creates a draft email with the personalized document attached.
Who is it for?
This template is perfect for:
- Marketing Agencies
- B2B SaaS Companies
- Consultants and Service Providers
- Anyone offering downloadable guides or resources as lead magnets
What it does
Trigger on Google Form Submission: Watches for new responses from your lead magnet opt-in form capturing prospect details (name, email, company, industry, role, team size, pain points, and current tools).
Log to Google Sheets: Adds the form response data to a tracking spreadsheet for lead management and follow-up.
AI Content Generation: Uses ChatGPT to create personalized content sections based on the prospect's specific industry, role, pain points, and current tools. Generates:
- Customized industry-specific strategies
- Tool-specific implementation steps
- Personalized section titles
Parse AI Response: Extracts the structured JSON output from the AI.
Format Strategies List: Aggregates the AI-generated strategies into a formatted list.
Format Steps List: Aggregates the AI-generated implementation steps into a formatted list.
Create Personalized Document: Generates a customized Google Doc from your template, replacing placeholders with:
Prospect's first name and company name
Industry and team size
AI-generated section titles
Personalized strategies and steps
Export to PDF: Converts the personalized Google Doc to PDF format.
Upload to Drive: Saves the PDF to your specified Google Drive folder.
Create Draft Email: Generates a Gmail draft with the personalized PDF attached, ready for you to review and send.
How to set up
Google Forms Connection:
- Connect your Google account in the trigger module.
- Update the Form ID to match your lead magnet form
Google Sheets Connection:
Connect your Google account in the "Add Row" module.
Update the Spreadsheet ID to your tracking sheet
Ensure your sheet has columns for: First Name, Last Name, Email, Company Name, Industry, Role, Team Size, Pain Points, Current Tools.
OpenAI Connection:
Connect your OpenAI account in the "Create Completion" module.
Google Docs Template:
Connect your Google account in the "Create a Document from Template" module.
Create a master template: Build a Google Docs template with all the static content and text that remains the same for all lead magnet recipients (introduction, sections, formatting, branding, etc.). Add placeholders using double curly braces {{placeholder_name}} in the places where personalized user data should be inserted.
Use these placeholders: {{first_name}}, {{company_name}}, {{industry}}, {{team_size}}, {{section1_title}}, {{section2_title}}, {{aggregated_strategies}}, {{aggregated_steps}}.
Update the Document ID to your template.
Update the Folder ID for where the new documents should be created.
Google Drive Upload:
Update the Folder ID where PDFs should be saved.
Gmail Draft:
Connect your Gmail account.
Customize the email subject and body in the "Create Draft" module.
The attachment automatically pulls from the PDF export.
Form Field Mapping:
Update the form field IDs in both the Google Sheets and OpenAI modules to match your Google Form's question IDs.