How to Add a Chatbot to WordPress in 5 Minutes (2026 Guide)
Why Add a Chatbot to Your WordPress Site
Every visitor who lands on your WordPress site has a question. Where is your pricing page? What is your return policy? Do you ship to their country? If they cannot find the answer in a few seconds, most of them leave. A WordPress chatbot plugin solves this by answering questions instantly, 24 hours a day, in any language, without you needing to hire more support staff.
Adding a chatbot to WordPress is simpler than most people think. You do not need to write code, and you do not need a developer. The entire process takes under five minutes if you use the right plugin. This guide walks you through every step, from choosing an approach to connecting an AI model and customizing your chat widget.
TL;DR: The fastest way to add a chatbot to WordPress is installing a plugin like WP Replai, entering an OpenRouter API key, and completing a 4-step setup wizard. Your AI agent goes live immediately with no coding required. Skip to the step-by-step guide if you want to get started now.
Two Ways to Add a Chatbot to WordPress
Before you start, it helps to understand the two main approaches. Each has trade-offs depending on your technical comfort level and how much control you want.
Option 1: Install a WordPress Chatbot Plugin
A native WordPress plugin runs directly inside your WordPress installation. Your conversation data stays in your own database, and you configure everything from your WordPress admin dashboard. This is the recommended approach for most site owners because it is faster to set up, keeps data under your control, and does not require a monthly subscription if you choose a one-time-pricing plugin.
Plugins like WP Replai and WPBot fall into this category. WP Replai adds a full AI support agent powered by frontier models like GPT-5, Claude, and Gemini, while WPBot offers a simpler keyword-matching chatbot with a free tier.
Option 2: Embed a Hosted Chatbot Widget
Some chatbot platforms (Chatbase, ChatBot.com, Jotform) give you a snippet of JavaScript code that you paste into your WordPress site. The chatbot runs on their servers, and your conversations are stored in their system. This approach works if you need multi-platform deployment (WhatsApp, Messenger, Instagram) but typically costs more due to monthly subscription fees.
To embed a hosted widget, you usually install a code snippet plugin like WPCode, paste the embed code into a custom HTML block, and the widget appears on your site. The trade-off is that you are paying a monthly fee and your data lives on someone else’s servers.
How to Add a Chatbot to WordPress: Step by Step
This section covers the plugin approach using WP Replai, which is the fastest way to get a real AI chatbot running on your WordPress site. The same general steps apply to most WordPress chatbot plugins, though the specific screens will differ.
Step 1: Get Your OpenRouter API Key
WP Replai uses OpenRouter to connect to AI models like GPT-5, Claude, Gemini, and Llama. OpenRouter is a free API gateway that gives you access to multiple AI providers with a single key. You only pay for the model usage you consume, and most small sites spend under $3 per month.
- Go to openrouter.ai and create a free account
- Add a small amount of credits (start with $5, you will not use it all quickly)
- Generate an API key from your dashboard
- Copy the key, you will paste it into WP Replai in the next step
If you already have an OpenAI or Anthropic API key, you can still use OpenRouter as a unified gateway. The benefit is that you can switch between models at any time without changing keys.
Step 2: Install the WP Replai Plugin
- Download the WP Replai plugin zip file
- Log in to your WordPress admin dashboard
- Go to Plugins → Add New → Upload Plugin
- Choose the zip file and click Install Now
- Click Activate
After activation, you will be automatically redirected to the onboarding wizard. You do not need to hunt through settings menus to get started.
Step 3: Complete the 4-Step Setup Wizard
The onboarding wizard walks you through the essential configuration in under two minutes.
Step 1: Welcome. An introduction screen. Click Get started to proceed.
Step 2: Business profile. Tell the agent about your business. Enter your company name and describe what you sell, your policies, common questions, and your website. The more detail you provide here, the better the agent performs on general questions without needing to load a skill.
Step 3: Setup agent. Configure your chat agent:
- Agent name: The name displayed in the chat widget header (e.g. “Sara” or “Support”)
- OpenRouter API key: Paste the key you generated in Step 1
- Agent role: Describe your agent’s personality, scope, and tone
- Support email: Where escalation emails are sent when the agent cannot resolve an issue
Step 4: Configuration complete. The wizard seeds your database with 16 built-in skill templates and shows you a live preview of the chat widget. Click Done to go to the Skills page.
Step 4: Your Chatbot Is Live
That is it. Your AI chatbot is now live on your WordPress site. The chat widget appears as a floating button in the bottom-right corner of every page. Visitors can click it, ask questions, and get instant AI-powered answers in any language.
You do not need to configure anything else for the chatbot to work. The built-in skills cover common scenarios like FAQs, pricing, business hours, refund policies, and troubleshooting. You can customize these skills or create your own at any time.
How to Connect ChatGPT to WordPress
Many site owners specifically want to connect ChatGPT (or similar AI models) to their WordPress site. The good news is that with WP Replai and OpenRouter, you get access to GPT-5, Claude, Gemini, and Llama through a single integration. Here is how it works:
- Sign up for a free OpenRouter account at openrouter.ai
- Add credits to your account (OpenRouter accepts credit card payments)
- Generate an API key
- Install WP Replai and paste the key into the setup wizard
- Choose your preferred AI model from the Settings → Agent → Language model dropdown
You can switch between models at any time without changing your API key. If GPT-5 works better for your use case, select it. If Claude handles your support queries more accurately, switch to that. The flexibility to test and compare models is one of the main advantages of the OpenRouter approach.
Customizing Your WordPress Chatbot
Once your chatbot is live, you can customize it from WP Replai → Settings in your WordPress admin. Here are the key customization options:
Widget Appearance
- Primary color: Set a hex color for the chat launcher, message bubbles, and send button to match your brand
- Agent avatar: Upload a custom image (recommended 128x128px) or use the default emoji
- Message field placeholder: Customize the text shown before a visitor starts typing
- Custom CSS: Inject custom styles scoped to the chat widget for deeper branding control
- Powered by watermark: Toggle the WP Replai watermark on or off (disabled by default)
Agent Behavior
- Agent role: Define the agent’s personality, scope, and boundaries in plain language
- Business profile: Add context about your business so the agent can answer general questions accurately
- Support email: Set where escalation emails are sent when the agent hands off to a human
Skills System
Skills are the core of what makes WP Replai different from basic chatbots. A skill is a set of instructions written in plain Markdown that tells the agent exactly what to do in a specific situation. The agent reads the visitor’s message, picks the most relevant skill, and follows its instructions.
WP Replai includes 16 ready-made skill templates:
- Knowledge Base, Frequently Asked Questions, Pricing & Plans
- Business Hours, Refund Policy, Shipping Policy, Returns
- Escalation to Human, API Documentation, Developer Documentation
- Changelog, System Status, Product Comparison, Upgrade Paths
- Trial Information, Web Design Quotation
You can customize any template or create your own skills from scratch. For example, if you run a WooCommerce store, you could create an order-lookup skill that helps customers check their order status, or a product-recommendation skill that asks about their needs and suggests products.
How to Add a Chatbot to WordPress Without a Plugin
If you prefer not to install a plugin, you can add a hosted chatbot widget using an embed code. Here is the general process:
- Sign up for a hosted chatbot platform (Chatbase, ChatBot.com, Jotform, etc.)
- Configure your chatbot and train it on your content through their dashboard
- Copy the embed code (a JavaScript snippet) from their platform
- In WordPress, install a code snippet plugin like WPCode, or use a Custom HTML block in the site footer
- Paste the embed code and save
The widget will appear on your site. The main trade-offs are the monthly subscription cost and the fact that your conversation data is stored on the provider’s servers rather than in your own WordPress database.
How to Add a Chatbot to WordPress for Free
If you want to add a chatbot to WordPress without paying anything upfront, you have a few options:
- WPBot (free version): Available on the WordPress.org plugin directory. The free tier includes basic text-matching and FAQ functionality. AI capabilities are limited compared to dedicated AI chatbot plugins.
- Tidio (free tier): A live chat and chatbot combo plugin with a free plan that includes limited features. AI-powered responses require a paid plan.
- WP Replai (14-day free trial): Full access to all AI capabilities, unlimited conversations, and all 16 skill templates during the trial. You only need an OpenRouter account with a few dollars of credits for model usage. After the trial, the Pro plan is $49/year or you can get the Lifetime deal for $199 one-time.
For a full comparison of free and paid options, see our best chatbot for WordPress guide.
Frequently Asked Questions
How do I add an AI chatbot to my website?
The fastest way is to install a WordPress chatbot plugin like WP Replai. Upload the plugin zip file through your WordPress admin, activate it, paste your OpenRouter API key, and complete the 4-step setup wizard. Your AI chatbot goes live immediately with no coding required. The entire process takes under five minutes.
How do I add AI in WordPress?
You can add AI to WordPress by installing a plugin that connects to an AI model via an API. WP Replai uses OpenRouter to connect your WordPress site to GPT-5, Claude, Gemini, and Llama. After installing the plugin and entering your API key, the AI agent is live on your site and ready to answer visitor questions.
How do I connect ChatGPT to WordPress?
To connect ChatGPT (or similar AI models) to WordPress, use a plugin like WP Replai with an OpenRouter API key. OpenRouter is a free gateway that connects you to GPT-5, Claude, Gemini, and more with a single key. Create a free account at openrouter.ai, add credits, generate an API key, and paste it into the WP Replai setup wizard. You can then select your preferred model from the settings page.
What is the best free chatbot for WordPress?
WPBot offers a genuinely free version on the WordPress.org directory with basic FAQ functionality. For full AI capabilities, WP Replai offers a 14-day free trial with unlimited conversations and all features unlocked. After the trial, it costs $49/year or $199 one-time, which is significantly cheaper than hosted alternatives that charge $40 to $500 per month.
Can I add a chatbot to WordPress without coding?
Yes. WordPress chatbot plugins are designed for non-technical users. WP Replai’s onboarding wizard walks you through setup in four steps with no code required. You upload the plugin, enter your API key, describe your business, and the chatbot is live. Customizing the widget’s color, avatar, and behavior is all done through a settings page.
How much does it cost to add a chatbot to WordPress?
It depends on the solution you choose. WPBot is free with limited features. WP Replai costs $49/year or $199 one-time plus roughly $3/month in AI model usage. Hosted solutions like Chatbase cost $40 to $500 per month, and ChatBot.com charges $19 to $99 per user per month. The total cost of ownership for a native plugin is significantly lower than a hosted subscription.
Ready to Add a Chatbot to Your WordPress Site?
Adding a chatbot to WordPress is one of the highest-impact changes you can make for customer support and lead generation. With WP Replai, the process takes under five minutes and you get a real AI agent that answers questions, escalates to humans, and works in any language.
Try WP Replai free for 14 days or read the full documentation to learn more about the Skills system, supported models, and customization options.
