How to make a Slack bot: Python vs low-code
Learn how to make a custom Slack bot with two approaches: using Python and n8n, a low-code workflow automation tool!
Save yourself the work of writing custom integrations for Google Drive and Slack and use n8n instead. Build adaptable and scalable Data & Storage, Communication, and HITL workflows that work with your technology stack. All within a building experience you will love.
In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.
You can find Google Drive and Slack in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Google Drive and Slack nodes one by one: input data on the left, parameters in the middle, and output data on the right.
A connection establishes a link between Google Drive and Slack (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.
Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Google Drive and Slack with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.
Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Google Drive to Slack or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.
Imagine having an AI chatbot on Slack that seamlessly integrates with your company’s workflow, automating repetitive requests. No more digging through emails or documents to find answers about IT requests, company policies, or vacation days—just ask the bot, and it will instantly provide the right information.
With its 24/7 availability, the chatbot ensures that team members get immediate support without waiting for a colleague to be online, making assistance faster and more efficient.
Moreover, this AI-powered bot serves as a central hub for internal communication, allowing everyone to quickly access procedures, documents, and company knowledge without searching manually. A simple Slack message is all it takes to get the information you need, enhancing productivity and collaboration across teams.
How It Works
Slack Trigger: The workflow starts when a user mentions the AI bot in a Slack channel. The trigger captures the message and forwards it to the AI Agent.
AI Agent Processing:
The AI Agent, powered by Anthropic's Claude 3.7 Sonnet model, processes the query.
It uses Retrieval-Augmented Generation (RAG) to fetch relevant information from the company’s internal knowledge base stored in Qdrant (a vector database).
A Simple Memory buffer retains recent conversation context (last 10 messages) for continuity.
Knowledge Retrieval:
The RAG tool searches Qdrant’s vector store using OpenAI embeddings to find the most relevant document chunks (top 10 matches).
Response Generation:
The AI synthesizes the retrieved data into a concise, structured response (1-2 sentences for the answer, 2-3 supporting details, and a source citation).
The response is formatted in Slack-friendly markdown (bullet points, blockquotes) and sent back to the user.
Set Up Steps
Prepare Qdrant Vector Database:
Create a Qdrant collection via HTTP request (Create collection node).
Optionally, refresh/clear the collection (Refresh collection node) before adding new documents.
Load Company Documents:
Fetch files from a Google Drive folder (Get folder → Download Files).
Process documents: Split text into chunks (Token Splitter) and generate embeddings (Embeddings OpenAI2).
Store embeddings in Qdrant (Qdrant Vector Store1).
Configure Slack Bot:
Create a Slack bot via Slack API with required permissions
Add the bot to the desired Slack channel and note the channelId for the workflow.
Deploy AI Components:
Connect the AI Agent to Anthropic’s model, RAG tool, and memory buffer.
Ensure OpenAI embeddings are configured for both RAG and document processing.
Test & Activate:
Use the manual trigger (When clicking ‘Test workflow’) to validate document ingestion.
Activate the workflow to enable real-time Slack interactions.
Need help customizing?
Contact me for consulting and support or add me on Linkedin.
Nodes used in this workflow
Create custom Google Drive and Slack workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Learn how to make a custom Slack bot with two approaches: using Python and n8n, a low-code workflow automation tool!

Use n8n to set up automated email reminders, weekly messages, tasks, or even document updates from Google Sheets.
Yes, Google Drive can connect with Slack using n8n.io. With n8n, you can create workflows that automate tasks and transfer data between Google Drive and Slack. Configure nodes for Google Drive and Slack in the n8n interface, specifying actions and triggers to set up their connection.
Yes, with n8n, you can programmatically interact with Google Drive’s API via pre-defined supported actions or raw HTTP requests. With the HTTP Request node, you create a REST API call. You need to understand basic API terminology and concepts.
Yes, with n8n, you can programmatically interact with Slack’s API via pre-defined supported actions or raw HTTP requests. With the HTTP Request node, you create a REST API call. You need to understand basic API terminology and concepts.
Yes, it is safe to use n8n to integrate Google Drive and Slack. n8n offers various features to ensure the safe handling of your data. These include encrypted data transfers, secure credential storage, RBAC functionality, and compliance with industry-standard security practices (SOC2 compliant). For hosted plans, data is stored within the EU on servers located in Frankfurt, Germany. You can also host it on your own infrastructure for added control.
Learn more about n8n’s security practices here.
To start integrating Google Drive and Slack in n8n, you have different options depending on how you intend to use it:
Unlike other platforms that charge per operation, step, or task, n8n charges only for full workflow executions. This approach guarantees predictable costs and scalability, no matter the complexity or volume of your workflows.





Looking to integrate Google Drive and Slack in your company?
Build complex workflows, really fast
Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.
Your data is displayed alongside your settings, making edge cases easy to track down.
Use 1000+ workflow templates available from our core team and our community.
Copy and paste, easily import and export workflows.
Report a vulnerability
© 2025 n8n | All rights reserved.

