Skip to main content
How to Add an AI Chatbot to Your Ghost Site

How to Add an AI Chatbot to Your Ghost Site

Add a Ghost chatbot with one snippet in Code Injection: train it on your posts and pages, then paste the code into the Site Footer box.

Jul 24, 20265 min readAskvo Team

Ghost sites tend to run on subscriptions, memberships, or a newsletter business, where readers ask the same handful of questions: what's included, how billing works, how to manage a subscription. A Ghost chatbot trained on your own posts and pages answers those instantly, without you fielding the same email every week. This guide covers training the bot and Ghost's Code Injection setting.

Works on any Ghost plan, including self-hosted

Unlike Squarespace or Webflow, Ghost doesn't gate Code Injection behind a paid tier. It's available whether you're running Ghost(Pro) or self-hosting Ghost yourself, which makes this one of the more straightforward setups in this series.

No theme edit or plugin required

Askvo doesn't require a custom Ghost theme or an installed integration. The bot runs on Askvo's servers; your site loads one script and a custom element through Ghost's built-in Code Injection, the same feature used for analytics or Disqus embeds. Same snippet as every other platform. See what an AI chatbot for your website actually does for the broader concept.

Step 1: Train the bot on your content

  1. Create a free Askvo account. One chatbot on the Free plan, no card required.
  2. Paste your Ghost site's URL. The crawler reads your public posts and pages, pricing, FAQ, about, membership tiers, and builds the bot's knowledge base. Re-crawl after publishing.
  3. Add what's behind the paywall or off-site. Member-only content, a billing FAQ that lives elsewhere. Upload documents or add Q&A pairs directly; see how to train a chatbot on your own data.
  4. Test it in the dashboard first. Strict mode keeps answers grounded in your content and admits it when it doesn't know something.

Step 2: Get your embed snippet

Copy the snippet from your bot's install page in the Askvo dashboard. Match the widget color to your site theme, and on Business or Agency, decide whether to turn on lead capture.

Step 3: Paste it into Code Injection

  1. In Ghost Admin, go to Settings, then Advanced.
  2. Click Code injection.
  3. Paste the Askvo snippet into the Site Footer box, not Site Header. The footer box is meant for code that should run after the page loads.
  4. Click Save at the top right.

Site Footer code injection applies across every page and post on your site automatically, with no per-post configuration needed.

Step 4: Verify before you call it done

  • Check the widget on your homepage and an individual post. Themes sometimes render posts differently from the homepage.
  • Ask it a real question and confirm the answer streams in with a citation.
  • Test "talk to a human" and confirm it reaches your Askvo dashboard for live takeover.
  • Ask something it can't know, like a member's specific billing status, and confirm it declines instead of guessing.

Keeping answers accurate as your content changes

Re-crawl after publishing new posts or updating pricing/membership pages. Check the Unanswered Questions report regularly. For a newsletter or membership business, this often surfaces the exact FAQ entry you're missing. If lead capture matters, read the chatbot lead generation guide. Compare plans on pricing.

Frequently asked questions

Does this work with Ghost's membership and subscription features?

The widget itself is independent of Ghost's membership system. It answers questions from your public content. For member-specific billing questions, add general policy answers as Q&A pairs and route anything account-specific to "talk to a human."

Header or Footer box in Code Injection?

Site Footer. It's meant for code that runs after the page content, which is the right spot for a widget script.

Do I need Ghost(Pro), or does this work self-hosted too?

Both. Code Injection is a core Ghost feature, not a Ghost(Pro)-only add-on.

What happens if the bot doesn't know an answer?

It says so with a fallback message you write, and logs the question in your Unanswered Questions report.

Try it on your own Ghost site

Train a free chatbot on your content, then paste the snippet — free, no credit card.

Get Started Free

Other platforms

All integrations