{
  "name": "Generate personalized HubSpot campaign emails with Groq AI and Gmail",
  "nodes": [
    {
      "id": "380fa486-1998-4141-a15e-dd4bb35a7873",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        4384,
        1360
      ]
    },
    {
      "id": "e43a8c91-c360-4302-84cf-33fa46e28ef8",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5104,
        1152
      ]
    },
    {
      "id": "1ae8a25d-15e1-4875-9c1c-b543877ceca1",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        5120,
        1360
      ]
    },
    {
      "id": "ad7184ac-fcf0-46f1-88cb-d4c35e1ff989",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        5616,
        1440
      ]
    },
    {
      "id": "79ac6576-dc25-4a59-965e-582ce8e26dc7",
      "name": "Loop Over Contacts",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        4864,
        1360
      ]
    },
    {
      "id": "846e91dc-8fbc-4fa8-9e35-35d084d9a873",
      "name": "Format AI's output",
      "type": "n8n-nodes-base.code",
      "position": [
        5424,
        1152
      ]
    },
    {
      "id": "dad86144-67bf-4d18-a3f5-f69b1273846f",
      "name": "Search contacts",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        4608,
        1360
      ]
    },
    {
      "id": "090b1870-69ec-4e20-9e04-c49ab9a9c8be",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3648,
        848
      ],
      "parameters": {
        "width": 608,
        "height": 800,
        "content": "# Hyper-Personalized Ad Campaign Generator\n\nThis workflow automatically generates AI-powered advertising campaign strategies for newly created CRM contacts and sends them via email.\n\n## How it works\nT"
      }
    },
    {
      "id": "344b7f8c-5fa1-4610-a63d-0865c84ab0f4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4288,
        848
      ],
      "parameters": {
        "width": 464,
        "height": 800,
        "content": "## Fetch New Contacts\n\nRuns on schedule and retrieves contacts created in the last 24 hours from HubSpot."
      }
    },
    {
      "id": "620a9e05-9a1b-4a7d-b97e-37d41ca7670d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4784,
        848
      ],
      "parameters": {
        "width": 1024,
        "height": 800,
        "content": "## Generate Campaign & Send Email\n\nAI creates campaign strategy → format output → send personalized email."
      }
    }
  ],
  "connections": {
    "Send a message": {
      "main": [
        [
          {
            "node": "Loop Over Contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search contacts": {
      "main": [
        [
          {
            "node": "Loop Over Contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Search contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format AI's output": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}