This workflow corresponds to n8n.io template #7221 — we link there as the canonical source.
This workflow follows the Agent → Form Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "JRk4BidOsJmNYCz3",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "GPT-5 Sales Rep Inbound Lead",
"tags": [],
"nodes": [
{
"id": "5c469742-7089-4322-9d7f-363d89bc8e84",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
-140,
0
],
"parameters": {
"options": {},
"formTitle": "Business Inquiry",
"formFields": {
"values": [
{
"fieldLabel": "First Name",
"requiredField": true
},
{
"fieldLabel": "Last Name",
"requiredField": true
},
{
"fieldLabel": "Business URL",
"requiredField": true
},
{
"fieldType": "email",
"fieldLabel": "Email",
"requiredField": true
},
{
"fieldType": "number",
"fieldLabel": "Phone Number (Optional)"
},
{
"fieldLabel": "How can we help you?"
}
]
},
"formDescription": "Thank you for your inquiry, we'll get back to you soon!"
},
"typeVersion": 2.2
},
{
"id": "530607dd-d303-41a3-94f3-a4c89e4c6a66",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
80,
300
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5",
"cachedResultName": "gpt-5"
},
"options": {}
},
"typeVersion": 1.2
},
{
"id": "648633b1-b8c2-437f-9384-ce9e9e170675",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
260,
300
],
"parameters": {
"sessionKey": "={{ $workflow.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "a4aaf6f0-409a-41e6-94f5-99a69f47f126",
"name": "Tavily",
"type": "@tavily/n8n-nodes-tavily.tavilyTool",
"position": [
400,
300
],
"parameters": {
"query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
"options": {}
},
"typeVersion": 1
},
{
"id": "36bf640f-df08-4abd-b7a1-592ef2fff1d2",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
540,
300
],
"parameters": {
"jsonSchemaExample": "{\n\t\"Subject Line\": \"Hello from Purple Unicorn Marketing\",\n\t\"Body\": \"Hey Jake, this is bob from Purpler Unicorn Marketing. Thank you for your inquiry, booking a meeting with me here: www.calendly.com/book-now\"\n}"
},
"typeVersion": 1.3
},
{
"id": "1c4e1648-934d-49cc-b645-beb11522ddfe",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
760,
0
],
"parameters": {
"sendTo": "={{ $('On form submission').item.json.Email }}",
"message": "={{ $json.output.Body }}",
"options": {},
"subject": "={{ $json.output['Subject Line'] }}",
"emailType": "text"
},
"typeVersion": 2.1
},
{
"id": "6b471a24-6145-47f3-aa19-88aaf1120b63",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
-120
],
"parameters": {
"width": 260,
"height": 640,
"content": "Form Submission Trigger"
},
"typeVersion": 1
},
{
"id": "77a38bef-3f32-48f9-9339-b7071fd1fa03",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
40,
-120
],
"parameters": {
"color": 5,
"width": 640,
"height": 640,
"content": "GPT-5 Inbound Lead Research & Email Writing Agent"
},
"typeVersion": 1
},
{
"id": "972490fa-d89c-448b-bc99-62308159833a",
"name": "GPT-5 Research & Copywriting",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
220,
0
],
"parameters": {
"text": "=First Name: {{ $json['First Name'] }}\nLast Name: {{ $json['Last Name'] }}\nBusiness URL: {{ $json['Business URL'] }}\nEmail: {{ $json.Email }}\nPhone Number: {{ $json['Phone Number (Optional)'] }}\nHow Can We Help:{{ $json['How can we help you?'] }}",
"options": {
"systemMessage": "You are an effective inbound lead email agent. Your role is to research on the lead's business information and lead's problem statement to craft a personalized email to be sent to the leads with the goal of booking a meeting at www.calendly.com/book-now. Use a friendly tone which is welcoming and easy to read, clear call to action. \n\n#Tool\nUse the Tavily tool to carry out online research that will help your email to the lead.\n\n##Output\nOutput the email subject line and body in separated JSON Object forma. \n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2
},
{
"id": "b288c417-12e7-4c66-82c1-5a9bdb5a10b3",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
700,
-120
],
"parameters": {
"color": 4,
"width": 320,
"height": 640,
"content": "Send Email Node"
},
"typeVersion": 1
},
{
"id": "905eaacd-4e12-44c3-81dc-6af2e784dd6a",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-820,
-120
],
"parameters": {
"color": 2,
"width": 560,
"height": 960,
"content": "\ud83d\ude80 GPT-5 AI Lead Research & Auto-Email Agent \u2013 Instant Personalized Follow-Ups for Inbound Leads\n\nDescription:\nTurn every inbound lead into a booked meeting \u2014 automatically.\n\nFor step-by-step guide on how to build workflows like these, watch the free tutorial videos here:\nhttps://www.youtube.com/@Automatewithmarc\n\nThis n8n workflow uses the latest GPT-5 model as your 24/7 \nAI research and email assistant. The moment a prospect submits your lead form, the workflow:\nCaptures lead details (name, business URL, email, and inquiry).\nResearches the lead\u2019s business online using the Tavily AI search tool for relevant context.\nWrites a highly-personalized email with GPT-5, including a compelling subject line, friendly tone, and clear call-to-action to book a meeting.\nSends the email automatically via Gmail \u2014 no manual work required.\nPerfect for startups, agencies, SaaS companies, and B2B sales teams, this template ensures lightning-fast responses and higher conversion rates.\n\nKey Features & Benefits:\n\n\ud83d\udd0d AI-powered research \u2013 pulls real, up-to-date insights on your leads before responding.\n\u270d Natural, persuasive copywriting \u2013 GPT-5 crafts emails that sound human, not robotic.\n\u23f1 Instant follow-ups \u2013 zero delay from form submission to inbox.\n\ud83d\udcc8 Boost booking rates \u2013 every email includes your scheduling link (e.g., Calendly).\n\u2699 No-code automation \u2013 easily customize tone, style, or meeting link.\n\nIdeal Use Cases:\n\nAutomating inbound lead follow-up in marketing agencies.\nPersonalized outreach for B2B SaaS sales teams.\nHigh-touch response for consultants and service providers.\n\nIncluded Integrations:\n\nForm Trigger \u2013 capture lead data.\nTavily Search Tool \u2013 enrich lead profiles with live research.\nGPT-5 Agent \u2013 craft tailored responses with contextual awareness.\n\nGmail \u2013 send professional follow-up emails instantly.\n\ud83d\udca1 Pro Tip: Pair this with your CRM in n8n to log every lead interaction and track conversions end-to-end."
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "6c9196b0-6c64-4c79-a10f-8a63420da7bd",
"connections": {
"Tavily": {
"ai_tool": [
[
{
"node": "GPT-5 Research & Copywriting",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "GPT-5 Research & Copywriting",
"type": "ai_memory",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "GPT-5 Research & Copywriting",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "GPT-5 Research & Copywriting",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "GPT-5 Research & Copywriting",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"GPT-5 Research & Copywriting": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Source: https://n8n.io/workflows/7221/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n workflow automates the entire content creation process for SEO blog posts, from topic submission and AI drafting to human approval, revision, and final storage in Google Docs. It ensures high
Submit a LinkedIn profile URL through a form. The workflow finds their email and company info using Wiza, then researches the prospect and their company with Perplexity AI to uncover recent news, grow
This workflow helps support teams evaluate call quality and deliver structured feedback without manual review. Agents upload their recordings using an n8n Form, and the system handles transcription, s
This workflow streamlines your content organization process by automatically analyzing new blog posts in your GitHub repository and assigning appropriate categories and tags using OpenAI. It compares
This workflow automatically transforms your messy inbox into a neatly organized space while ensuring you never miss a critical message. It connects to your Gmail account and triggers for every new ema