How to add an AI chatbot to Webflow, trained on your own pages

Train an AI chatbot on your pages, PDFs and text, then paste a two-tag snippet into Webflow's Footer code and publish. Plan rules, staging test, cost.

To add an AI chatbot to Webflow:

  1. Build the bot, add your pages, PDFs and text as sources, and copy its two-tag script.
  2. In Webflow, open Site settings → Custom code.
  3. Paste the script into Footer code (it lands just before </body>) and click Save changes.
  4. Publish to your webflow.io staging subdomain, check the widget there, then publish to your custom domain.

The Custom code tab only works if the site has a paid Site plan or sits in a Core, Growth, Agency or Freelancer Workspace, and nothing reaches the live site until you publish.

Steps 1 to 3 below happen in the chatbot dashboard; Step 4 is the Webflow part. If you already have a snippet, skip to Step 4. We make Laddu Chat, so the dashboard steps use its labels. The Footer code placement, the staging check and the test questions work the same for any chatbot that installs with a script tag.

Can your Webflow plan run a chatbot script?#

Check this first. A chat widget is custom JavaScript, and Webflow only allows custom code on some plans. Its help centre puts it like this: "If you have a Core, Growth, Agency, or Freelancer Workspace, or if your site has an active Site plan, Site managers and Designers can add custom code".

Your Webflow setupCan you paste a chatbot snippet?
Free Starter site in a free Starter Workspace (webflow.io address, 2 pages)No. Add a Site plan or upgrade the Workspace first
Any site with a paid Site plan (the usual case for a site on its own domain)Yes
Site in a Core, Growth, Agency or Freelancer WorkspaceYes

Two more limits to know before you paste:

  • Role: Site managers and Designers can add custom code. Publishing (items 5 to 7 in Step 4) needs the Site manager role or Can publish turned on. If you don't have those on a client's site, ask whoever owns it.
  • Size: the Footer code box takes up to 50,000 characters. The chatbot snippet is two lines, so you only hit this if the box is already full of tracking scripts.

What does "trained on your own pages" mean?#

Nobody retrains an AI model on your site. The bot keeps a searchable copy of the sources you give it, finds the passages that match a visitor's question, and writes the answer from them. Two things follow:

  • The bot only knows what you add. If your pricing page isn't a source, it can't quote your prices.
  • Copies go stale. Change a price in Webflow and the bot keeps the old one until you refresh that source.

In Laddu Chat you train your bot on web pages (add each URL), PDFs up to 10MB, and pasted text.

The Webflow catch: there's no bulk import (you add each page as its own URL), and that matters more on Webflow than elsewhere because so much of a Webflow site lives in the CMS. Every Collection item is its own page: 30 case studies means 30 URLs to paste. Don't add them all. Add the items people ask about, then paste a short text summary of the rest ("We've built sites for dentists, law firms and two SaaS companies; see the Work page").

Step 1: Which Webflow pages should the chatbot learn from?#

Create your Laddu Chat account (sign up free): 100 free credits, no card; paid plans start at $20 a month. The free credits run the test script in Step 3 about a dozen times. Then add sources in this order:

Sources checklist for a Webflow agency, studio or SaaS site

  • Home page
  • Each service or product page (one URL each)
  • Pricing page, or pasted text with your packages if prices aren't public
  • Contact page, plus pasted text for anything the contact form doesn't say: response time, time zone, the regions you work with
  • FAQ page
  • The 3 to 5 CMS items people ask about most: your flagship case study, your most-booked service, the integration page that gets the most traffic
  • Process or "How we work" page: timelines, number of revision rounds, what the client has to supply
  • Policies: refunds, cancellations, payment terms
  • PDFs prospects ask for: capability deck, rate card, product sheet (selectable text, up to 10MB each)
  • Pasted text for answers you give on every sales call but never wrote down: "Do you work with existing Webflow sites?", "Do you do the copy?"

Leave out old blog posts and archived CMS items that quote prices, offers or team members who've left. If a 2023 post with your old day rate is a source, the bot can quote it.

Step 2: How do you make the chat widget match a Webflow design?#

Match the widget to the Webflow design before you show a client the preview. In the widget settings:

  • Colours: select your main button in the Webflow Designer, copy its background hex from the Style panel, and use it for the brand and launcher colours. Use the nav bar's colour for the header.
  • Welcome message: up to 500 characters. Tell visitors what the bot handles: "Ask me about our packages, timelines or how to start a project."
  • Suggested questions: up to 10 tap-to-ask questions. Use real ones from your contact form submissions.
  • Avatar: an image up to 1.4MB, usually your logo mark.
  • Launcher position: you can't move the launcher, and it sits bottom right. If your design has a floating "Book a call" button, cookie banner or back-to-top arrow in that corner, check on a phone after publishing (Step 4) and move your own element if they overlap.

For leads, turn on Lead Collection fields (name, email or phone) and set a Support Email in Configure. Every plan then captures leads and emails them to you; Growth and Scale add a Leads dashboard and CSV export. Keep your Webflow contact form. The form catches visitors who already know they want to talk to you; the bot catches the ones who arrive with a question, answers it, and asks for their details while they're still interested.

