{
  "name": "Generate cold emails & sales letters with OpenAI GPT & Google Docs via Chat",
  "nodes": [
    {
      "id": "e3ca2747-0fb3-48e5-8155-28a64df90034",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -180,
        -20
      ]
    },
    {
      "id": "e1b1b753-3c5d-4114-80c6-bdec524b57ba",
      "name": "Copy Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        120,
        -20
      ]
    },
    {
      "id": "7da8a0e8-f23c-4404-b0a8-cfce31ffc83c",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -40,
        220
      ]
    },
    {
      "id": "e213359c-4eea-49b1-91a8-7d456396d601",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        80,
        340
      ]
    },
    {
      "id": "9c1af61f-a0bc-4f0d-9143-a051e1b34c78",
      "name": "Update a document",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        480,
        -20
      ]
    },
    {
      "id": "43e28c30-cb70-4849-afbc-373b32b567f6",
      "name": "Cold Email Writer Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        240,
        360
      ]
    },
    {
      "id": "d5226fca-a257-49f2-b58b-fe61a58b9214",
      "name": "Sales Letter Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        400,
        360
      ]
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Copy Assistant",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Copy Assistant": {
      "main": [
        [
          {
            "node": "Update a document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Copy Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Sales Letter Tool": {
      "ai_tool": [
        [
          {
            "node": "Copy Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Cold Email Writer Tool": {
      "ai_tool": [
        [
          {
            "node": "Copy Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Copy Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}