Embed the chatbot on another website

On this page

The embed code shows your WPBot chatbot on websites where WPBot is not installed: a shop on another platform, a static landing page or a web app. The chatbot keeps running on your WordPress site, with the same knowledge, AI settings and sessions.

The Embed & Click to Chat section with the embed code for other websites

The embed code in Embed & Click to Chat, ready to copy.

Add it

  1. Open WPBot Pro → ChatBot and choose Embed & Click to Chat.
  2. Copy the code under Embed the Bot on any website copying the code below. It looks like this, with your own address:
   <script type="text/javascript">var wpIframeUrl = "https://example.com/wpwbot-mobile-app"</script>
   <script type="text/javascript" src="https://example.com/wp-content/plugins/wpbot-pro-master/js/qcld-wp-chatbot-api.js?ver=…"></script>
  1. Paste it into the other website's pages, just before the closing </body> tag.

The code opens your chatbot from the page WPBot created for it ("wpwBot Mobile App", address /wpwbot-mobile-app), in a frame. Do not delete or unpublish that page.

What to know

  • Do not add the code to your WordPress site itself. On your own site the chatbot is already there; use the shortcodes instead (Chatbot shortcodes).
  • One look: embedded chatbots always use the "Template One" template.
  • Some features do not work embedded, such as retargeting (exit intent, scroll and timed messages).
  • Site search searches your WordPress site, not the site where the code is.
  • Localhost does not work for visitors. If your WordPress address is localhost, the chatbot loads only on that same computer. Use a site with a public domain.

If the chatbot does not appear

SymptomCauseFix
Nothing showsThe code is missing, or the other site's builder removed the script tagsCheck the page source for qcld-wp-chatbot-api.js
An empty box or a "refused to connect" frameA security header (X-Frame-Options or Content-Security-Policy: frame-ancestors) set by your server, CDN or a security plugin blocks the frameWPBot removes WordPress's own frame header for this page; remove the extra header for /wpwbot-mobile-app in your server, CDN or security plugin
The chatbot shows an old versionCachingClear the cache of your WordPress site and its CDN
Works in WordPress, not on the other siteThe other site blocks scripts from other domains (its own Content Security Policy)Allow your WordPress domain in that site's script-src and frame-src

Updates

The script address carries the WPBot version (?ver=…). After you update WPBot, copy the code again so browsers get the new version.

Availability

In every WPBot Pro edition. WPBot Free does not include the embed code.

Got more questions?

Contact our ChatBot Support Heroes. They’ll provide you with all the information you need.

Contact us

Customer support is very responsive and professional. The script is awesome and with many features, including A.I. from Dialogflow. High quality.

Newpolaris

If have a 7 Stars won’t hesitate to rate that chatbot as a 7stars+++ Very helpful prompt team support Cannot find enough words express my happiness for purchasing that CHATBot Good Luck for you and your items

Ahsmartsolutions

© 2002- 2026 QuantumCloud

Black Friday! Use coupon code monster for a discount during checkout!

DISCOUNT!

X
Let's chat if you need any help finding the right product or need support.
FAQSend Us Email