Step 3: How do you test the chatbot before it goes on the site?#

Ask these 8 questions in the bot's preview. Each one checks something different, and the fix column tells you which source to add.

#AskA good answerIf it fails
1"What do you do?"One or two accurate sentencesAdd the home or about page
2"How much is a [main package]?"Your real price or rangeAdd the pricing page or paste the packages
3"How long does a project take?"Your real timelineAdd the process page or paste it
4"Have you worked with [an industry you've served]?"Names the case studyAdd that CMS item's URL
5"Do you do [something you don't offer]?"Says no and points to contactPaste a short "what we don't do" note
6"Can I get a refund?"Your policy, not a guessAdd the policy page
7A typo or slang, e.g. "how much for a websit redesgn"Works out what they meant and answersExpand the service description into 2 or 3 full sentences, using the words clients use ("redesign", "refresh", "rebuild")
8"Can someone call me about a quote?"Asks for contact detailsTurn on lead fields in Configure

Checklist diagram of the 8 test questions to ask in the bot's preview, with questions 2 (price of a main package), 3 (project length) and 6 (refunds) highlighted as must pass before the bot goes on a client's site. If an answer is wrong, add a source, often a two-sentence text note, then retrain and ask again.

Fix a failure by adding a source, usually a two-sentence text note that answers that exact question: Add Text Source for a new note, Process URLs for a new page, Update and Retrain when you edit a note. Then ask again. Don't put the bot on a client's site until questions 2, 3 and 6 pass. A wrong price or refund answer is the one a client screenshots and sends you.

Step 4: How do you paste the chatbot snippet into Webflow?#

In your Laddu Chat account, open the bot, go to Settings → Embed Scripts, check that Enable embedding on website is on, and click Copy Script. The snippet is two script tags:

<script>window.ladduConfig = { chatbotId: "<your-bot-id>" };</script>
<script src="https://chat.laddu-ai.com/embed.js" defer></script>

Copy both, in this order. Then in Webflow:

  1. Open Site settings for the site and go to the Custom code tab.
  2. Scroll to Footer code. Code here is printed just before the closing </body> tag on every page of the site.
  3. Paste the snippet. If the box already has scripts (analytics, cookie banner), paste below them on a new line. Don't wrap it in <html>, <head> or <body> tags; that breaks the layout.
  4. Click Save changes.
  5. Click Publish, tick only your webflow.io staging subdomain, untick your custom domain, and click Publish to selected domains.
  6. Open yoursite.webflow.io in a private window and check the launcher appears on several pages. Ask it one of your test questions.
  7. Publish again, this time to your custom domain, then open the live site on a phone and check the launcher doesn't sit on top of a floating button or cookie notice.

Diagram, not a screenshot: six steps in order. 1 Site settings. 2 Custom code tab, which needs a paid Site plan or a Core, Growth, Agency or Freelancer Workspace. 3 Footer code box, highlighted: paste both script tags below any existing scripts; printed just before the closing body tag on every page. 4 Save changes. 5 Publish to the webflow.io staging subdomain only and check the launcher on several pages. 6 Publish to your custom domain and check on a phone that the launcher covers nothing.

Items 5 to 7 are the part most guides skip. Webflow's publishing docs suggest the staging subdomain for testing custom code, and it's the safe way to try a new script on a live client site: if the widget clashes with something, nobody on the real domain sees it. Laddu Chat's snippet is the same for both addresses, so there's nothing to change between the staging check and the real publish.

Head code or Footer code? Footer code. A script placed just before </body> lets the page load its content first. Head code works too; there's no benefit for a chat widget.

Only on some pages: skip Site settings and use Page settings → Custom code → Before </body> tag on each page instead. Webflow adds page code after the site-wide code, so don't paste the snippet in both places or the page loads the script twice.

What about the Code Embed element? It works, and Webflow lists live chat apps as one of its uses. If you go that way, drop it inside your footer component so it's on every page that uses the footer. The catch is that it's tied to the design: a page built without that footer, or a redesign that replaces it, loses the bot. Footer code in Site settings loads on every page regardless of layout, so use it when you can.

If the widget doesn't show#

  • Not published: the Designer only shows a placeholder for scripts, and custom code doesn't run in expand canvas view. Check the published webflow.io or live site, not the canvas.
  • Published to the wrong domain: if you only published to staging in step 5, the custom domain still has the old version. Publish to it.
  • Plan: if the Custom code tab won't let you save, the site needs a Site plan or a paid Workspace (see the table above).
  • Both tags: check both script tags are there, in the same order, and that the first one wasn't cut off when you pasted.
  • Embedding switch: check Enable embedding on website is on in Laddu Chat (Settings → Embed Scripts).
  • Strict CSP: if you've set a Content Security Policy, allow script-src https://chat.laddu-ai.com, connect-src https://chat-api.laddu-ai.com, frame-src https://chat.laddu-ai.com and style-src 'unsafe-inline', plus the inline window.ladduConfig line: allow it with a hash or a nonce, or move it into a .js file on your own domain (see the CSP section of the HTML guide). Without that, the widget fails with chatbotId is missing. The chat window itself runs in an iframe.

