PICKED FROM N8N.IO · CUSTOMER SUPPORT

Downloads a product brochure PDF, extracts its text and loads it into n8n's in-memory vector store. When a customer messages your WhatsApp Business number, an OpenAI agent searches that product information and replies. Non-text messages are filtered out, and recent messages are remembered during the chat.

Template by Jimleuk · 543k views on n8n.io · listed there as “Building your first WhatsApp chatbot”

THE WORKFLOW18 NODES
WWhatsApp Trigger◆OpenAI Chat Model◐Window BufferMemoryTVector Store Tool∴Embeddings OpenAI◆OpenAI ChatModel1MWhen clicking‘Test workflow’∴EmbeddingsOpenAI1DDefault DataLoaderTRecursiveCharacter Text S…▭Extract from File↯get ProductBrochureWReply To UserWReply To User1VProduct CatalogueVCreate ProductCatalogue⑂Handle MessageTypes✦AI Sales Agent
DIFFICULTY
Advanced
NODES
18
USES AI
Yes
PUBLISHED
October 2024

001 / WHAT HAPPENS

  1. 01

    An HTTP request downloads a product brochure PDF and its text is extracted.

  2. 02

    The text is split and stored in an in-memory vector store using OpenAI embeddings.

  3. 03

    A WhatsApp message from a customer starts the chat workflow.

  4. 04

    A Switch step filters out message types that are not text.

  5. 05

    An OpenAI sales agent searches the product catalogue and replies through WhatsApp.

WHO IT SUITS

Suits product businesses that want an after-hours WhatsApp assistant answering questions from a catalogue, and are comfortable with some technical set-up.

CONNECTS

  • WhatsApp
  • OpenAI

002 / BEFORE YOU USE IT HERE

  • !Customer or lead details are sent to an overseas AI provider, which is a cross-border disclosure under APP 8 of the Privacy Act, so say so in your privacy policy.
  • !Needs a WhatsApp Business account and a paid OpenAI API key; connecting the WhatsApp trigger takes careful set-up with Meta.
  • !The in-memory vector store is lost on restart, so rebuild it each time or move to a persistent store before production.
  • !The bot replies to customers automatically, so test answers carefully and give a clear way to reach a human.

WORTH KNOWING

Templates on n8n.io are written for a global audience. Set the workflow timezone to your city, and test with a handful of real items before switching it on.

Need n8n and the AI hosted in Australia? →

004 / QUESTIONS

Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.

Yes. Every template on this list is free on n8n.io. You need an n8n account (n8n Cloud or self-hosted) and accounts for the apps it connects to, some of which charge for API use.

We adapt templates to your systems, add approval steps where customers are involved, host n8n in Australia when the data calls for it and hand it over documented.

Book a free call→