Integrations
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.
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.
- 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
- 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.
- 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.
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.
- 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.
Deploy lists every way to add your agent.
- Select WordPress.
- In Add to WordPress, select Copy next to Agent ID.
- 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.
- Save your changes
Select Save Changes. WordPress confirms with Settings saved.
Settings › QwryAI Options, saved.
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.
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.
Troubleshooting
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.
- 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.
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.
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.
Frequently asked questions
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.
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 for the same code on another builder.
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.
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.
Can I change where the chat bubble sits?
Switch it between the bottom left and bottom right with Position under Display › Floating bubble.