{
  "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": []
}