CMS Agent tab with Show CMS AI Agent toggle and read access options
CMS Agent

Appifio Creator · Lesson G07 · Intermediate → Advanced

CMS AI Agent:
manage content with AI & chat history

How CMS Agent works: site overview, plan with AI, read/write content by permission, and manage every chat session.

Learning goals: See how CMS Agent speeds admin work; configure read/write; Build prompt for Frontend; manage Visitor + CMS history.

Reading time: about 18 minutes

Prerequisites: Site AI Agent on and Frontend Agent understood (G06); logged into CMS with admin rights.

Previous → next: G06 → G07 → H01 (full webapp) or H02 (MCP)

1. What CMS AI Agent does

It is the assistant bubble inside the CMS panel (logged-in admin) - not the public visitor chatbot (G06).

Typical workflow
1. Open CMS → CMS Agent bubble (auto briefing or Analyze)
2. Get a current site overview (per enabled read rights)
3. Discuss & plan with AI (what to write, which leads…)
4. Ask AI to read contacts / orders / visitor chats / posts / products / custom types
5. (If write enabled) ask AI to create or edit drafts of posts · products · custom-type records
6. You open the item in the panel → Save / Publish (Publish creates the public URL)
7. View / delete sessions under Chat history

2. Mechanism: read / write by settings

CMS Agent does not use the visitor Build prompt. It uses a built-in CMS prompt + CMS data gated by the CMS Agent tab toggles.

Read access (usually on by default)Helps admins
Visitor chat history (Frontend Agent)See frequent questions and sales opportunities
Contacts / leadsRead latest contacts; prioritize replies
OrdersOrders needing action; recent status
Posts · ProductsReview what exists before writing/editing
Custom data typesSee schema + records (events, services…)
Knowledge indexesReference Frontend knowledge you built
Write access (off by default - opt-in)AI canYou still
Write posts (draft)Create / edit posts as draftOpen Posts → Save / Publish
Write products (draft)Create / edit products (incl. variants) as draftOpen Products → Save / Publish
Write custom types (draft)Create / edit records matching the type schemaOpen that data type → Save / Publish

Important: AI never deletes and never publishes. Every write is forced to draft - Publish in the panel creates the public route.

3. Practical admin capabilities

  • Site overview - briefing on CMS load (auto) or Analyze: visitor chats, contacts, orders, posts… per read rights.
  • Discuss & plan - “what to write next?”, “which leads first?”, “how to improve the catalog?”.
  • Read latest contacts - tips / questions about recent leads.
  • Create & edit posts with AI - when post write is on; always draft.
  • Create & edit products with AI - when product write is on; always draft.
  • Create & edit custom-type records with AI - when custom write is on; AI reads schema first.
  • Quick tips on the bubble - contacts / orders / visitor chats / post ideas / product ideas / custom types (hidden if that read right is off).

4. Build prompt (for Frontend Agent)

This tab feeds the visitor chatbot (G06), not the CMS Agent prompt:

  1. Custom System prompt + optional website-info insert.
  2. Indexes: Tag · Title · Markdown body; label [Tag] Title; max 50 → Save Build prompt.

5. Configure CMS Agent - steps

  1. CMS Agent tab (master Site AI Agent must be on).
  2. Enable CMS AI Agent in panel.
  3. Auto-analyze on CMS load: on = briefing when entering; off = Analyze / typed questions only.
  4. Position: Inherit / Left / Right (palette-size from G06 Config).
  5. Set Read access for what the team needs; uncheck types AI must not see.
  6. Enable Write access only when ready for “AI drafts → human Publish”.
  7. Save CMS Agent → try tips / create a draft / ask for an overview.

6. Chat history - view & manage all sessions

Chat history tab empty with Refresh and Clear all for visitor and CMS sessions
Chat history

Chat history collects sessions from both agents:

  • Visitor - Frontend Agent chats with site visitors.
  • CMS Agent - admin chats with the panel assistant.
  1. See Type · message count · updated time.
  2. View · Delete session · Refresh · Clear all (Visitor + CMS - confirm first).
  3. Use Visitor history to improve Build prompt / indexes; use CMS history to track draft-creating sessions.

7. Technical limits

You can

  • Overview + planning + read by permission
  • Create/edit draft posts · products · custom types
  • Manage all Visitor & CMS history

Limits

  • No delete / no publish from the agent
  • Does not use visitor Build prompt
  • Tokens bill the site owner

8. Common issues

SituationFix
No CMS bubbleEnable master + CMS Agent; stay logged in; refresh
Cannot read contacts / ordersEnable matching read rights → Save CMS Agent
Create post / product / custom rejectedEnable the matching write right; then Publish in the panel
Wrong custom-type fieldsAsk AI to read the type schema first; see G04
Empty historyRefresh; confirm the chat succeeded (no quota error)

9. Self-check

  1. Can you list CMS Agent admin jobs (overview, plan, read, draft write)?
  2. Do you know read vs write, and that Publish stays human?
  3. Can you open History and manage Visitor + CMS Agent sessions?

Next lesson

H01 - Full webapp: Creator + Storage + CMS

Merge A-G into an end-to-end checklist. Need IDE MCP → H02.

Appifio Creator · User guide · G07