Every tool used in this setup is either free, low-cost, or has a generous free tier — making this one of the most affordable custom AI chatbot setups available for WordPress websites.
n8n — Workflow Automation
n8n is the backbone of the entire chatbot system. It connects all the tools together using a visual workflow editor. The main chatbot workflow handles incoming messages from your WordPress site, passes them to the AI agent, retrieves answers from the knowledge base, logs the conversation to Airtable, and sends the reply back to the visitor — all automatically.
A second n8n workflow runs on a monthly schedule to keep your knowledge base fresh. It automatically deletes old data from Supabase and re-imports the latest version of your Google Doc so your chatbot always has up-to-date information.
OpenAI GPT — AI Language Model
The chatbot uses OpenAI’s GPT-4.1 Mini as the language model. This model is fast, cost-efficient, and reliable for FAQ-style chatbots. It powers the AI Agent node in n8n and also generates the text embeddings used to search the Supabase knowledge base. OpenAI usage costs for a low-to-medium traffic chatbot are minimal — typically just a few dollars per month.
Supabase — Vector Knowledge Base
Supabase is used as the vector database that stores your business content as searchable embeddings. When a visitor asks a question, n8n queries Supabase to find the most relevant information from your knowledge base before the AI forms a response. Supabase has a free tier that is more than sufficient for most small business chatbots.
Google Docs — Knowledge Base Source
Your business content lives in a simple Google Doc written in a Q&A format. This makes it extremely easy to update — no technical knowledge needed. Just edit the document, and the next scheduled sync will automatically update the chatbot knowledge base in Supabase.
Airtable — Chat History Logging
Every conversation is automatically saved to an Airtable base with the following details recorded for each chat:
- Session ID
- Visitor question
- AI reply
- Page URL where the chat happened
- Visitor IP address and browser
- Knowledge source (FAQ, Greeting, or Fallback)
- Response status (Answered or Not Found)
This gives you full visibility into what your visitors are asking, which questions the chatbot answered successfully, and which questions need to be added to your knowledge base.
WordPress — Chat Interface
The chat widget is added to your WordPress site using a lightweight PHP snippet added to your theme’s functions.php file or a custom plugin. It works with any WordPress theme or page builder including Elementor, Breakdance, Kadence, Divi, Avada, and Gutenberg. No plugin conflicts, no bloat.
The widget connects directly to your n8n webhook URL and sends the visitor message, session ID, page URL, and site domain with every request.