← Setup guides

How to add a chatbot to your Ghost site

A Ghost chatbot needs one line of code. Ghost's Code injection adds code to every page of your site without touching your theme, and its Site footer box puts it just before </body>.

Before you start

Steps to add your Ghost 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 Ghost Admin, go to Settings, then Advanced, and open Code injection.
  3. Paste your code into Site footer, not Site header. Ghost puts footer code just before the closing </body> tag on every page.
  4. Save your changes.
  5. 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 Ghost Help: Adding styles with code injection

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 isn't my Ghost code injection working?

Check you pasted the whole line, from <script to </script>, into Site footer and saved. Then look at your live site in a new tab. If it still doesn't show, your theme may be missing Ghost's {{ghost_foot}} helper, which is what outputs Site footer code; Ghost's own themes include it.

Should I use Site header or Site footer?

Site footer. Ghost recommends it for scripts, and it loads after your content, so your page appears first.

Do I need to edit my Ghost theme?

No. Code injection adds the line to every page without changing your theme files, so theme updates don't remove it.

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