Using CMS AI Agent with Ghost

Everything you need for Ghost, in the order you will actually do it. If you are stuck, the last section has the real error messages and what each one means.

Switch these on first

  • A Ghost publication you administer — Ghost(Pro) or self-hosted, either is fine.
  • Nothing to install. Ghost integrations are built in.
  • The Admin API key, not the Content API key. They sit on the same screen and the Content one can only read.

Connecting your website

  1. In Ghost, go to Settings → Integrations.
  2. Add a custom integration and call it Ghost AI Agent.
  3. Copy its Admin API key — two long parts separated by a colon. Not the Content API key above it.
  4. Paste it into CMS AI Agent. You can delete the integration from that same screen whenever you like, and the connection stops at once.
1Add an integrationSettingsIntegrationsAdd custom integration2Two keys, one rightContent API keyAdmin API keyid:secret
What those screens look like. Drawn rather than photographed, so they stay true when your CMS is redesigned.

What you can ask for on Ghost

  • Read content

    Looking at what is already on the website: the list of pages and posts, who wrote each one, when it last changed, whether it is published, and the full text of any one of them.

    "Which pages have not been touched in over a year?"

  • Create content

    Adding something that was not there before: a new page, a new post, a new entry of whatever kind your website uses. It arrives as a draft, with a title, the body text and a short summary, ready for you to read before anyone else can.

    "Add a page about our new opening hours and leave it as a draft."

  • Edit content

    Changing something that is already there: the title, the body text, the summary. You are told exactly which items were touched, and your website keeps its own history of what they said before.

    "Change the phone number on the Contact page to the new one."

  • Publish content

    Moving something between draft, published and private. This is the step that decides whether the public can see a page, which is why it is a thing you ask for on purpose rather than something that happens on the way past.

    "Publish the draft about the Saturday market."

  • Schedule content

    Setting a date and a time in the future for something to appear, so a post written on a Tuesday afternoon goes live on Monday morning with nobody at a keyboard.

    "Set the Christmas opening hours post to go live on the first of December."

  • Manage images and files

    Putting images and files onto the website and filling in the text that belongs with them: the title, the caption, and the alt text that a screen reader speaks and a search engine reads in place of the picture.

    "Put last week's photos into the gallery and write alt text for each one."

  • Manage categories and tags

    Organising content so people can find it: which category a post sits in, which tags it carries, and creating a new category or tag where there is a real need for one.

    "Put all the recipe posts into the Recipes category."

  • Edit SEO information

    The text that does not appear on the page but decides how the page looks in a search result and when somebody shares it: the SEO title, the description under it, and the alt text on images.

    "Which pages have no SEO description? Write one for each of them."

  • Site information

    The plain facts about the website: what it is called, what software and which version it runs, how many pages and posts it holds, which languages it is written in, and when it last changed.

    "How many pages does my website have, and when was each one last updated?"

  • Administrative information

    What is installed, what has an update waiting, and who has an account on the website. Reads only: it cannot install, update, activate or remove a plugin or theme, change a setting, or add or change a user.

    "Is anything on my website waiting for an update?"

What it will not do on Ghost

Ghost has no way to do this, so this agent does not offer it. What it would have meant:

  • Manage menus

    The menus a visitor clicks: adding an item, renaming one, putting them in a different order, moving one underneath another.

  • Custom content types

    Few websites hold only pages and posts. A property site has properties, a restaurant has dishes, a school has courses. This is working with those, in their own fields, instead of forcing everything to be a blog post.

  • Bulk changes

    The same change across many items at once. Nothing happens straight away: you are shown the whole list first, with the value as it is now beside the value proposed for it, and it runs only after you have said yes. It can be stopped partway and it can be undone.

  • Manage redirects

    Sending an old address to a new one, so a link somebody saved or a result still sitting in Google lands on the right page instead of an error. It can also list everything that is already being sent somewhere else.

Worth knowing about Ghost

  • Publishing on Ghost can send email. A Ghost post is both a web page and a newsletter, and publishing one with a newsletter attached posts it through every subscriber's door. That cannot be taken back.
  • So nothing here ever sends one. Anything written arrives as a draft, publishing is a separate thing you ask for, and the newsletter is never attached by us — if you want a post emailed, you do that in Ghost yourself, deliberately.
  • We never send the key itself. Ghost's admin key is used to sign a short-lived token for each request, which is how Ghost intends it to work.
  • Ghost has posts and pages, tags, and its own SEO fields on each one, and all of those can be worked with.
  • Ghost has no menus we can reach and no redirects through the API — its redirects are a file you upload — so neither is claimed here.

When something goes wrong

The failures people actually meet, with the exact words CMS AI Agent will show you. The message is in English wherever you are, because that is what the software says.

The key is rejected the moment you paste it.

What you will see

That does not look like a Ghost admin API key. It should be two long hexadecimal parts separated by a colon. Copy the Admin API key, not the Content API key.

What to do

This is nearly always the Content API key instead of the Admin one. They sit on the same screen in Settings → Integrations. The Admin API key is two long hexadecimal parts separated by a colon; the Content key is a single part and can only read.

It worked, and now it does not.

What you will see

Ghost no longer accepts the saved admin API key. Reconnect the site.

What to do

The integration has probably been deleted or regenerated in Ghost. Open Settings → Integrations, check Ghost AI Agent is still there, and reconnect with its current key.

The address is accepted but we cannot find Ghost's admin API at it.

What you will see

Ghost answered, but not with its Admin API. If the site has a separate admin domain, connect that address instead.

What to do

Some Ghost installations keep the admin on a separate address. If yours does, connect that address instead of the public one.

The publication works in a browser and we are refused.

What you will see

A firewall or proxy in front of the site blocked the request.

What to do

A proxy, a firewall or Cloudflare in front of Ghost is blocking the request before it arrives. Allow requests to /ghost/api/admin/ from outside.

Redirects are refused.

What you will see

Ghost keeps its redirects in a file that is replaced as a whole, not in an API, so CMS AI Agent does not manage them

What to do

Ghost keeps redirects in a single file that is replaced as a whole rather than edited through an API. One mistake would wipe every redirect on the publication, so this is deliberately not offered. Edit the file in Ghost yourself.

More about Ghost AI Agent