Hire Mika
Setup Guide

How to Add a Chatbot to Your WordPress Website in 5 Minutes

Install the official Mika AI Chat plugin from WordPress.org, or add one line of code. Either way, you are live in under 5 minutes.

March 9, 2026 · 5 min read

There are two ways to add Mika to your WordPress site. The official plugin is the fastest. Manual code works too if you prefer it.

Method 1: Install the official WordPress plugin (recommended)

Mika has an official plugin on WordPress.org. No configuration, no decision trees, no conversation flows. Install it, enter your public key, and you are live.

WordPress

Mika AI Chat on WordPress.org

  1. In your WordPress dashboard, go to Plugins > Add New
  2. Search for Mika AI Chat
  3. Click Install Now, then Activate
  4. Go to Settings > Mika AI Chat
  5. Paste your public key (pk_... from your Mika dashboard)
  6. Click Save

That is it. The chat widget appears on every page of your site immediately. The plugin is lightweight (under 5KB), loads the widget asynchronously, and does not add any database queries.

Method 2: Add the script tag manually

If you prefer not to use the plugin, you can paste a single line of code instead:

<script src="https://api.hiremika.com/v1/embed.js?v=3" data-key="pk_your_key_here" async></script>

There are a few ways to add this to WordPress. Pick whichever matches your comfort level.

Option A: Use WPCode (easiest, no code editing)

WPCode (formerly Insert Headers and Footers) is a free, lightweight plugin whose only job is adding code snippets to your site.

  1. In your WordPress dashboard, go to Plugins > Add New
  2. Search for WPCode and install it (the free version by WPBeginner)
  3. Go to Code Snippets > Header & Footer
  4. Paste the script tag into the Footer section
  5. Click Save Changes

Done. WPCode is under 20KB and does not add any database queries.

Option B: Edit your theme footer (no plugin needed)

  1. In your WordPress dashboard, go to Appearance > Theme File Editor
  2. In the right sidebar, find and click footer.php (or Theme Footer)
  3. Find the closing </body> tag near the bottom of the file
  4. Paste the script tag on the line directly above </body>
  5. Click Update File

Important: If you update your theme, this change will be overwritten. To avoid that, use a child theme or use the plugin instead.

Option C: Page builder custom code (Elementor, Divi, etc.)

Elementor: Go to Elementor > Custom Code (requires Elementor Pro). Add a new snippet, paste the script tag, set the location to "Before closing body tag," and apply on the entire site.

Divi: Go to Divi > Theme Options > Integration. Paste the script tag in the "Add code to the body" field.

Astra, Kadence, GeneratePress: Check your theme settings for a "Custom Code" or "Hooks" section. Paste the script, choose the footer location, save.

What happens next

The moment you save, the chatbot appears on your site. If you have already signed up and Mika has learned your business, it starts working immediately. Visitors can ask questions, get instant answers, and share their contact info. You get leads in your inbox.

No configuration. No training. No decision trees. Mika already knows your services, hours, and pricing from scanning your website during signup.

"Will it slow down my site?"

No. The script loads asynchronously, which means it does not block your page from rendering. Your content loads first, then the chatbot loads in the background. The entire widget is under 50KB gzipped. Compare that to a typical chatbot plugin that adds 200 to 500KB and runs multiple database queries on every page load.

It also plays nicely with the tools you are probably already using:

Caching plugins like WP Rocket, LiteSpeed Cache, and W3 Total Cache all work fine with async script tags. The chatbot loads independently of your cached page content.

Security plugins like Wordfence and Sucuri will not flag the script. It is a standard async script tag loading from a known domain, no different from how Google Analytics or Facebook Pixel loads.

WooCommerce works without any conflicts. The chatbot runs in its own isolated iframe, so it cannot interfere with your cart, checkout, or any other functionality on your site.

WordPress.com vs. WordPress.org

One important distinction. If you are on WordPress.org (self-hosted, meaning you have your own hosting and full access to your dashboard), all three methods above work.

If you are on WordPress.com, your options depend on your plan. The free and Personal plans do not allow custom code or plugins. The Business plan and above do. If you are on a lower-tier WordPress.com plan, you may need to upgrade or contact their support about adding custom scripts.

The bottom line

Adding a chatbot to WordPress does not have to be a project. You do not need to evaluate six plugins, watch a 45-minute YouTube tutorial, or hire a developer. One line of code, five minutes, and your website goes from a static brochure to a 24/7 lead capture machine.

The visitors are already on your site. Give them someone to talk to.

Ready to start capturing more leads?

Mika lives on your website 24/7, answers visitor questions in English and Spanish, and sends you warm leads. No forms, no coding, no ongoing work.