Templates / Advanced AI demo (presented at AI Developers #14 meetup)

Advanced AI demo (presented at AI Developers #14 meetup)

Needs changes

by Max Tkacz ✓ · 26,136 views · created 2024-07-25 · Document Extraction, AI RAG

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: HTTP Request Tool (legacy), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 26 nodes and runs when an HTTP GET request hits its webhook URL (plus 2 other triggers). Along the way it connects Slack, Embeddings OpenAI, OpenAI Chat Model and Pinecone Vector Store and 3 more. It also calls googleapis.com over HTTP.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 2 other triggers).

  1. Whether email contains n8n (If): checks a condition and branches into true / false
  2. Assign label with AI (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
  3. Question and Answer Chain: answers questions over your documents (RAG), with model: OpenAI Chat Model; retriever: Vector Store Retriever
  4. Execute JavaScript (Code): runs custom JavaScript code
  5. Send message (Slack): uses Slack
  6. Add automation label (Gmail): add labels
  7. Add music label (Gmail): add labels
  8. Download PDF (HTTP Request): calls an HTTP API
  9. Insert into Pinecone vector store (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  10. Appointment booking agent (AI Agent): runs an AI agent, with model: Anthropic Chat Model; 2 tools (Book appointment, Get calendar availability); memory: Window Buffer Memory

Services it uses

SlackEmbeddings OpenAIOpenAI Chat ModelPinecone Vector StoreAnthropic Chat ModelHTTP RequestGmail

HTTP calls to: googleapis.com

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • HTTP Request Tool (legacy) in Get calendar availability, Book appointment: replace with HTTP Request node connected to the AI Agent's Tool input.
  • AI Agent v1 (old agent modes) in Appointment booking agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Removed in 3.0Replace with
HTTP Request Tool (legacy)
Get calendar availability, Book appointment
HTTP Request node connected to the AI Agent's Tool input
AI Agent v1 (old agent modes)
Appointment booking agent (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (21)

From the author

This workflow was presented at the AI Developers meet up in San Fransico on 24 July, 2024. AI workflows 1. Categorize incoming Gmail emails and assign custom Gmail labels. This example uses the Text Classifier node, simplifying this usecase. 2. Ingest a PDF…

Excerpt from Max Tkacz'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.