# Add an AI agent to your WordPress site > Add your QwryAI agent to a WordPress site with the QwryAI plugin and your Agent ID The QwryAI plugin for WordPress adds your agent to a WordPress site as a floating chat bubble. Instead of pasting code into your theme, you install the plugin and give it your Agent ID. The plugin is free, and WordPress works on every QwryAI plan. > [card] What you can do | /docs/user-guides/chatbot/channels | Answer every visitor to your WordPress site from a chat bubble, with no theme code to edit. ## Before you start * A QwryAI account with an AI agent, and the Chat bubble's **Visibility** turned on. If you haven't built an agent yet, see [Build your first AI agent](/docs/user-guides/quick-start/your-first-agent). * A WordPress site (version 6.0 or later) where you can install plugins, and access to its admin dashboard. WordPress.com sites need a plan that allows plugins. ## How to add your AI agent **1. Log in to your WordPress admin dashboard** Your dashboard is usually at *yoursite.com/wp-admin*. Your hosting control panel can also take you there. **2. Install and activate the QwryAI plugin** * In the WordPress admin sidebar, select **Plugins**, then **Add Plugin**. Older WordPress versions call it **Add New Plugin**. * Search for **QwryAI**. * Select **Install Now** on the QwryAI plugin, then **Activate**. ![The WordPress Add Plugins page searched for QwryAI, showing the QwryAI plugin (Embed your QwryAI agent on your WordPress site) with its Install Now button.](builder/wordpress-install.webp "Search for QwryAI, then install and activate it.") In QwryAI, the **WordPress** card on **Channels** has a **Setup** button that opens the plugin's page in the WordPress plugin directory. ![The Channels page filtered to WordPress, showing the WordPress card with the pointer on its Setup button.](annotated/01-channels-wordpress.webp "Channels › WordPress › Setup opens the plugin's page.") **3. Copy your Agent ID** * In QwryAI, open the agent you want on your site, select **Channels** in the sidebar, then select **Manage** on the **Chat bubble** card. * Select **Deploy** in the top-right corner. ![The Deploy menu open under DEPLOY ON, listing Website widget, Website iframe, Shopify and WordPress, each with a one-line description.](annotated/02-deploy-menu.webp "Deploy lists every way to add your agent.") * Select **WordPress**. ![The Deploy menu with the pointer on WordPress (Add the chat bubble to your WordPress site with our plugin).](annotated/03-deploy-wordpress.webp "Select WordPress to open Add to WordPress.") * In **Add to WordPress**, select **Copy** next to **Agent ID**. ![The Add to WordPress dialog with five numbered steps, a Download plugin (.zip) link, the Agent ID field and the pointer on its Copy button, and a note to add your WordPress domain if Specific domains is on.](annotated/04-wordpress-dialog.webp "Your Agent ID, ready to copy.") > [!NOTE] > > The Agent ID is only for the plugin. You'll find it in **Deploy › WordPress**, nowhere else in the dashboard. **4. Paste it into the plugin settings** * In the WordPress admin sidebar, select **Settings**, then **QwryAI Options**. * Paste your Agent ID into the **Agent ID** box. **5. Save your changes** Select **Save Changes**. WordPress confirms with **Settings saved.** ![The WordPress QwryAI Plugin Settings page under Settings › QwryAI Options, with Settings saved., an Agent ID entered (shown as YOUR_EMBED_KEY) and the Save Changes button.](builder/wordpress-settings.webp "Settings › QwryAI Options, saved.") > [!TIP] > > Visit your WordPress site in a new window and check that the chat bubble appears and answers. The conversation shows up in your QwryAI **Inbox**. ![A WordPress site with the QwryAI chat bubble and its Hello! How can I help you today? message in the bottom-right corner.](builder/wordpress-live.webp "The chat bubble on every page once the Agent ID is saved.") > [!NOTE] > > Can't install from the plugin directory? In **Deploy › WordPress**, select **Download plugin (.zip)**, then upload the file in WordPress under **Plugins › Add Plugin › Upload Plugin**. ## If you use Specific domains If you turned on **Specific domains** in the Chat bubble's **Deploy** sheet, add every address your WordPress site runs on, one per line, such as `https://www.acme.com` and a staging address like `https://staging.acme.com` (example values), then select **Save domains**. ![The Specific domains toggle switched on with https://www.acme.com and https://staging.acme.com entered in the domain list, Enter each domain in a new line below it, and the pointer on Save domains.](annotated/06-specific-domains.webp "List each address, one per line, then Save domains.") Each entry matches one exact host. Enter it without a path; QwryAI won't save an address with one. An entry without `https://` or `http://` is saved as `https://`, so for a local install, add the full address with its port, such as `http://localhost:8080`. See [Channels](/docs/user-guides/chatbot/channels). ## Troubleshooting > [accordion] The chat bubble doesn't appear after saving the Agent ID > > **Possible causes:** > > * A caching or optimization plugin (for example one that delays, defers, combines or self-hosts JavaScript) changed how the QwryAI script loads. > * **Specific domains** is on and the site's address isn't listed. Your browser's developer console shows that the chat was blocked by the page's frame-ancestors policy. > * The visitor's country is in **Blocked countries** under [Guardrails › Country blocking](/docs/user-guides/chatbot/guardrails). > * **Visibility** is off on the Chat bubble's **Overview** tab. > > **Solution:** clear your caching plugin's cache, check the setting that applies, and reload the page in a private window. > [accordion] WordPress says the Agent ID doesn't look right > > The plugin accepts only the Agent ID exactly as QwryAI shows it. Copy it again with **Copy** in **Deploy › WordPress**, and paste it without spaces or line breaks. > [accordion] My caching plugin breaks the chat bubble > > The plugin loads the chat bubble script from `qwryai.com/widget/script/…` in your site's footer. If your caching plugin optimizes JavaScript, exclude that script from its delay, defer, combine, minify and "host scripts locally" features. A copy saved on your own domain won't load the chat correctly. > [!NOTE] > > You change how the chat looks in QwryAI, not in WordPress. Open **Channels**, select **Manage** on the **Chat bubble** card, then open the **Display** tab to edit **Content**, **Style**, **Floating bubble**, **Localization**, **Capabilities** and **Typography**. Select **Publish** to send your changes live; your site picks them up without touching WordPress. ## Frequently asked questions > [accordion] Is the QwryAI WordPress plugin free? > > Yes. The plugin is free to install, and WordPress works on every QwryAI plan. To hide "Powered by QwryAI" in the chat, add the **Remove 'Powered By QwryAI'** add-on; see [Workspace settings](/docs/user-guides/workspace/settings). > [accordion] Can I add QwryAI to WordPress without the plugin? > > Yes. Copy the **Website widget** code from **Deploy** and output it unchanged in your site's footer on every page, for example with a code snippets plugin or your theme's footer template. QwryAI doesn't depend on how the code reaches the page. See [Webflow](/docs/user-guides/integrations/webflow) for the same code on another builder. > [accordion] Can I show the chat bubble on some pages only? > > The plugin adds it to every public page. For certain pages only, skip the plugin and add the **Website widget** code to just those pages. > [accordion] What does the chat bubble look like on phones? > > On screens narrower than 768px, the chat opens full screen. On wider screens it opens as a panel in the bottom corner. > [accordion] Can I change where the chat bubble sits? > > Switch it between the bottom left and bottom right with **Position** under **Display › Floating bubble**. ## Next steps > [card] Customize the chat bubble | /docs/user-guides/chatbot/channels | Match the chat bubble to your brand's colors, position and wording.