{
  "name": "Generate sales emails based on business events with Explorium MCP & Slack",
  "nodes": [
    {
      "id": "a0b18504-83e1-4b33-b6f7-1051d31a8508",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -832,
        528
      ]
    },
    {
      "id": "1b589c01-3d0a-46ae-9b41-18acb786ae88",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1008,
        512
      ]
    },
    {
      "id": "f0668dc1-e0d7-44af-942c-10b614995635",
      "name": "Company Researcher",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -816,
        352
      ]
    },
    {
      "id": "9cf6886b-95f3-420a-8ff4-0070bf37f4fa",
      "name": "Email Writer ( YES prospect data)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1232,
        384
      ]
    },
    {
      "id": "383f709f-8194-42d8-a700-1b22ca25d3ff",
      "name": "Email Writer (NO prospect data)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -16,
        112
      ]
    },
    {
      "id": "01af666d-4429-4ae4-8de9-f24f707908c4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        176
      ],
      "parameters": {
        "width": 260,
        "height": 144,
        "content": "## Reaserch\nThis agent uses the Explorium MCP to research the company that just had an event"
      }
    },
    {
      "id": "da87fb18-2428-43d3-8a7e-462b8090592e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        192
      ],
      "parameters": {
        "width": null,
        "height": 140,
        "content": "## Crossroads \n\nif we cant find data about the company's employees, we fork up, to write a general email "
      }
    },
    {
      "id": "5cb399a2-9fbb-44bf-b3ec-26747ab98648",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -16
      ],
      "parameters": {
        "width": null,
        "height": 100,
        "content": "## email writer #1\nGiven the research, this agents writes an email"
      }
    },
    {
      "id": "4b29b790-96e5-4b3c-950a-aa08bcd79fe7",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        368
      ],
      "parameters": {
        "width": 256,
        "height": 120,
        "content": "##  Employee Data \nGather data about the 5 employees we will write emails to."
      }
    },
    {
      "id": "ec6813eb-2f0d-492d-a902-aa78e852b6c2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        224
      ],
      "parameters": {
        "width": 256,
        "height": 140,
        "content": "## Email Writer #2\nGiven both data about the email and the employee, the agent will write a highly personalized email to each employee\n"
      }
    },
    {
      "id": "708bccb2-612d-44e6-b249-a003e9d8de95",
      "name": "Webhook - Product Launch",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1040,
        352
      ]
    },
    {
      "id": "44770afa-33c9-4c0f-ac36-00d7d2af4edd",
      "name": "Is there data on the company?",
      "type": "n8n-nodes-base.if",
      "position": [
        -240,
        352
      ]
    },
    {
      "id": "7ad10732-baf1-42ed-95cd-bf391ac6df24",
      "name": "Claude",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -16,
        272
      ]
    },
    {
      "id": "e8fc2008-acd6-416c-90ca-95b6414aaa6f",
      "name": "Code - Format Object",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        512
      ]
    },
    {
      "id": "28004c6b-ffb1-4ec9-8b66-6a88899d80c4",
      "name": "Code - Get prospect_ids",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        512
      ]
    },
    {
      "id": "44290481-02a8-4441-a34e-2a98bbb0790e",
      "name": "Send Slack Message",
      "type": "n8n-nodes-base.slack",
      "position": [
        304,
        112
      ]
    },
    {
      "id": "3a77b8d1-9ff7-455d-89c6-d48945c3a5be",
      "name": "Code - Merge profile with email info",
      "type": "n8n-nodes-base.code",
      "position": [
        784,
        512
      ]
    },
    {
      "id": "4044c1d9-2c45-4587-b92a-59949702a537",
      "name": "Anthropic - Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1232,
        544
      ]
    },
    {
      "id": "52c2e52e-af12-461c-b7b3-d1388217ae45",
      "name": "Send Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1584,
        512
      ]
    },
    {
      "id": "238b04c6-889a-444a-9e54-76b3589595b9",
      "name": "Explorium MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        -672,
        528
      ]
    },
    {
      "id": "480cb222-7d3b-4772-8d16-11aacafae25c",
      "name": "Enrich contact information",
      "type": "@exploriumai/n8n-nodes-explorium-ai.exploriumApiNode",
      "position": [
        560,
        512
      ]
    },
    {
      "id": "3bae4b8a-b0ee-4f03-b066-8c605b450188",
      "name": "Fetch Prospects",
      "type": "@exploriumai/n8n-nodes-explorium-ai.exploriumApiNode",
      "position": [
        -464,
        352
      ]
    }
  ],
  "connections": {
    "Claude": {
      "ai_languageModel": [
        [
          {
            "node": "Email Writer (NO prospect data)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Slack": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Explorium MCP": {
      "ai_tool": [
        [
          {
            "node": "Company Researcher",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Prospects": {
      "main": [
        [
          {
            "node": "Is there data on the company?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Email Writer ( YES prospect data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Researcher": {
      "main": [
        [
          {
            "node": "Fetch Prospects",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Company Researcher",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Code - Format Object": {
      "main": [
        [
          {
            "node": "Code - Get prospect_ids",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic - Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Email Writer ( YES prospect data)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Code - Get prospect_ids": {
      "main": [
        [
          {
            "node": "Enrich contact information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Product Launch": {
      "main": [
        [
          {
            "node": "Company Researcher",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich contact information": {
      "main": [
        [
          {
            "node": "Code - Merge profile with email info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is there data on the company?": {
      "main": [
        [
          {
            "node": "Email Writer (NO prospect data)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code - Format Object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Writer (NO prospect data)": {
      "main": [
        [
          {
            "node": "Send Slack Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Writer ( YES prospect data)": {
      "main": [
        [
          {
            "node": "Send Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code - Merge profile with email info": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}