Generate complete lead magnets with OpenAI, Claude, and Google Docs automation
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs when someone submits an n8n form (“Lead Magnet Generator”). Along the way it connects OpenAI, Google Docs and Gmail. It also calls googleapis.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Lead Magnet Generator”).
- Title And Outline Generator (OpenAI): uses OpenAI
- Split Out: splits a list into separate items
- Create Sections (OpenAI): uses OpenAI
- Aggregate: combines items into one
- Markdown Generator (OpenAI): uses OpenAI
- Markdown: converts between Markdown and HTML
- set_fields (Edit Fields (Set)): sets 3 fields: document_name, html_content, drive_folder_id
- Prepare_Request (Code): runs custom JavaScript code
- CreateGoogleDoc (HTTP Request): calls googleapis.com (POST)
- Send a message (Gmail): uses Gmail
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - OpenAI
@n8n/n8n-nodes-langchain.openAi - Split Out
n8n-nodes-base.splitOut - Aggregate
n8n-nodes-base.aggregate - Google Docs
n8n-nodes-base.googleDocs - Markdown
n8n-nodes-base.markdown - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail
From the author
In this tutorial, I’ll walk you through a step-by-step N8N workflow that combines the power of OpenAI and Claude AI to generate professional, ready-to-use lead magnet plans for any niche. This workflow helps marketers, agencies, and freelancers create…