Platforms
Adding an AI chatbot to a Ghost site
Ghost has a Code Injection setting for site-wide header code. Paste the chatbot script there and it runs across posts and pages.
In short
On Ghost, add an AI chatbot through Settings → Code Injection → Site Header, pasting the widget script and saving.
The widget then appears on every post and page, including member-only content.
Key facts
Key facts
- Ghost header code lives in Settings → Code Injection → Site Header.
- The snippet applies site-wide without theme edits.
- Individual posts have their own Code Injection fields for one-off tests.
- The bot indexes your published posts and pages as knowledge.
The steps on Ghost
- · Create the chatbot and index your Ghost domain.
- · Open Settings → Code Injection.
- · Paste the script into Site Header and save.
- · Reload any post to see the launcher.
<script src="https://defaltam.com/api/public/bot/widget?k=YOUR_PUBLIC_KEY" async></script>
Useful for publications
On a content site the chatbot doubles as a search box that answers instead of listing results. Readers ask a question and get the passage from the article that answers it, along with a link to keep reading.
Membership and paid content
Only index what is public. If your archive is behind a paywall, keep that content out of the bot's knowledge so it does not summarise what readers pay for.
The product behind this guide
A chatbot trained on your own website, live today
Defaltam builds AI chatbots that read your public pages and answer with your real prices, services and policies. Support is €79/month, Sales is €149/month, both start with a 5-day free trial, and installation is one script tag.
FAQ
Questions people ask about this
How do I add a chatbot to Ghost?
Open Settings → Code Injection, paste the chatbot script into the Site Header field and save. It then loads on every post and page.
Can the chatbot answer from my blog archive?
Yes, from the public pages it indexes. Keep paywalled content out of the index if you do not want it summarised.
Do I need to edit my Ghost theme?
No. Code Injection handles it without touching theme files.
Does it work with a custom Ghost theme?
Yes, as long as the theme renders Ghost's standard head and foot helpers.
Related
Keep reading.
How to add an AI chatbot to a Wix site →
Add an AI chatbot to Wix without an app: paste one script into Settings → Custom Code, point it at your pages, and it answers with your real content.
How to add an AI chatbot to Squarespace →
Squarespace Code Injection takes one line and your AI chatbot is live site-wide. Steps, plan requirements and what the bot can answer.
How to add an AI chatbot to a plain HTML website →
For static HTML sites, adding an AI chatbot is one script tag before </head> on every page. Steps, includes, and how to avoid missing pages.
Adding an AI chatbot to a React or Next.js app →
How to load a chatbot widget script in React, Next.js and other SPA frameworks without breaking hydration or loading it twice.
AI chatbot for WooCommerce stores →
What a WooCommerce chatbot should answer, how to install it without a plugin, and how it reduces 'where is my order' emails.
Putting an AI chatbot on a landing page →
A chatbot on a paid-traffic landing page can rescue visitors who would otherwise bounce. Setup, auto-open timing and what the bot should ask.
AI chatbot plans and pricing →
Support €79/mo, Sales €149/mo, 5-day free trial.
How to add an AI chatbot to your website →
The ten-minute install guide, platform by platform.