P25-11-12">
n8n WhatsApp AI Agents
11 min read Automation

How To Build a N8N WhatsApp Chatbot For ANY Business (FREE Template)

Imagine turning any business website into a fully-functional WhatsApp chatbot in under 10 minutes - no coding required. This n8n automation scrapes websites, structures the data into an "encyclopedia," and creates an AI-powered customer service agent that works 24/7. Perfect for agencies looking to offer AI automation services to local businesses.

The Business Opportunity

Small businesses are drowning in customer inquiries while struggling to maintain consistent, helpful responses. Restaurant owners miss reservations when they're busy. Hotel staff repeat the same information dozens of times daily. Retail stores lose sales when customers can't get quick answers about product availability.

This n8n automation solves all these problems by transforming any business website into a knowledgeable WhatsApp assistant. The system automatically scrapes the website, structures all the information into an organized "encyclopedia," and creates an AI chatbot that answers customer questions instantly - day or night.

Recurring revenue potential: Agencies typically charge $200-$500 setup fee plus $50-$300/month per client for this service. Since the chatbot reduces customer service workload by 40-60%, businesses see clear value in paying for this automation.

How The System Works

The automation consists of two connected workflows that handle everything automatically. The first part scrapes any business website URL you provide, extracting all the important information like services, prices, hours, and contact details. The second part powers the WhatsApp chatbot that uses this information to answer customer questions.

Here's the step-by-step process:

Step 1: Website Scraping

When you enter a website URL, Firecrawl (our scraping tool) examines every page on the site. It automatically filters out irrelevant pages like privacy policies and terms of service, focusing only on content that would be useful for customers.

Step 2: Data Organization

The scraped content gets sent to OpenRouter AI (using GPT-4-turbo), which structures everything into a clean, organized document we call the "encyclopedia." This includes sections for services, pricing, hours, contact information, and any other relevant details from the website.

Step 3: WhatsApp Integration

The encyclopedia gets loaded into the WhatsApp chatbot's memory. When customers message the business, the AI checks this knowledge base to provide accurate, helpful responses in the business's brand voice.

Key advantage: The system remembers conversation context, so customers don't need to repeat themselves. If they ask "What are your hours?" followed by "Do you open early on weekends?", the chatbot understands they're still asking about operating hours.

Getting The Free Template

We've built this entire system for you - all you need to do is import our pre-made n8n template. At 4:32 in the video, you'll see exactly where to download the JSON file containing the complete workflow.

To import it into your n8n instance:

  1. Create a new workflow
  2. Click the three dots in the top right corner
  3. Select "Import from file"
  4. Upload the downloaded JSON file

