Conversational AI in WordPress
Learn how to deploy a Conversational AI agent to WordPress
This tutorial will guide you through adding your ElevenLabs Conversational AI agent to your WordPress website.
Prerequisites
- An ElevenLabs Conversational AI agent created following this guide
- A WordPress website with either:
- WordPress.com Business/Commerce plan, or
- Self-hosted WordPress installation
Guide
Add the widget to a page
- In WordPress, edit your desired page
- Add a Custom HTML block
- Paste the
<elevenlabs-convai agent-id="YOUR_AGENT_ID"></elevenlabs-convai>
snippet into the block - Update/publish the page
Add the script globally
Option A: Using a plugin
- Install Header Footer Code Manager
- Add the snippet
<script src="https://elevenlabs.io/convai-widget/index.js" async type="text/javascript"></script>
to the Footer section - Set it to run on All Pages
Option B: Direct theme editing
- Go to Appearance > Theme Editor
- Open footer.php
- Paste the script snippet before
</body>
Troubleshooting
If the widget isn’t appearing, verify:
- The
<script>
snippet is added globally - The
<elevenlabs-convai>
snippet is correctly placed in your page - You’ve published your site after making changes
Next steps
Now that you have added your Conversational AI agent to WordPress, you can:
- Customize the widget in the ElevenLabs dashboard to match your brand
- Add additional languages
- Add advanced functionality like tools & knowledge base