AutomationFlowsAI & RAG › Ai-powered Lead Capture & Personalized Onboarding System

Ai-powered Lead Capture & Personalized Onboarding System

AI-Powered Lead Capture & Personalized Onboarding System. Uses agent, lmChatGroq, googleSheets, formTrigger. Event-driven trigger; 5 nodes.

Event trigger★★☆☆☆ complexityAI-powered5 nodesAgentGroq ChatGoogle SheetsForm TriggerGmail
AI & RAG Trigger: Event Nodes: 5 Complexity: ★★☆☆☆ AI nodes: yes Added:

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 →

Download .json
{
  "name": "AI-Powered Lead Capture & Personalized Onboarding System",
  "nodes": [
    {
      "parameters": {
        "promptType": "define",
        "text": "=Name:  {{ $json.Name }}\nEmail: {{ $json.Email }}\nProfession: {{ $json.Profession }}\nLearning Goal: {{ $json['Learning Goal'] }}",
        "options": {
          "systemMessage": "=You are an expert copywriter and student success coordinator for our AI Agents Bootcamp. Your task is to write a highly personalized, motivating welcome email to a new student who has just onboarded.\n\nUse these specific student attributes to customize the email:\n- Name: {{ $json.Name }}\n- Profession: {{ $json.Profession }}\n- Learning Goal: {{ $json['Learning Goal'] }}\n\n## Guidelines:\n1. Tone: Energetic, encouraging, and tech-forward. Treat them like a future AI builder, not just a customer.\n2. Context: Acknowledge that learning to build AI agents is a major competitive advantage for their specific background as a {{ $json.Profession }}. \n3. Personalization: Validate their goal {{ $json['Learning Goal'] }} and explicitly mention how mastering autonomous agents, tools, or frameworks will help them achieve it.\n4. Structure: \n   - Opening: Energetic welcome to the bootcamp.\n   - Body Paragraph: Connect their profession to their specific learning goal in the context of AI agency/automation.\n   - Call to Action: Provide a clear first step (e.g., \"Set up your development environment\" or \"Join the student Discord\").\n   - Sign-off: Hardcode the sign-off exactly as:\n     Best regards,\n     Zakir Ali\n5. Length: Keep it under 130 words\u2014crisp, exciting, and ready to take action."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        192,
        -176
      ],
      "id": "8183aa8e-3f1d-435f-bf2c-721312bd8529",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": "llama-3.1-8b-instant",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        160,
        32
      ],
      "id": "2c1c7f76-254c-42c8-ad4d-84ab5b5e194e",
      "name": "Groq Model",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "YOUR_GOOGLE_SHEET_ID",
          "mode": "list",
          "cachedResultName": "Class 3",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/YOUR_GOOGLE_SHEET_ID/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/YOUR_GOOGLE_SHEET_ID/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Name": "={{ $json.Name }}",
            "Email": "={{ $json.Email }}",
            "Profession": "={{ $json.Profession }}",
            "Learning Goal": "={{ $json['Learning goal / Project idea'] }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Email",
              "displayName": "Email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Profession",
              "displayName": "Profession",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Learning Goal",
              "displayName": "Learning Goal",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -80,
        -176
      ],
      "id": "9e30e6de-ed93-4e23-8eab-ba867c87f74d",
      "name": "Google Sheets Database",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "formTitle": "AI-Agent Bootcamp",
        "formDescription": "Please fill this form to get enrolled in this bootcampt",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Name",
              "requiredField": true
            },
            {
              "fieldLabel": "Email",
              "requiredField": true
            },
            {
              "fieldLabel": "Profession",
              "requiredField": true
            },
            {
              "fieldLabel": "Learning goal / Project idea",
              "requiredField": true
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.6,
      "position": [
        -352,
        -176
      ],
      "id": "7492ea23-a328-4b3a-a769-594e024fc915",
      "name": "Form submission"
    },
    {
      "parameters": {
        "sendTo": "={{ $('Form submission').item.json.Email }}",
        "subject": "Welcome to the AI Agent Bootcamp",
        "emailType": "text",
        "message": "={{ $json.output }}",
        "options": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        496,
        -64
      ],
      "id": "bbf715af-b4ec-4ec1-8fb3-686abf949be4",
      "name": "Send a message",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Groq Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Database": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form submission": {
      "main": [
        [
          {
            "node": "Google Sheets Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate"
  },
  "versionId": "32c59de1-4681-4085-8e5a-8668996e04d8",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "nodeGroups": [],
  "id": "MXUXVaHBqXPSvySu",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

AI-Powered Lead Capture & Personalized Onboarding System. Uses agent, lmChatGroq, googleSheets, formTrigger. Event-driven trigger; 5 nodes.

Source: https://github.com/zakir-maswani/AI-Lead-Capture-Onboarding/blob/main/AI-Powered_Lead_Capture_and_Personalized_Onboarding_System.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This n8n workflow automates your entire B2B outreach pipeline from lead discovery to personalized cold email delivery. Submit a form, let Apollo find and enrich your leads, review AI-generated emails

Output Parser Structured, Agent, Groq Chat +4
AI & RAG

Triggered every 4 hours (or manually) to check all active products in Google Sheets Each product is evaluated for stock level and urgency against its reorder threshold Products with sufficient stock a

Form Trigger, Groq Chat, Gmail +5
AI & RAG

New hire submits an onboarding form with their details Groq AI generates personalised welcome content, Slack messages, and IT access request Welcome email sent to the new hire via Gmail Automated emai

Form Trigger, Groq Chat, Gmail +5
AI & RAG

Onboarding System Automation. Uses formTrigger, agent, lmChatOpenAi, openAi. Event-driven trigger; 9 nodes.

Form Trigger, Agent, OpenAI Chat +3
AI & RAG

Ecommerce Bot v6 — Mode Switch. Uses telegramTrigger, agent, lmChatGroq, telegram. Event-driven trigger; 49 nodes.

Telegram Trigger, Agent, Groq Chat +3