Automate Bank Statement Q&A with n8n and Mistral AI

This workflow monitors local bank statement files, syncs them to Qdrant vector storage, and enables AI-powered Q&A with Mistral. Automate file changes and keep your document AI agent updated effortlessly.
localFileTrigger
embeddingsMistralCloud
vectorStoreQdrant
+14
Workflow Identifier: 1259
NODES in Use: Local File Trigger, Manual Trigger, Set, Sticky Note, Read Write File, Embeddings Mistral Cloud, Default Data Loader, Recursive Character Text Splitter, Chat Trigger, Question and Answer Chain, LM Chat Mistral Cloud, Vector Store Retriever, HTTP Request, If, Switch, Set, Qdrant Vector Store

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow watches a folder on a local computer for bank statement files that are added, changed, or deleted.
It updates a special vector database with AI-generated vectors from these files.
Users can ask questions about all bank statements using AI chat.
It saves time by giving fast, clear, and correct answers.

The main problem is manual tracking is slow, has mistakes, and wastes time.
This automation keeps everything up to date automatically.

Inputs, Processing Steps, and Outputs

Inputs:

  • Local file changes: Adding, changing, or deleting bank statement files in a chosen folder.
  • User questions: Sent to a webhook that triggers the AI agent.

Processing Steps:

  1. Watch folder for file events using Local File Trigger.
  2. Set important variables like file paths and database collection in Set node.
  3. Use Switch to check what kind of file event happened.
  4. If file deleted, search matching vector points and delete them from Qdrant via HTTP nodes.
  5. If file changed, delete old vector points then reprocess the new content.
  6. If file added or changed, read file content.
  7. Prepare document text and metadata.
  8. Generate vector embeddings using Mistral AI embedding API.
  9. Insert or update vector data in Qdrant vector database.
  10. Split long texts into pieces using Recursive Character Text Splitter.
  11. Load chunks for AI knowledge base.
  12. Answer user questions with Mistral chat model paired with Qdrant vector retriever.

Outputs:

  • Automated, updated vector records matching current files.
  • Quick, relevant AI answers about bank statements.

Who Should Use This Workflow

This workflow fits people who:

  • Have many local bank statement files needing regular updates.
  • Want AI help to quickly find info inside documents.
  • Prefer not to do manual cross-checking or searching.
  • Work inside n8n automation platform.

It is good for analysts, accountants, or any person managing financial files on their computer.


Tools and Services Used


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Download and Import the Workflow

  1. Click the Download button on this page to save the workflow file.
  2. Open the n8n editor where you want to use the workflow.
  3. Choose “Import from File” and select the downloaded workflow file.

Step 2: Add Credentials and Configure Nodes

  1. Add your Mistral Cloud API key in the nodes for embeddings and chat.
  2. Input your Qdrant API credentials and URL in HTTP Request and vector store nodes.
  3. Set the folder path in the Local File Trigger node to match your bank statement folder.
  4. If your workflow has any IDs, emails, or channels, check and update them.

Step 3: Test the Workflow

  1. Manually add, update, or delete a test file in the monitored folder.
  2. Check workflow executions to confirm it reacts and updates vectors.
  3. Use the webhook URL to send test questions and see AI answers.

Step 4: Activate for Production

  1. Turn on the Local File Trigger node to start continuous monitoring.
  2. Keep your credentials secure and monitor logs for any errors.
  3. Optionally adjust settings or customize as needed.

If running self hosting n8n or VPS, see self-host n8n resources for folder mounts and permissions.


Customizations

  • Change the folder path in Local File Trigger to watch other documents.
  • Switch Mistral AI models by editing API keys or model names for better results.
  • Modify Qdrant collection names to separate data types.
  • Add extra metadata filtering in HTTP nodes for precise vector management.
  • Add monitoring for more file events like renaming.

Troubleshooting

No Workflow Trigger on File Change

Check if folder path is correctly mounted and accessible by n8n, especially in Docker.
Use absolute paths and verify permissions.

Vector Points Not Updating

Confirm Qdrant API calls succeed with correct credentials and payload.
Test outside n8n with tools like Postman.

AI Agent Gives Wrong Answers

Verify text splitting and embedding nodes produce expected outputs.
Ensure vector store has current points linked to documents.


Pre-Production Checklist

  • Verify folder paths and volume mounts.
  • Test Mistral API keys separately for embeds and chat.
  • Check Qdrant collection and API permissions.
  • Add sample files and watch workflow updates.
  • Review executions and error logs.

Summary

✓ Automates folder watching and vector updating.
✓ Converts bank statement text to AI-searchable vectors.
✓ Answers questions with Mistral AI chat and Qdrant retrieval.
✓ Saves hours of manual work and reduces errors.
✓ Easy to deploy by importing workflow and adding credentials.
→ Real-time, accurate financial insights.
→ Workflow stays synced with file changes.


Frequently Asked Questions

Yes, but API calls and nodes must be changed to fit the new vector database’s requirements.
API use depends on how often files change and how many questions are asked. Monitor AI and vector database plans accordingly.
Common causes are wrong folder paths or missing folder mounts in Docker setups. Check absolute paths and permissions.
Irrelevant answers happen if vector updates fail or text splitting and embedding nodes do not work properly.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free