Webflow Ecommerce sites: Webflow notes that any script you add is outside its control and may affect your own PCI compliance obligations. The chat window runs in an iframe served from chat.laddu-ai.com, but the loader is still a third-party script on your pages, so if someone owns compliance for the store, tell them before you publish.

How much does an AI chatbot on Webflow cost per month?#

You pay for two things: the Webflow plan that allows custom code (you probably already have it if the site is on its own domain) and the chatbot. Laddu Chat's plans, in USD. Every answer uses 1 credit, and credits are per account, shared by all bots.

SetupPlanMonthlyYearly billingAnswers / month"Powered by Laddu AI" link
One site, link shownStarter$20$200/yr2,500Shown
One site, link removedStarter + Remove branding add-on$44 ($20 + $24)$200/yr + $24/mo2,500Removed
Up to three client sitesGrowth$75$750/yr10,000 sharedRemoved, included
Agency with many client sitesScale$250$2,500/yr40,000 shared, up to 50 botsRemoved, included
Busier siteAny paid plan + extra credits+$15 per 1,000 credits a month–+1,000 each–

One credit is one answer, however long. Visitors who don't ask anything cost nothing. You start with 100 free credits, no card; paid plans start at $20 a month. That's enough to run the 8-question test above about a dozen times. If an account runs out of credits, the bot goes offline but still captures an email if a visitor types one. The sidebar shows Credits Used for the whole account.

If you build Webflow sites for clients, Growth covers three client sites without the Laddu link for $75 a month, about $25 per site, which is the number to price a care-plan add-on against. Full details on the pricing page.

Know the limits before you pitch it. Laddu Chat answers from your sources and passes leads on by email. There's no live chat or human handoff (when the bot can't answer, it says so instead of guessing and points visitors to your Support Email, or offers to take their details if you turn on lead fields, so set a Support Email), no WhatsApp or Messenger, and no Zapier, HubSpot or webhooks. Leads are emailed on every plan once you turn on lead fields and set a Support Email, and Growth and Scale add a Leads dashboard and CSV export. Removing the badge removes only the "Powered by Laddu AI" link: the widget still loads from chat.laddu-ai.com, and there are no client sub-accounts or client billing. If a client needs a human to take over the chat, use a live chat tool instead.

How do you keep the answers right after you change the Webflow site?#

  • Refresh after every content publish that changes a fact. Webflow publishes instantly, but the bot's copy doesn't update with it. After you change a price, a service or a policy, find that page in the bot's URL sources, click Recrawl, then Retrain. (Process URLs is only for adding new pages.) There's no automatic refresh, so add it to whatever checklist you use for publishing.
  • New CMS items: a new case study or service page isn't known to the bot until you add its URL.
  • Read the conversations every Monday. Every plan shows each conversation and today's or the last 7 days' activity. Find answers that were wrong or vague, copy the visitor's exact question, write a two-sentence answer as a text source, and retrain. You want to find those gaps before the client does.
  • Re-run the test script after a redesign, a pricing change or a new service.

Sources#

Frequently asked questions#

Which Webflow plan do I need to add a chatbot script?

Webflow lets you add custom code if you have a Core, Growth, Agency or Freelancer Workspace, or if the site has an active Site plan. A free Starter site on a free Starter Workspace has no custom code, so there's nowhere to paste a chatbot snippet.

Should the chatbot snippet go in Head code or Footer code in Webflow?

Footer code, in Site settings → Custom code. Scripts placed before the closing </body> tag let the page load its content first. Head code also works, but there's no reason to use it for a chat widget.

Why don't I see the chatbot in the Webflow Designer?

The Designer shows a placeholder for scripts, and custom code doesn't run in expand canvas view. Custom code shows in preview mode but only reaches your site once you publish. Publish to your webflow.io staging subdomain and check there.

Can I show the chatbot on only some Webflow pages?

Yes. Leave Site settings alone and paste the snippet into Page settings → Custom code → Before </body> tag on each page that should have it, then publish. Don't also keep it in the site-wide Footer code, or those pages load the script twice.

Will the chatbot answer from my Webflow CMS items automatically?

No. Laddu Chat has no bulk import: you add each page as its own URL, including CMS item pages such as individual case studies or services. You can also add PDFs up to 10MB with selectable text and pasted text up to 100,000 characters.

How much does an AI chatbot on a Webflow site cost per month?

On Laddu Chat, $20 a month on Starter (one bot, 2,500 answers a month, with a 'Powered by Laddu AI' link) or $75 a month on Growth (three bots, 10,000 answers a month shared, link removed). You start with 100 free credits, no card; paid plans start at $20 a month. That's on top of the Webflow Site or Workspace plan that allows custom code. Prices in USD.