Using CMS AI Agent with Concrete CMS

Everything you need for Concrete CMS, 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

  • Concrete 9 or newer. The REST API arrived in Concrete 9 — Concrete 8 has none at all, so there is nothing for this to connect to.
  • An administrator account on your own Concrete site. You will sign in with it to approve the connection, and what Concrete CMS AI Agent may do is exactly what that account may do.
  • Nothing to install. There is no add-on, no package and no plugin of ours. The API is part of Concrete itself and simply needs switching on.
  • The API switched on, under System & Settings → API, with Authorization Code and Refresh Token both ticked.

Connecting your website

  1. On your own site, go to System & Settings → API and switch the API on.
  2. Tick Authorization Code and Refresh Token. Do not tick Client Credentials: it looks like the right one and it is not. A Client Credentials connection succeeds, reads your site happily, and then refuses every single change — because Concrete gives that kind of connection no user, and treats it as a passer-by.
  3. Go to API → Integrations and add an integration. Give it the redirect address we show you on the connection screen — Concrete compares it exactly, so it has to match.
  4. Copy the Client ID and the Client Secret. Concrete shows the secret once and never again, so copy it before you leave that screen.
  5. Paste both into CMS AI Agent. We send you to your own site to press Approve, and bring you straight back.
1Switch the API onSystem & SettingsSEO & StatisticsAPI2Tick two, leave oneAuthorization CodeRefresh TokenClient Credentials3Add an integrationNameRedirect URLAddClient Secret (shown once)
What those screens look like. Drawn rather than photographed, so they stay true when your CMS is redesigned.

What you can ask for on Concrete CMS

  • 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."

  • 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."

  • 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.

    "Add a new dish to the menu: the name, the description and the price."

  • 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?"

What it will not do on Concrete CMS

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

  • 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.

  • 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.

  • 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.

  • Manage menus

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

  • 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.

  • 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.

Worth knowing about Concrete CMS

  • You approve this on your own site, so the connection carries your permissions and nothing more. You can take it away again from the same screen, under API → Integrations, and it stops working immediately.
  • Every change opens a new version. That is how Concrete works, and it suits this product exactly: nothing an assistant writes reaches your visitors until the version is approved. A page you edit keeps showing its old text to the public until then.
  • A Concrete page has no single body field. Its text lives in blocks inside named areas, so writing text means adding or changing a block — usually in the area your theme calls Main.
  • The page types we can show you are the ones already in use on your site. Concrete offers no list of its page types through its API, so a type you have made but never used yet will not appear.
  • Concrete does not open its menus, its topics, its redirects or a page's SEO title and description to an outside service. Those stay in your own dashboard, and we say so rather than half-doing them.

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.

It worked, and now the site will not accept the connection.

What you will see

That Concrete site would not accept the connection any more.

What to do

The integration has probably been removed, or the approval revoked. Check System & Settings → API → Integrations on your own site, and connect again — you will be asked to press Approve once more.

The connection works and some particular thing is refused.

What you will see

This connection was not given permission to

What to do

Concrete grants exactly the permissions you approved, and the account you approved with is the ceiling. If the account cannot do it in Concrete's own interface, the connection cannot either. Connect again with an administrator account and approve the whole list.

The site answers in a browser and we never reach it.

What you will see

Something in front of that site answered instead of Concrete, so we could not

What to do

Something in front of Concrete answered instead — a firewall, a host security rule, or Cloudflare. Widening a permission will not help, because the request never arrived. Allow requests to /ccm/api/ and /oauth/ from outside.

A page you can see in Concrete is reported as missing.

What you will see

That is not a Concrete page id.

What to do

Check the page has not been moved to the trash — Concrete keeps deleted pages there and we treat a page pending deletion as gone. If it is in the sitemap and still refused, it may be a page type the connection was not approved for.

More about Concrete CMS AI Agent