Before you start
- A Duda plan that includes custom code. Duda's help page lists it on Team plans and higher.
- Access to your site's Settings in the Duda editor. If an agency built your site, they may need to do this step: "Email this to my web person" on your Widget page sends them the code.
- Your code from your assistant's Widget page.
Steps to add your Duda chatbot
- 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>.
- In the editor's side panel, click More, then Settings.
- Click Header HTML.
- Paste your code into the Body End HTML field, not the Head HTML field.
- Click Save.
- Republish your site so the change goes live.
- 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
- If you use a cookie consent app, Duda's help page says it can't hold back code placed in the head, and recommends the body end instead. Body End HTML is that place.
- Duda's help page calls this screen Header HTML in one section and Head HTML in another. Either way, the field you want is Body End HTML.
- To add it to one page only, Duda's help page describes a Header HTML box in that page's SEO settings. Most owners want it on every page.
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.