{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "ebe35d8a-7a78-4a7d-ad60-9f294936266a",
      "name": "Company Researcher",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1696,
        464
      ],
      "parameters": {
        "text": "=Company name: {{ $json.company_name }}\nContact name: {{ $json.contact_name }}\nEmail address: {{ $json.email_address }}\nSpecial Comments from Salesperson: {{ $json.comments }}",
        "options": {
          "maxIterations": 12,
          "systemMessage": "=You are a research analyst helping a sales agent write a highly personalized inbound email. Your job is to generate a detailed research brief that explains:\n\n1. **What the company does**\n2. **What the recent business event is**, and why it's significant\n3. **How Automation might reflect on the company\u2019s priorities, pain points, or growth goals**\n4. Any additional company or contact context that might be useful for crafting a relevant sales message\n\n## Guidelines:\n- Your response should be **detailed, structured, and accurate**\n- You are writing **for another AI**, so don't hold back on context \u2014 more is better\n- You can assume the contact already  know about 82Labs and it's capabilities, and more interested in knowing how to improve his KPIs and company using it's services.\n- Write in **natural language**, using clear, concise, informative sentences \u2014 not marketing fluff or speculation\n- Keep your tone objective and analytical\n- Avoid repeating generic phrases like \u201cthe company is innovative\u201d unless supported by facts\n\n## Inputs:\n- From user prompt\n- From Explorium MCP tools\n\n## Output Structure:\nReturn your findings in 2-3 clear paragraphs. The first paragraph should describe the **main use case to solve in the company in detail** and explain why it may be relevant. The second should summarize what the **company does** and any other useful GTM signals (size, growth stage, recent changes, priorities, etc.).\n\nNow generate the research summary.\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "8db06649-9557-438b-829b-1b40863e7e0e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -1728,
        144
      ],
      "parameters": {
        "width": 480,
        "height": 832,
        "content": "## Reaserch Agent\nThis agent uses the [Explorium MCP](https://www.explorium.ai/mcp) and ChatGPT 4.1 to research the company and the contact"
      },
      "typeVersion": 1
    },
    {
      "id": "b9175f90-d231-46f7-876a-a2628b12169f",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "disabled": true,
      "position": [
        -1520,
        -48
      ],
      "parameters": {
        "options": {},
        "respondWith": "json",
        "responseBody": "={\n  \"challenge\": \"{{ $json.body.challenge }}\"\n}"
      },
      "typeVersion": 1.4
    },
    {
      "id": "3878db05-659f-455d-8d60-a2e15ee32339",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -2224,
        -160
      ],
      "parameters": {
        "color": 5,
        "width": 460,
        "height": 1128,
        "content": "# AI Lead Enrichment for Monday.com with Explorium MCP and GPT-4.1\n\n## Created by: [Elay Guez](https://www.linkedin.com/in/elay-g)\n\n## Overview\nThis workflow automatically enriches company data when new leads are added to Monday.com and drafts personalized inbound emails suggesting AI solutions for every new lead.\n\n## Features\n- \ud83d\udd0d **Company Research**: Uses [Explorium MCP](https://www.explorium.ai/mcp) for deep company intelligence\n- \u2709\ufe0f **Email Generation**: Creates personalized outreach with GPT-4.1\n- \ud83d\udcca **CRM Enrichment**: Adds AI solution recommendations to your Monday.com board\n- \ud83d\ude80 **Fully Automated**: Triggers instantly when new leads arrive\n\n## Quick Setup\n1. **Connect** Monday.com Webhook using the \"Respond to Webhook\" node\n2. **Deactivate** the \"Respond to Webhook\" node after connection\n3. **Update** the context in System Messages for all AI Agents:\n   - Your company name and services\n   - Value proposition\n   - Target market details\n4. **Test** with a sample lead\n5. **Activate** and enjoy automated lead enrichment! \ud83c\udfaf\n\n## Requirements\n- Monday.com board with lead data\n- Explorium MCP API access\n- OpenAI API key (GPT-4.1)\n- Gmail account for drafts"
      },
      "typeVersion": 1
    },
    {
      "id": "33055d00-d826-4f74-8b87-20ebcbf09dfa",
      "name": "ChatGPT 4.1 - 2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1200,
        416
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1",
          "cachedResultName": "gpt-4.1"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3fefcb4b-5003-43ff-8540-6a3955f6e5e4",
      "name": "ChatGPT 4.1 - 1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1696,
        640
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1",
          "cachedResultName": "gpt-4.1"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c5e2c4ab-0662-4be3-91e5-fb070fcef5fe",
      "name": "Think - 2",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        -1008,
        416
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e2ce976b-68e6-46cc-af76-246f42f9ab22",
      "name": "Think - 1",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        -1408,
        640
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "d21d9128-ac3e-46b6-a4b8-e6ee091fcf64",
      "name": "Explorium MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        -1520,
        640
      ],
      "parameters": {
        "sseEndpoint": "https://mcp.explorium.ai/sse",
        "authentication": "headerAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "16d61c90-287c-450e-bf18-b971066c0b14",
      "name": "Email Writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1152,
        240
      ],
      "parameters": {
        "text": "=### Context:\n\n## company data: {{ $('Company Researcher').first().json.output }}\n\n## contact full name: {{ $('Edit Fields').item.json.contact_name }}\n\n## Salesman comments: {{ $('Edit Fields').item.json.comments }}\n",
        "options": {
          "systemMessage": "You are a B2B inbound email assistant.\n\nYour task is to write a short, personalized inbound email for an inbound lead (under 120 words) that sells a solution specificly to the company. This email will be sent to a general marketing, growth, or data contact \u2014 no specific prospect information is available.\n\n## About 82Labs (Use as context \u2014 DO NOT paste directly):\n82 Labs delivers complex fullstack applications for web and mobile, powered by cutting-edge automation technologies including n8n and LangGraph. Official n8n lecturers with enterprise-grade expertise.\n\nIf relevant, you may mention that they can explore our website (https://www.82labs.io).\n\nDont forget to always end with a call to action in setting up some sort of call or meeting to talk further\n\n## Instructions:\n- Reference the event to establish relevance and timing\n- Briefly describe what the company does (from the input)\n- Weave in 82Labs\u2019s value and how it is applicable to their business priorities\n- Suggest two AI Agents/ AI powered solutions based on your knoleadge\n- End with a warm, soft CTA\n- Make it personal, write \"Hi {first name}\" instead of \"Hello Team\". fill in the first name\n- The salesperson name is \"Elay\"\n- Use the thinking tool\n\nNow write the email."
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "bf803704-e01a-4d80-adc5-0f5aefc02a85",
      "name": "Create a draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -848,
        240
      ],
      "parameters": {
        "message": "={{ $json.output.email_content }}",
        "options": {
          "sendTo": "={{ $('Edit Fields').item.json.email_address }}"
        },
        "subject": "={{ $json.output.email_subject }}",
        "resource": "draft"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "166b7f9a-50fb-4a61-80cf-a43e12045d30",
      "name": "Get item",
      "type": "n8n-nodes-base.mondayCom",
      "position": [
        -1328,
        -48
      ],
      "parameters": {
        "limit": 1,
        "boardId": "2034551132",
        "columnId": "name",
        "resource": "boardItem",
        "operation": "getByColumnValue",
        "columnValue": "={{ $json.body.event.pulseName }}"
      },
      "credentials": {
        "mondayComApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f8c9a7d6-bcf2-4344-825f-d909ffef35ae",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -1152,
        -48
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "={\n  \"company_name\": \"{{ $json.name }}\",\n  \"contact_name\": \"{{ $json.column_values[5].text }}\",\n  \"email_address\": \"{{ $json.column_values[6].text }}\",\n  \"comments\": \"{{ $json.column_values[10].text }}\"\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "945c045e-d382-4f24-9fb8-51b3ed7946e7",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1712,
        -48
      ],
      "parameters": {
        "path": "76e1e0a6-495e-4ab6-ba56-b5746cbc4727",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2.1
    },
    {
      "id": "53b36199-631c-4936-8fb1-861af29616bc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -1232,
        144
      ],
      "parameters": {
        "width": 784,
        "height": 400,
        "content": "## Draft Email Agent\nThis agent uses ChatGPT 4.1 to draft a personal inbound email"
      },
      "typeVersion": 1
    },
    {
      "id": "2cd04285-126a-4d86-8286-02d0fe453fd3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -1728,
        -160
      ],
      "parameters": {
        "width": 752,
        "height": 272,
        "content": "## Trigger Workflow and Organize Data\nUsing Monday.com webhook"
      },
      "typeVersion": 1
    },
    {
      "id": "44f650ee-e6c6-4810-a911-ce5c7c039c30",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -1232,
        576
      ],
      "parameters": {
        "width": 784,
        "height": 400,
        "content": "## CRM Enrichment Agent\nThis agent uses ChatGPT 4.1 to enrich Monday.com CRM"
      },
      "typeVersion": 1
    },
    {
      "id": "da610c7d-25f3-4e84-afda-ab2a8343bf13",
      "name": "ChatGPT 4.1 - 3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1200,
        848
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1",
          "cachedResultName": "gpt-4.1"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "fffff053-8555-4842-b113-3476fb3526a0",
      "name": "CRM Enrichment",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1152,
        672
      ],
      "parameters": {
        "text": "=### Context:\n\n## company data: {{ $('Company Researcher').first().json.output }}\n\n## contact full name: {{ $('Edit Fields').item.json.contact_name }}\n\n## Salesman comments: {{ $('Edit Fields').item.json.comments }}\n",
        "options": {
          "systemMessage": "You are a B2B professional assistant.\n\nYour task is to write a short, two sentences summary on the company and cotact, with options on how 82 labs can help him)\n\n## About 82Labs (Use as context):\n82 Labs delivers complex fullstack applications for web and mobile, powered by cutting-edge automation technologies including n8n and LangGraph. Official n8n lecturers with enterprise-grade expertise.\n\n## Instructions:\n- Briefly describe what the company does (from the input)\n- Suggest two AI Agents/ AI powered solutions based on your knoleadge\n- Use the thinking tool\n\nNow write the CRM Enrichement summary"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "052fdb19-edbb-42b4-9a54-f3c5ddb3cd76",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -912,
        -48
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7ef3b8a7-8b2e-4816-9533-46e85edb9c5c",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -960,
        -160
      ],
      "parameters": {
        "width": 512,
        "height": 272,
        "content": "## Error Trigger\nSend an email to Admin"
      },
      "typeVersion": 1
    },
    {
      "id": "5cc6ad2a-4850-4b38-a109-02bc0b72558e",
      "name": "Think - 3",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        -1008,
        848
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "d8469273-1088-4574-b2ec-20538c09f415",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -688,
        -48
      ],
      "parameters": {
        "sendTo": "user@example.com",
        "message": "={{ $json.output.email_content }}",
        "options": {},
        "subject": "=Error in the work"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "6332c3bb-5f42-42c3-9b76-713d01f75797",
      "name": "Add an update to an item - 1",
      "type": "n8n-nodes-base.mondayCom",
      "position": [
        -688,
        240
      ],
      "parameters": {
        "value": "=\"\nDraft email from AI Agent was generated!\n\"",
        "itemId": "={{ $('Get item').item.json.id }}",
        "resource": "boardItem",
        "operation": "addUpdate"
      },
      "credentials": {
        "mondayComApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "86610186-1990-4a5a-8015-df7106a11217",
      "name": "Add an update to an item - 2",
      "type": "n8n-nodes-base.mondayCom",
      "position": [
        -688,
        672
      ],
      "parameters": {
        "value": "=\"\nAI Agent Data Enrichement:\n\n{{ $json.output.crm_summary }}\n\n\n\"",
        "itemId": "={{ $('Get item').item.json.id }}",
        "resource": "boardItem",
        "operation": "addUpdate"
      },
      "credentials": {
        "mondayComApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d8fb3e8b-d8c9-45b1-b144-92662674853a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1712,
        800
      ],
      "parameters": {
        "color": 3,
        "width": 448,
        "content": "## Note: Please update the context in the System Messages for all of the Agents"
      },
      "typeVersion": 1
    },
    {
      "id": "961d277e-3b51-456d-9c88-5582566c74a3",
      "name": "Structured Output Parser - 2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -880,
        416
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"email_subject\": \"\",\n\t\"email_content\": \"\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "3f4306ac-891a-4ae0-80e9-2dd1f033de46",
      "name": "Structured Output Parser - 3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -864,
        848
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"crm_summary\": \"\"\n}"
      },
      "typeVersion": 1.3
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get item": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think - 1": {
      "ai_tool": [
        [
          {
            "node": "Company Researcher",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Think - 2": {
      "ai_tool": [
        [
          {
            "node": "Email Writer",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Think - 3": {
      "ai_tool": [
        [
          {
            "node": "CRM Enrichment",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Company Researcher",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Writer": {
      "main": [
        [
          {
            "node": "Create a draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Explorium MCP": {
      "ai_tool": [
        [
          {
            "node": "Company Researcher",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "CRM Enrichment": {
      "main": [
        [
          {
            "node": "Add an update to an item - 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a draft": {
      "main": [
        [
          {
            "node": "Add an update to an item - 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT 4.1 - 1": {
      "ai_languageModel": [
        [
          {
            "node": "Company Researcher",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT 4.1 - 2": {
      "ai_languageModel": [
        [
          {
            "node": "Email Writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT 4.1 - 3": {
      "ai_languageModel": [
        [
          {
            "node": "CRM Enrichment",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Company Researcher": {
      "main": [
        [
          {
            "node": "Email Writer",
            "type": "main",
            "index": 0
          },
          {
            "node": "CRM Enrichment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook": {
      "main": [
        [
          {
            "node": "Get item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add an update to an item - 2": {
      "main": [
        []
      ]
    },
    "Structured Output Parser - 2": {
      "ai_outputParser": [
        [
          {
            "node": "Email Writer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser - 3": {
      "ai_outputParser": [
        [
          {
            "node": "CRM Enrichment",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}