Building a Restaurant Policy Q&A Bot with n8n, RAG, and AI – Looking for Feedback & Guidance

Hello n8n Community! :waving_hand:

I’ve also shared this project on LinkedIn, where I’ve explained the workflow and shared my experience:

LinkedIn Project Post: https://lnkd.in/p/daY8TzKd

I’m excited to share a project I’ve been working on using n8n, AI, and Retrieval-Augmented Generation (RAG). I’m also looking forward to learning from this community and getting feedback from people with more experience in workflow automation.

A Little About My Background

I’ve been working as a UI/UX Designer for around 5 years. Over this time, I’ve gained experience in designing digital products, improving user experiences, and solving design problems.

However, with AI rapidly changing the technology and design industry, I’ve started thinking more seriously about how I can expand my skill set and adapt to these changes. I’ve noticed that traditional design roles and the skills expected from designers are evolving, so I decided to explore a new direction: AI Automation and Workflow Development.

I’m now investing time in learning n8n, AI tools, APIs, and automation concepts. I’m not coming from a development background, so there’s a lot for me to learn, but I’m excited about this transition and the opportunities it brings.

About the Project

I recently built a Restaurant Policy Q&A Bot using:

  • n8n

  • Google Sheets

  • OpenAI Embeddings

  • Simple Vector Store

  • Gemini 2.5 Flash

  • Retrieval-Augmented Generation (RAG)

The main goal was to understand how AI can retrieve relevant information from a knowledge base and answer questions based on the actual content instead of relying only on keyword matching.

How I Built It

I divided the project into two workflows:

1. Vector Indexing – Building the Knowledge Base

  • Loads restaurant policy chunks from Google Sheets.

  • Converts policy text into embeddings using OpenAI Embeddings.

  • Attaches chunk IDs as metadata.

  • Stores the embedded documents in an in-memory Simple Vector Store.

2. RAG Q&A – Retrieving and Answering Questions

  • Accepts user questions through an n8n form.

  • Converts the question into an embedding.

  • Retrieves the most relevant policy chunk from the vector store.

  • Uses Gemini 2.5 Flash to generate an answer based on the retrieved information.

The output also includes the original question, generated answer, chunk ID, and similarity score.

Challenges I Faced

During development, I encountered several issues:

  • An embedding sub-node was disconnected or disabled.

  • The vector store required a prompt for retrieval.

  • A Gemini embedding model request returned a 404 error.

  • An Edit Fields node contained a reference to a deleted Code node.

I resolved these issues by checking node connections, correcting prompt inputs, using OpenAI Embeddings consistently in both workflows, and fixing broken node references.

Testing the Workflow

I tested the bot with different restaurant policy questions:

  • Delivery charge: PKR 150.

  • Free delivery: Orders above PKR 2,000.

  • Order cancellation: Retrieved the relevant cancellation policy.

  • Parking availability: The information wasn’t available in the policy document, so the bot refused to guess.

One thing I particularly wanted to achieve was making the bot avoid generating answers when the required information wasn’t available in its knowledge base.

What I Learned

This project helped me gain practical experience with:

  • Understanding embeddings and semantic search.

  • Working with vector stores.

  • Building RAG-based AI workflows.

  • Connecting different AI models in n8n.

  • Debugging workflow issues.

  • Understanding how AI retrieves and processes information.

What I Want to Improve Next

I know there are several areas where this workflow can be improved.

Currently, I’m using an in-memory vector store, which means the stored vectors don’t persist after a restart. I’m also retrieving only one relevant chunk at a time.

My next goals are:

  • Explore persistent vector databases such as Pinecone or Supabase.

  • Experiment with retrieving the top 3 relevant chunks.

  • Automate re-indexing whenever the Google Sheet is updated.

  • Improve answer accuracy and retrieval quality.

I’d Really Appreciate Your Guidance!

Since I’m still relatively new to n8n and AI automation, I’d love to hear from experienced community members.

  1. What do you think about my overall workflow structure?

  2. What would you improve or approach differently?

  3. Should I focus on learning vector databases next, or explore AI agents and tool calling?

  4. What kind of practical projects or challenges would help me develop stronger AI automation skills?

I’m especially interested in learning through real-world tasks rather than just following tutorials.

I’m here to learn, experiment, make mistakes, and improve. Any feedback, suggestions, resources, or project ideas would mean a lot.

Looking forward to connecting with the n8n community. Thanks for welcoming a beginner! :raising_hands: