Templates / Answer code of conduct questions in Slack with GPT-4 & RAG technology

Answer code of conduct questions in Slack with GPT-4 & RAG technology

Ready for 3.0

by Trung Tran ✓ · 170 views · created 2025-08-22 · AI RAG, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Slack, Google Drive and Embeddings OpenAI.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Is user message? (If): checks a condition and branches into true / false
  2. Insert Data to Store (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  3. Code: runs custom JavaScript code
  4. Code Of Conduct Agent (AI Agent): runs an AI agent, with model: gpt4-1 model; 1 tool (Query Data Tool)
  5. Backup document(s) to Google Drive (Google Drive): uses Google Drive
  6. Get information about a user (Slack): work with user
  7. Send result in the mentioned channel (Slack): uses Slack

Services it uses

OpenAI Chat ModelSlackGoogle DriveEmbeddings OpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (12)

From the author

📘 Code of Conduct Q&A Slack Chatbot with RAG Powered > 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. 🧑‍💼 Who’s it for This workflow is…

Excerpt from Trung Tran's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.