← Setup guides

How to add a chatbot to your Duda site

A Duda chatbot needs one line of code. Duda's site-wide settings have a Body End HTML field, which puts code just before the closing </body> tag on every page of your site.

Before you start

Steps to add your Duda chatbot

  1. Sign in, open your assistant's Widget page and copy the one line of code shown there. It starts with <script and ends with </script>.
  2. In the editor's side panel, click More, then Settings.
  3. Click Header HTML.
  4. Paste your code into the Body End HTML field, not the Head HTML field.
  5. Click Save.
  6. Republish your site so the change goes live.
  7. Open your website in a new tab and look for the chat bubble in the bottom-right corner, or bottom-left if you've moved it in Settings. Your Widget page shows "Live on your site" once it has been seen there.

Platform steps checked on November 13, 2026 against Duda Support: Custom Code

Good to know

Can't edit your website?

Every assistant has its own chat page. Link to it from your website's menu, your Google Business Profile, social media or email signature. Or use "Email this to my web person" on your Widget page to send the code to whoever runs your site.

Questions

Why does my code disappear from Duda's head section?

Duda's head section only keeps <link>, <script> and <meta> tags, so other code is dropped. Ours is a script tag, but put it in Body End HTML anyway, so your page appears before the chat loads.

Should I use Duda's HTML widget instead?

No. Duda suggests the HTML widget for code meant to show inside the page. The chat floats over every page, so it belongs in Body End HTML.

Try it on your own website

Your customers are asking right now

Paste your website and see your assistant answer as your business. It takes about a minute.

  • No account needed
  • No card
  • Free plan forever

Want the details first? See pricing