Adding an AI Chatbot to WordPress
WordPress powers over 40% of the world's websites. Adding an AI assistant to your WordPress blog, portfolio, or WooCommerce store is a great way to handle customer inquiries instantly. Here is the step-by-step setup guide.
Step 1: Create and Train Your Chatbot
- Sign up for a free account at Ewbly.
- Go to the Create Chatbot page in the dashboard.
- Upload your training documents (e.g., pricing guides, product catalogs, refund policy PDFs) or paste your website URL to let the platform crawl your pages.
- Click Create and wait 30 seconds for the AI vector embeddings to build.
Step 2: Retrieve Your Custom Embed Snippet
- Go to the Widgets or Share tab inside your chatbot dashboard.
- Copy the lightweight JavaScript code snippet. It looks like this:
``<script src="http://127.0.0.1:8000/widget.js" data-bot-id="YOUR_BOT_ID"></script>``
Step 3: Install WPCode Plugin on WordPress
- Log in to your WordPress admin panel (`/wp-admin`).
- Go to Plugins -> Add New.
- Search for WPCode (Insert Headers and Footers).
- Click Install Now and then Activate.
Step 4: Paste Your Embed Snippet
- In the left sidebar of WordPress, click on Code Snippets -> Header & Footer.
- Scroll to the Footer section.
- Paste the Ewbly script snippet.
- Click Save Changes at the top.
Your AI chatbot is now live on your website and ready to support your visitors!