Templates / Build a tax code assistant with Qdrant, Mistral.ai and OpenAI

Build a tax code assistant with Qdrant, Mistral.ai and OpenAI

Needs changes

by Jimleuk ✓ · 10,649 views · created 2024-07-11 · Internal Wiki, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 31 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Embeddings Mistral Cloud, Qdrant Vector Store and OpenAI Chat Model. It also calls statutes.capitol.texas.gov and api.mistral.ai over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. Get Tax Code Zip File (HTTP Request): calls statutes.capitol.texas.gov
  2. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Ask Tool, Search Tool); memory: Window Buffer Memory
  3. Switch: routes items into 2 branches
  4. Extract Zip Files (Compression): uses Compression
  5. Get Mistral Embeddings (HTTP Request): calls api.mistral.ai (POST)
  6. Use Qdrant Scroll API (HTTP Request): calls an HTTP API (POST)
  7. Files as Items (Split Out): splits a list into separate items
  8. Use Qdrant Search API (HTTP Request): calls an HTTP API (POST)
  9. Get Search Response (Edit Fields (Set)): sets 1 field: response
  10. Extract PDF Contents (Extract from File): extracts data from a file (pdf)

…plus 10 more steps. See the full node list below.

Services it uses

Embeddings Mistral CloudQdrant Vector StoreOpenAI Chat Model

HTTP calls to: statutes.capitol.texas.gov, api.mistral.ai

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI 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.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2024 — 25% of templates published before 2025 need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI 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 (20)

From the author

This n8n workflows builds another example of creating a knowledgebase assistant but demonstrates how a more deliberate and targeted approach to ingesting the data can produce much better results for your chatbot. In this example, a government tax code policy…

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