AI AGENTS + AUTOMATION + CONNECTED PRODUCTSSanta Monica, CA · Islamabad · Clients worldwide ENESPTAR
Free n8n template

WhatsApp AI agent template for n8n

An AI agent on the official WhatsApp Business Cloud API that answers questions from your FAQ sheet, keeps the conversation context and logs booking requests.

Download the n8n JSON

Free to use and modify. In n8n: Workflows → Import from file, then add your credentials. No sign-up needed.

How it works

  1. A customer sends a WhatsApp message to your business number.
  2. Non-text messages are filtered out (extend it later for voice notes and images).
  3. The AI agent reads your FAQ sheet as a tool and answers in a short, friendly reply.
  4. Window memory keeps the last 8 messages per phone number, so follow-up questions make sense.
  5. When the customer wants to book, the agent collects name, date and time and appends them to your Bookings sheet.
  6. The reply is sent back through the WhatsApp Cloud API.

Nodes used

  • WhatsApp Trigger
  • AI Agent
  • OpenAI chat model
  • Window memory
  • Google Sheets tools (FAQ and Bookings)
  • WhatsApp send

Set it up in 10 minutes

  1. Create a Meta app with WhatsApp, and connect the WhatsApp trigger and send nodes with your credentials.
  2. Replace YOUR_PHONE_NUMBER_ID with your WhatsApp phone number ID.
  3. Connect OpenAI (or swap in Claude or Gemini) and Google Sheets.
  4. Create a Google Sheet with two tabs, FAQ and Bookings, and paste its URL into both tools.
  5. Edit the agent’s system message with your business name, tone and rules.

Good to know

Meta charges per message by category and country, and since 1 October 2026 service messages are billable too. Replies outside the 24-hour customer service window need approved templates. Read our WhatsApp AI agent guide before going live.

Want it production-ready?

Templates are a starting point. For a live business process we add error handling, retries, monitoring, human approval for sensitive actions and documentation, and connect it to your real systems. See our service page or browse all templates.

Chat on WhatsApp