AI Agents

AI Agent in Slack with Retrieval-Augmented Generation

21 nodes 300 140 Automatic trigger
Download

Workflow Description

Build an advanced AI agent within Slack that answers employee inquiries based on company documents. The system extracts data from Google Drive, processes it, and retrieves accurate answers from a vector database using RAG technology to ensure responses are grounded in actual company information.

How it works

  1. 1.Receive messages from Slack and activate the intelligent agent
  2. 2.Extract and process company documents from Google Drive, splitting them into indexable chunks
  3. 3.Convert queries and documents into vector representations and store them in Qdrant
  4. 4.Search the vector database to retrieve relevant documents and context
  5. 5.Process the query using Anthropic Claude with the retrieved context
  6. 6.Send the data-backed answer directly to Slack

Use cases

  • Answer employee questions about company policies and procedures from official documents
  • Extract specific information from multiple company files quickly without manual searching
  • Support HR and admin teams with an intelligent document search tool

Requirements

  • Active Slack workspace with bot permissions and app installation
  • API keys for OpenAI (vector embeddings) and Anthropic (language processing)
  • Google Drive account containing company documents (PDF, Word, or text files)
  • Running Qdrant server or local instance for vector database storage

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

AI Agent Memory OpenAI Vector Store Tool Slack Google Drive Document Default Data Loader Text Splitter Anthropic

Details

Trigger Automatic trigger
Nodes 21
Apps 10
Views 300
Downloads 140

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (21)

/

AI Agent

Agent

#1

Simple Memory

Memory Buffer Window

#2

Embeddings OpenAI1

OpenAI

#3

RAG

Vector Store Qdrant

#4

Calculator

Tool Calculator

#5

Get message

Slack Trigger

#6

Send message

Slack

#7

When clicking ‘Test workflow’

Manual Trigger

#8

Create collection

HTTP Request

#9

Refresh collection

HTTP Request

#10

Get folder

Google Drive

#11

Download Files

Google Drive

#12

Default Data Loader

Document Default Data Loader

#13

Token Splitter

Text Splitter Token Splitter

#14

Sticky Note3

Sticky Note

#15

Qdrant Vector Store1

Vector Store Qdrant

#16

Sticky Note5

Sticky Note

#17

Sticky Note2

Sticky Note

#18

Embeddings OpenAI2

OpenAI

#19

Sticky Note4

Sticky Note

#20

Anthropic Chat Model

Lm Chat Anthropic

#21