How to Add an AI Chatbot to Webflow (Site-Wide Custom Code)
Webflow sites are often built by a designer and then handed over, so questions from visitors land in a contact form that nobody watches closely. A HolderChat bot answers from the pages you have already published. You add it to Webflow with one script tag in the site’s footer code. This guide covers the steps, the Webflow plan you need for custom code, and how to keep the bot up to date after you publish changes.
The problem: a polished site with unanswered questions
A good Webflow site explains the offer, but visitors still want to ask: “Do you work with clients outside Germany?”, “What is included in the basic package?”, “How do I book a call?” A contact form turns each of those into an email and a wait. Many visitors do not send it at all.
What HolderChat does on a Webflow site
- Answers from your published pages, added as a website source, plus files and Additional Context entries.
- Matches your design. Six colour schemes and a launcher button builder with your own icon, size, position and animation.
- Hands over to a person through a Telegram group, or with a Microsoft Teams meeting link from an endpoint you provide.
- Keeps a history of conversations in the dashboard, so you see what visitors ask.
Before you start: Webflow plan for custom code
According to the Webflow Help Center, custom code in Site settings and Page settings is available if you have a Core, Growth, Agency or Freelancer Workspace, or if the site has an active Site plan. Check your plan before you start. Without custom code access, Webflow does not let you add the HolderChat script site-wide.
Step by step: add the chatbot to Webflow
- Create a chatbot. Register on holderchat.com, open the Dashboard and click Create Your First Chatbot.
- Add your published Webflow site as a source. In Knowledge Sources click Add Website, enter your published site URL with
https://, review the menu preview, choose the pages and start parsing. Add PDFs or other documents as files if the answers live there. - Rebuild and test. Click Rebuild Bot, wait until the status is Active, then ask real visitor questions in Test Chatbot.
- Copy the embed snippet. Open Widget Appearance, choose the colour scheme and launcher button, and copy the Script snippet under Embed on your website.
- Open Site settings in Webflow. In Webflow open Site settings for the site and go to the Custom code tab.
- Paste into Footer code. Paste the HolderChat script into the Footer code section. Webflow places footer code before the closing
</body>tag on every page. Click Save changes. - Publish the site. Publish the site. Webflow shows the effect of custom code in preview, but it only goes live after you publish.
- Check it like a visitor. Open the published site in a private window with ad blockers off, look for the chat button, and ask two or three questions your visitors really ask.
The snippet looks like this, with your bot’s token in place of YOUR_TOKEN:
<script src="https://holderchat.com/dynamic/get.js?token=YOUR_TOKEN" async></script>
Use footer code rather than a Code Embed element for the chat. A Code Embed element only exists where you place it in the design, while footer code applies to every page. Paste one HolderChat snippet only: either the script embed above or the iframe embed (/dynamic/iframe.js), not both. See Embedding the Chatbot Widget.
Only on some pages
To show the chat on a single page instead of the whole site, open that page’s Page settings in the Designer and paste the snippet under Custom code → Before </body> tag. Do not also keep it in Site settings, or the page loads it twice.
Webflow Ecommerce sites
Webflow notes that scripts you add are outside its control and may affect your own compliance obligations, including PCI DSS if you sell with Webflow Ecommerce. If that concerns you, use page-level custom code on content pages instead of site-wide footer code, so the chat script is not loaded on checkout. More on store questions: AI chatbot for online stores.
Keep answers current after you publish changes
The bot does not see Webflow edits or new CMS items by itself. After you publish important changes, open Knowledge Sources, re-parse the website source and click Rebuild Bot. Answers use the new content once the status is Active again.
Questions the bot can handle on a Webflow site
- “What does the starter package include?”
- “Do you offer this service in English?”
- “How does a project usually run, step by step?”
- “Where can I book a call?” (pointing to your booking page)
- “Can I speak to someone?” (handed to your support channel)
The bot answers well when the answer is written on a page. Write website pages an AI chatbot can answer from explains how to write them.
Privacy and cookies
The script embed sets holderchat_user_id and holderchat_talk_id for 48 hours to keep a chat session. The iframe embed keeps conversation identifiers in the host page’s localStorage instead. Visitor messages are sent to HolderChat to generate replies and may be sent to OpenAI. Privacy Settings can mask or replace personal data the anonymizer detects before that call. Mention the chat in your privacy policy, and say in the welcome message that visitors are chatting with an AI assistant.
FAQ
Do I need a paid Webflow plan?
Webflow says custom code needs a Core, Growth, Agency or Freelancer Workspace or an active Site plan. Check the current wording in the Webflow Help Center, since plans change.
Why do I not see the chat on my live site?
Custom code only goes live after you publish. Also check that the bot status is Active, that the token in the snippet belongs to the right bot, and that an ad blocker is not hiding the widget.
Can I style the chat to match my Webflow design?
Yes, within Widget Appearance: colour scheme, launcher icon, size, position and animation. Custom CSS and JavaScript run only with the iframe embed, inside its frame. See Custom CSS and JavaScript (iframe only).
Does the bot read my Webflow CMS collections?
It reads the published pages you select when you add the website source. It does not connect to the Webflow CMS directly, so re-parse and rebuild after changes.
Will Webflow support help with the snippet?
Webflow says its support team does not troubleshoot custom code. For questions about the HolderChat snippet, email service@holderchat.com.
What does HolderChat cost?
HolderChat is currently free, and no credit card is needed. See Free access.
Related guides
- AI chatbots for agencies, if you build Webflow sites for clients
- Add a chatbot to React, Next.js or Vue, for sites built in code
- Place the website chat button where people can tap it
- Test your website chatbot before you go live
Try it on your Webflow site. Create a bot from your published pages and paste one line into Footer code. HolderChat is currently free.