{"product_id":"build-an-ai-slack-bot-with-google-gemini-in-n8n-webhook","title":"Build an AI Slack Bot with Google Gemini in n8n (Webhook)","description":"\u003ch3\u003eBuild an AI-powered Slack bot with Google Gemini in n8n—using a Webhook + Slash Command\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow example shows you how to create a Slack bot that receives messages from a \u003cstrong\u003eSlack slash command\u003c\/strong\u003e, sends the content to an \u003cstrong\u003eAI Agent powered by Google Gemini\u003c\/strong\u003e, and then posts the processed result back to Slack.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreate a copy\u003c\/strong\u003e of the workflow in n8n to get started quickly.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreate a Slack bot\u003c\/strong\u003e in your Slack workspace.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAdd a Slack slash command\u003c\/strong\u003e (e.g., \u003cem\u003e\/Bob\u003c\/em\u003e) and paste your workflow’s \u003cstrong\u003ewebhook URL\u003c\/strong\u003e into the command.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSend incoming data to the webhook\u003c\/strong\u003e, then pass that data to an \u003cstrong\u003en8n AI Agent\u003c\/strong\u003e for processing based on the queries you configure for the agent.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnable memory from Slack context\u003c\/strong\u003e by setting the \u003cstrong\u003eslack token\u003c\/strong\u003e to the memory node—so the agent can reference prior chat history.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturn a Slack message\u003c\/strong\u003e with the processed output. Because Slack responses must be handled within about \u003cstrong\u003e3000 ms\u003c\/strong\u003e, the workflow creates a new message that references the original input.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnswer questions in Slack\u003c\/strong\u003e using Gemini, triggered instantly via a slash command.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSummarize or rewrite messages\u003c\/strong\u003e while keeping context from previous chats (via memory tied to Slack history).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrototype AI features for your SaaS team\u003c\/strong\u003e—start with a webhook endpoint, then customize the agent’s instructions and outputs.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e integration (slash command + posting results)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e trigger for receiving Slack requests\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e via \u003cem\u003en8nn8n-nodes-langchainlm chat google gemini\u003c\/em\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI Agent\u003c\/strong\u003e using \u003cem\u003en8nn8n-nodes-langchainagent\u003c\/em\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMemory\u003c\/strong\u003e using \u003cem\u003en8nn8n-nodes-langchainmemory buffer window\u003c\/em\u003e\n\u003c\/li\u003e\n  \u003cli\u003eIncludes supporting nodes such as \u003cstrong\u003eSticky Note\u003c\/strong\u003e for workflow clarity\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eImportant:\u003c\/strong\u003e Configure the webhook using a \u003cstrong\u003ehttps:\/\/\u003c\/strong\u003e wrapper. Don’t rely on the default \u003cstrong\u003ehttp:\/\/localhost:5678\u003c\/strong\u003e, since Slack won’t recognize it.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45756678766771,"sku":"N8N-2370","price":46.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/aP8Je8uHW7tbAEsaxk96n_XEclkUuU.png?v=1785748292","url":"https:\/\/buyflowscripts.com\/products\/build-an-ai-slack-bot-with-google-gemini-in-n8n-webhook","provider":"N8N Commerce","version":"1.0","type":"link"}