The template includes all the nodes pre-configured - you just need to connect your API keys (which we'll cover next). The workflow diagram shows exactly how data flows from the website scrape through to the WhatsApp responses.

Setting Up Firecrawl

Firecrawl handles the website scraping portion of our automation. At 6:15 in the video, you'll see the step-by-step process to get your API key:

Step 1: Create a Free Account

Go to firecrawl.dev and sign up using your email. The free tier provides more than enough capacity for testing and small-scale use.

Step 2: Generate an API Key

Once logged in, navigate to the API keys section and create a new key named "n8n scraper" so you'll remember its purpose.

Step 3: Connect to n8n

In your imported workflow, find the "Map Website" node and create a new credential using your Firecrawl API key. Test the connection to ensure it's working properly.

Pro tip: The same API key works for both the "Map Website" and "Scrape Content" nodes - you don't need to create separate credentials for each.

Configuring WhatsApp Business

The WhatsApp integration requires a Facebook Business account and WhatsApp Business API access. At 7:50 in the video, we walk through each step:

Step 1: Create a Facebook Business Account

If you don't already have one, go to business.facebook.com and set up your business portfolio. This is required before you can access the WhatsApp Business API.

Step 2: Set Up a New App

In your Facebook Business settings, create a new app ID. Select "Business" as your app type when prompted. This gives you access to the WhatsApp product.

Step 3: Generate Access Token

Under the WhatsApp section in your app dashboard, generate an access token. Be sure to select "opt in to all current and future WhatsApp accounts" for maximum flexibility.

Step 4: Connect to n8n

You'll need four pieces of information to connect WhatsApp to your n8n workflow:

  • Access token (from step 3)
  • Business account ID (shown near your test number)
  • App ID (found in Settings > Basic)
  • App secret (same page as App ID, but hidden)

Add these to both the WhatsApp trigger node and send reply node in your n8n workflow. Facebook provides a free test number you can use during development before connecting real business numbers.

Connecting OpenRouter AI

OpenRouter provides the AI brains for our chatbot. At 12:30 in the video, we show how to set it up:

Step 1: Create an Account

Go to openrouter.ai and sign up. You'll need to add some credits (as little as $5 is enough for testing).

Step 2: Generate an API Key

In the keys section, create a new API key named "n8n web scraper" for easy identification.

Step 3: Connect to n8n

Find the "OpenAI 4.1 Mini" node in your workflow and add your OpenRouter API key as a new credential. By default, we use GPT-4-turbo for its excellent balance of speed, cost, and quality.

Customization tip: You can edit the system prompt in the AI Agent node to change how the chatbot responds. Make it professional for law firms, friendly for cafes, or technical for IT services.

Testing Your Chatbot

At 15:45 in the video, we demonstrate how to test your new chatbot with a real business website:

Step 1: Execute the Workflow

Click "Execute workflow" in n8n. A form will appear asking for a website URL - enter any business site you want to test with.

Step 2: Monitor the Process

Watch as n8n processes each step: discovering pages, scraping content, and organizing information. For large sites, this might take 5-15 minutes.

Step 3: Review the Encyclopedia

Check the final output node to see the structured document the AI created. This is your chance to remove any sensitive information or add details not on the website.

Step 4: Paste into Chatbot

Copy the encyclopedia content and paste it into the AI Agent node in your WhatsApp workflow, below the system prompt.

Step 5: Send Test Messages

Use Facebook's test number to message your chatbot. Start with simple questions like "What are your hours?" then try follow-ups to test the memory function.

Quality check: Every answer should come directly from the website content. If the chatbot doesn't know something, it should say so politely rather than guessing.

Troubleshooting Common Issues

At 19:20 in the video, we cover solutions to the most frequent problems:

Chatbot Not Responding

Check your webhook URL in Facebook matches exactly what's shown in n8n. Verify your access token hasn't expired (they typically last 60 days).

Incorrect Answers

Review the encyclopedia content - the AI might have missed or misinterpreted information from the website. You can manually edit it before pasting into the chatbot.

Scraping Taking Too Long

Large websites with hundreds of pages can take 10-15 minutes to scrape completely. Add delays between requests or limit which sections get scraped.

Memory Not Working

Ensure the session ID in your AI Agent node is correctly configured with the phone number variable. Without this, the chatbot won't remember previous messages.

Remember: The manual review step (checking the encyclopedia) takes just 30 seconds but ensures your chatbot provides perfect, on-brand responses every time.

Watch the Full Tutorial

For a complete walkthrough of every step, watch the full video tutorial below. At 4:32, you'll see where to download the free template, and at 6:15, we begin the step-by-step setup process.

Video tutorial: Build a WhatsApp chatbot for any business with n8n

Key Takeaways

You now have a complete system that can transform any business website into a smart WhatsApp chatbot in under 10 minutes. This isn't just a technical demo - it's a legitimate business opportunity you can start offering to clients today.

In summary: The automation handles the hardest parts (scraping, AI, WhatsApp integration) so you can focus on delivering value to clients. Small businesses desperately need this solution but don't know how to build it themselves - that's where you come in.

Frequently Asked Questions

Common questions about this topic

Any business with a website can benefit - hotels, restaurants, retail stores, service providers, law firms, medical practices, and more. The system works equally well for any industry because it learns directly from the business's own website content.

The chatbot automatically adapts to each business's specific information and needs. Whether it's a hair salon listing services and prices or a law firm explaining practice areas, the AI structures the content appropriately.

  • Service businesses: Answer FAQs about offerings, pricing, and booking
  • Retail: Provide product details, availability, and store hours
  • Hospitality: Share amenities, check-in times, and local recommendations

Only when the business makes significant changes to their website. For most businesses, this means updating the chatbot encyclopedia once every 1-3 months. The manual review step takes about 30 seconds but ensures quality control.

Since the chatbot pulls information directly from the website, it stays current as long as the business updates their site. You only need to re-scrape when they add new services, change prices, or make other substantial updates.

  • Minor text changes don't require updates
  • Major service/pricing changes should trigger a re-scrape
  • Seasonal businesses may need more frequent updates

Absolutely. Many agencies charge $200-$500 setup fee plus $50-$300/month for maintenance. Since the chatbot works 24/7 and reduces customer service workload by 40-60%, businesses see clear value in paying for this service.

Position it as an "AI customer service assistant" that handles routine inquiries, allowing staff to focus on more complex tasks. The time savings alone often justify the monthly fee for busy businesses.

  • One-time setup fee covers initial configuration
  • Monthly fee includes updates and basic maintenance
  • Premium packages can include advanced customization

The AI is programmed to politely say it doesn't know and direct the customer to contact the business directly. You can customize this response in the system prompt to match each business's preferred communication style.

This "I don't know" response is actually valuable - it prevents the chatbot from guessing and giving wrong information. Businesses appreciate that it directs customers to human help when needed.

  • Default response can include specific contact methods
  • Can be tailored to business hours ("Contact us M-F 9-5")
  • Option to forward complex queries to human staff

After the initial setup shown in this tutorial, adding a new client takes under 10 minutes. Simply paste their website URL, review the automatically generated encyclopedia, and activate the WhatsApp connection.

The system handles all the technical work automatically. Your main task is quality checking the encyclopedia to ensure it accurately represents the business before going live.

  • First client takes longest (initial setup)
  • Subsequent clients take 5-10 minutes each
  • Bulk pricing available for agencies

For websites with hundreds of pages, the scraping process might take 10-15 minutes. You can add delays between requests or limit which pages get scraped. The system automatically filters out irrelevant pages like privacy policies.

Large ecommerce sites may need special handling. Focus on key sections like product categories rather than trying to scrape every individual product page unless absolutely necessary.

  • Add 1-2 second delays between page requests
  • Exclude specific sections using URL patterns
  • Prioritize "About", "Services", and "Contact" pages

Yes. After testing with Facebook's free test number, you can connect any WhatsApp Business account. The setup process is identical - just use your business's credentials instead of the test credentials.

Many businesses already use WhatsApp for customer communication. This system enhances those conversations by providing instant, accurate answers without staff intervention.

  • Works with existing WhatsApp Business numbers
  • Maintains all current chats and contacts
  • Seamlessly blends automated and human responses

GrowwStacks can customize this WhatsApp chatbot solution for your agency or business, handling the technical setup and integration. We'll ensure it works perfectly with your existing systems and train your team on managing client accounts.

Our automation experts will configure the n8n workflows, connect all APIs, and provide documentation so you can offer this as a turnkey service to your clients. We handle the complex parts so you can focus on client relationships.

  • Custom workflow configuration for your needs
  • White-label solutions for agencies
  • Ongoing support and maintenance packages

Ready to Offer WhatsApp Chatbots to Your Clients?

Every day you wait is another day your potential clients struggle with unanswered customer inquiries. Our team can have this automation working for your business or agency in under 48 hours.