Answer code of conduct questions in Slack with GPT-4 & RAG technology
Ready for 3.0What 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).
- Is user message? (If): checks a condition and branches into true / false
- Insert Data to Store (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Code: runs custom JavaScript code
- Code Of Conduct Agent (AI Agent): runs an AI agent, with model: gpt4-1 model; 1 tool (Query Data Tool)
- Backup document(s) to Google Drive (Google Drive): uses Google Drive
- Get information about a user (Slack): work with user
- Send result in the mentioned channel (Slack): uses Slack
Services it uses
Other OpenAI + Slack templates (979) · Other OpenAI + Google Drive templates (628) · Other Google Drive + Slack templates (222)
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)
- If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Webhook
n8n-nodes-base.webhook - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Slack
n8n-nodes-base.slack - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Code
n8n-nodes-base.code - n8n Form Trigger
n8n-nodes-base.formTrigger - Google Drive
n8n-nodes-base.googleDrive - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent
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…