chatty4allBuild your assistant

How to add an AI chatbot to Webflow

Updated · 3 min read

Webflow keeps site-wide code in the project's settings. The chatbot goes in the Footer code box, so it loads on every page after your content.

Before you start

  1. Build your assistant in the Chatty4All editor: pick a design, then teach it about your business.
  2. Under Go live → Websites it may run on, add your website's address. The assistant only loads on the sites listed there, so nobody can copy your code onto theirs.
  3. Publish it. The editor then shows your code with your own assistant id in place of YOUR_BOT_ID.

Your code

This is the whole install. Copy yours from Go live in the editor: it's the same line with your id filled in.

HTML
<script src="https://chatty4all.design/widget.js" data-bot="YOUR_BOT_ID" async></script>

Add it to Webflow

  1. Site settings → Custom code → Footer code, then publish.

Tips for Webflow

  • Site-wide custom code depends on your Webflow site plan. If the box is locked, check the site's plan.
  • Custom code runs on the published site. Publish, then check the live address.
  • Add your published domain (and your webflow.io address, if you test there) under Go live → Websites it may run on.

Showing the chat inside a page instead

For the Inline layout, drop an Embed element where the chat should appear and paste the line into it.

Check it worked

  • Open your live site in a private window. The chat button should appear in the corner within a few seconds.
  • If it says it isn't enabled for this site, add that exact domain under Go live → Websites it may run on.
  • If nothing appears, check that you published the assistant and that the line is on the page (view the page source and search for widget.js).

Would you rather let your AI coding assistant do it? See install the chatbot with Cursor, Claude, Lovable, v0 or Bolt.