Install guides · Webflow
Webflow chatbot
Webflow has a Footer code section in your Site settings that places code before the closing </body> tag on every page, and a matching field in each page's settings. Alma's embed code goes in one or the other. If you build in Webflow every day you will know the routine; if you are newer to it, the steps below cover it.
Webflow's help center says you can add custom code if your site has an active Site plan, or if you have a Core, Growth, Agency or Freelancer Workspace, and that Site managers and Designers are the roles that can add it. If the custom code fields are not open to you, check your plan and your role first.
</body> tag on every page.<script>
(function(w,d,s,o,f,js,fjs){
w['AlmaChat']=o;w[o]=w[o]||function(){(w[o].q=w[o].q||[]).push(arguments)};
js=d.createElement(s),fjs=d.getElementsByTagName(s)[0];
js.id=o;js.src=f;js.async=1;fjs.parentNode.insertBefore(js,fjs);
}(window,document,'script','alma','https://www.helloalma.chat/widget/widget.js'));
alma('init', 'YOUR-BOT-ID');
</script>
That placement is also Webflow's own advice for scripts: code just before the closing </body> tag lets your pages load their content before the JavaScript runs. Alma's embed code adds to that by loading the chat file in the background, so your page does not wait for it.
Start the 14-day trial, choose one of the templates, write your welcome message, and copy your embed code into Webflow with the steps above.
Alma has no setting that limits the chat to certain pages. In Webflow, use page-level custom code instead of the Footer code section:
</body> tag section under Custom code.Webflow adds page-level code after any site-wide code, so if the embed code is already in the Footer code section, do not add it to individual pages as well. A page with the code twice loads the chat twice.
Check your published site rather than the Designer: Webflow says custom code does not run in the expand canvas view. Open the site in a private or incognito browser window, and a round chat button should sit in the bottom right corner, or the bottom left if you chose that under Widget Position in Alma. Click it to see your welcome message.
If it is missing, publish again, confirm the whole embed code is in place from <script> to </script>, and check that your Alma trial or plan is active. Your browser's developer tools show "Alma Chat initialized" in the Console tab when the chat loads, or "Failed to initialize Alma Chat" when it cannot.
Alma does not connect to Webflow's CMS, Ecommerce or form submissions. It runs beside them: it holds the conversations you build in Alma, asks visitors the questions you choose, and emails each new lead to the address you set for lead alerts, so a visitor with a question becomes a name and an answer in your inbox. On the Growth plan ($79 a month) and up, Zapier can pass leads to other apps, and the Agency plan ($199 a month) adds webhooks (automatic messages from one app to another), which suits studios that build Webflow sites for clients.
If a step above no longer matches what you see, Webflow's own pages have the current version:
Webflow questions
Webflow's help center says you can add custom code if your site has an active Site plan, or if you have a Core, Growth, Agency or Freelancer Workspace. Site managers and Designers can add it.
Footer code. Webflow places Footer code before the closing </body> tag, and its guidance is that scripts placed there let pages load their content before the JavaScript runs. That is also where Alma's instructions put the embed code.
Webflow says custom code does not run in the expand canvas view and does not go live until the site is published. Check your published site in a private or incognito window instead.
Yes. Leave the site-wide Footer code section empty and paste the embed code into the Before </body> tag section of each page's settings, then publish.
It appears on your Webflow pages as a chat window, but it has no Webflow integration, so it cannot see your products, carts or orders.
Start the trial
The trial lasts 14 days with the Starter plan's limits: 1 chatbot and up to 1,000 subscribers. Build your chatbot, paste the embed code where this guide shows, and the next visitor with a question can get an answer while you are busy with something else.