{
  "id": "7MQLIwQsFOmnQV4n",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Slack - Let AI Do Your Job",
  "tags": [],
  "nodes": [
    {
      "id": "c724b8ae-462f-4bb5-8e23-09dfe66e783b",
      "name": "Slack Trigger",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        -96,
        0
      ],
      "parameters": {
        "options": {
          "userIds": "==[\"User_ID\"]"
        },
        "trigger": [
          "any_event",
          "app_mention"
        ],
        "watchWorkspace": true
      },
      "typeVersion": 1
    },
    {
      "id": "a15d59e3-4ada-418b-9cde-7dc8f713ecc9",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        112,
        208
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5",
          "cachedResultName": "gpt-5"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "0d87970d-9887-4ec4-ab10-3564310919cc",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        304,
        208
      ],
      "parameters": {
        "sessionKey": "={{ $json.channel }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "5ed06900-d13c-44f6-b763-5d9cd176db01",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        0
      ],
      "parameters": {
        "text": "={{ $json.output }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Slack Trigger').item.json.channel }}"
        },
        "otherOptions": {
          "sendAsUser": "Jacob",
          "includeLinkToWorkflow": false
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "ff806d9b-f9bf-4071-aebc-be85b6bcf2d4",
      "name": "Get a document in Google Docs",
      "type": "n8n-nodes-base.googleDocsTool",
      "position": [
        480,
        208
      ],
      "parameters": {
        "operation": "get",
        "documentURL": "GOOGLE DOC ID OR URL"
      },
      "typeVersion": 2
    },
    {
      "id": "9cce7ec0-c157-47a9-81df-0ebc08114287",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        -160
      ],
      "parameters": {
        "color": 3,
        "width": 304,
        "height": 624,
        "content": "Slack Respond as a User"
      },
      "typeVersion": 1
    },
    {
      "id": "bd66fe12-5532-4183-b641-71f6cadcc204",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        -160
      ],
      "parameters": {
        "color": 4,
        "width": 544,
        "height": 624,
        "content": "GPT-5 Agent"
      },
      "typeVersion": 1
    },
    {
      "id": "cdd11d82-b9bf-435e-8bb1-208737b8c74b",
      "name": "GPT 5 Slack Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        224,
        0
      ],
      "parameters": {
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "You are Jacob, a social media manager at Purple Unicorn Marketing Agency. Respond to your members' message on Jacob's behalf on Slack. Sound friendly and natural in a typical tech working environment. \n\n##Tool\nUse the Google Doc Tool when asked about Project Updates"
        },
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "faa86c34-10a7-47bd-b258-250e24bb6b9a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        -160
      ],
      "parameters": {
        "color": 5,
        "height": 624,
        "content": "Slack Trigger"
      },
      "typeVersion": 1
    },
    {
      "id": "44ae482d-d65a-4f05-be10-9948733394b8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1024,
        -160
      ],
      "parameters": {
        "width": 768,
        "height": 1008,
        "content": "\ud83d\udcac GPT-5 Slack Impersonation Agent with RAG \u2013 Auto-Respond to Messages Using Live Project Docs\n\nLet AI handle your Slack conversations \u2014 and always have the right answer.\nThis n8n workflow transforms GPT-5 into your on-brand Slack assistant, capable of responding as you in real-time while referencing a Google Docs RAG (Retrieval-Augmented Generation) document for accurate project updates.\n\nWatch step-by-step build like these on:\nhttps://www.youtube.com/@automatewithmarc\n\nHere\u2019s how it works:\n\nListens for Slack mentions or messages \u2014 triggered instantly when someone talks to you.\n\nUnderstands the conversation context using GPT-5 and conversation memory.\n\nRetrieves the latest project updates from your linked Google Doc via RAG.\n\nResponds in Slack as you \u2014 maintaining your tone, style, and workplace personality.\n\nKey Features & Benefits:\n\n\ud83e\udde0 RAG-powered accuracy \u2013 Always pulls the latest info from your project docs.\n\n\ud83e\udd16 GPT-5 natural conversation \u2013 Replies feel human, friendly, and context-aware.\n\n\u26a1 Instant responses \u2013 No more message backlog or missed updates.\n\n\ud83c\udfaf Impersonation mode \u2013 Sends replies under your Slack name for seamless collaboration.\n\n\ud83d\udd04 Continuous conversation memory \u2013 Keeps track of what was said before.\n\nIdeal Use Cases:\n\nActing as a stand-in during busy periods so no message goes unanswered.\n\nProject managers who want instant, document-backed answers.\n\nCustomer support or client-facing roles needing quick, accurate replies.\n\nIncluded Integrations:\n\nSlack Trigger & Send Message \u2013 Listen and reply in real-time.\n\nGPT-5 Agent \u2013 Craft context-aware, on-brand responses.\n\nGoogle Docs Tool \u2013 Pull live data from your RAG document.\n\nConversation Memory \u2013 Maintain context across messages.\n\n\ud83d\udca1 Pro Tip: Customize the system prompt to mimic your exact tone and integrate with multiple docs for broader knowledge coverage."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e58b3b27-0453-409e-91ce-61639cb188a7",
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "GPT 5 Slack Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Slack Trigger": {
      "main": [
        [
          {
            "node": "GPT 5 Slack Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT 5 Slack Agent": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "GPT 5 Slack Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get a document in Google Docs": {
      "ai_tool": [
        [
          {
            "node": "GPT 5 Slack Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}