RAG for smart outreach in n8n

A RAG system in n8n that knows your business and writes outreach that sounds researched.

playbook
Last updated Oct 28, 2026

Tools featured in this playbook

This article was originally posted on Repliq

That’s exactly what we’re building in my latest video: a RAG system (Retrieval-Augmented Generation) that learns everything about your business so it can generate outreach messages that feel like you spent hours researching each prospect.

Most AI-generated outreach falls flat because it lacks real context. It sounds like this:

📌"Hey, I help businesses with AI automation. Want to chat?"

❌ No context. No relevance. No chance.

But with RAG, your AI pulls real knowledge from your website, blog posts, customer success stories, and more, allowing it to create messages like this:

📌"Hey John, I saw that your SaaS helps eCommerce stores with abandoned cart recovery. At [Your Business Name], we’ve helped Shopify brands recover 30% more revenue using AI-driven video personalization. Want to see how?"

In the video, I’ll show you a flow:

That collects and structures your business data for AI retrieval

Store it in a vector database like Supabase or Pinecone

How the set up and automation inside n8n works

From the video

Imagine an AI that truly understands your business. Not in a generic way, but down to your unique value proposition, your case studies and the exact pain points you solve. Now imagine using that AI to write hyper-personalized cold outreach at scale. That's what we built inside n8n: a RAG system.

RAG stands for retrieval augmented generation. It learns everything about your business, so your outreach messages feel like you spent hours researching each prospect.

Why AI outreach feels generic

If you've used AI for cold outreach, you know how generic it can be. That's because it doesn't know your business. It only knows its own training data. A RAG retrieves actual knowledge about your business: your website, your blog posts, your best success stories. So instead of an AI that guesses, you have an AI that knows.

The more data you feed it, the smarter and more precise it gets when it writes your messages. You can also use the RAG for other jobs:

  • Filtering out leads that match your criteria

  • Nurturing leads

  • Following up on leads

  • Answering emails for you

We already built the flows. You can grab them as files and upload them into n8n for your own business.

Flow 1: turn your website into PDFs

  1. In the first node, add your website.

  2. Collect all the pages (home page, about page and so on) from your sitemap. On almost any website, if you visit sitemap.xml you get all of its URLs.

  3. Filter the results to keep only the relevant pages.

  4. Use ConvertAPI to turn each page into a PDF file.

  5. The PDFs are uploaded to Google Drive.

Flow 2: add the PDFs to a vector database

If this flow is active, it runs on its own as soon as a PDF lands in that Google Drive folder.

  1. Set IDs for the files and download them.

  2. Extract the text from each PDF and transform it so it can go into the vector database.

  3. Add it to the database.

We use Supabase as the vector database, but you can also use Pinecone. There are plenty out there, so pick the one you like. This flow is made for PDFs, but you can extend it to feed your RAG with videos, images or even voice memos.

Flow 3: talk to your RAG

Open the chat and ask it questions to see what it understood. For example, I asked "What is Repliq?" It pulled the data it had and answered that Repliq is an AI tool for lead generation through hyper-personalized outbound, that users report higher email engagement, and that they like the support. That's exactly what Repliq does.

Keep adding data and asking questions until you're sure it understands what you want, before you use it for outreach.

Comments

Login to leave a comment