Block 1 - Is user message?
- Type / Role
- n8n-nodes-base.if - if
- Config choices
- Version 2.2
This workflow is provided as-is. Please review and test before using in production.
Code of Conduct Q&A Slack Chatbot with RAG Powered [ ](https://www.y...
n8n-nodes-base.if, n8n-nodes-base.noop, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.slack, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.vectorstoreinmemory
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.
Original n8n.io source> Empower employees to instantly access and understand the companyβs Code of Conduct via a Slack chatbot, powered by Retrieval-Augmented Generation (RAG) and LLMs.
This workflow is designed for:
This RAG-powered Slack chatbot answers user questions based on your uploaded Code of Conduct PDF using GPT-4 and embedded document chunks. Here's the flow:
Query Data Tool to retrieve relevant document chunks.Prepare your environment:
Upload the Code of Conduct PDF:
Deploy the chatbot:
@CodeBot Can I accept gifts from partners?)Monitor and iterate:
chat:write, users:read, commands)| What to Customize | How to Do It |
|---|---|
| π€ Prompt style | Edit the System & User prompts inside the Code Of Conduct Agent node |
| π Document types | Upload additional policy PDFs and tag them differently in metadata |
| π€ Agent behavior | Tune GPT temperature or replace with different LLM |
| π¬ Slack interaction | Customize message formats or trigger phrases |
| π Data Store engine | Swap to Pinecone, Weaviate, Supabase, etc. depending on use case |
| π Multilingual support | Preprocess text and support locale detection via Slack metadata |
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Answer code of conduct questions in Slack with GPT-4 & RAG technology |
|---|---|
| Complexity | advanced |
| Nodes | 24 |
| Categories | AI RAG, Multimodal AI |
| Author | Trung Tran |
| Published | 22 Aug 2025 |
Use the JSON export at /data/workflows/7722/7722.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Code of Conduct Q&A Slack Chatbot with RAG Powered [ ](https://www.y...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI RAG, Multimodal AI use case.