matthelam logo
Published on

Agentic Studio: Stage 1: Getting It Done With Just a Prompt

Authors
  • avatar
    Name
    Matt Lam

Prompting well is the first skill of Agentic Engineering, and it's amazing how much you can get done if you're willing to just try a prompt and see. Its limits show when you need the work done the same way every time, and done right without checking it yourself. We'll follow one working example through each stage of Agentic Engineering, and see how each stage improves the process.

One goal, five stages

This post starts a series on building agents in Sitecore's new Agentic Studio. Each post repeats the same SEO optimisation task, adapted to show what one stage of Agentic Engineering looks like. If you're new to AI, these stages are a popular way to describe the journey many people have taken as they discover the complexities of this latest form of AI.

Every stage works on the same page, question and five SEO fields, and is scored the same way. The steps change as each stage brings in more of Agentic Studio's functionality, so any difference in effort, quality or consistency comes from the stage itself.

Each stage is named for the one quality it adds.

Quality it adds
Actionable
What gets built
A plain chat: no agent, no tools ticked, no MCP.
Designed to show
Natural language alone can do the job, at the cost of human effort and consistency.

Further reading: Anthropic, Prompt engineering overview (opens in a new tab)

The task

How much does a casual bouldering session cost in Adelaide?

Page
/climb/casual-entry on matthelam Boulderfest, a fictional Adelaide bouldering gym
Fields
Page title, meta description, Open Graph title, Open Graph description, JSON-LD structured data
Starting values
Title and Open Graph title "Casual entry"; the other three empty
Facts allowed
Only what the page states: adults $28, concession $24, under 15 $20, shoe hire $6, free chalk, 10-visit pass $250, five-minute safety induction, six zones
Scored by
The Agentic Studio chat itself, out of 10
Pick a stage to see what it adds and what gets built. Each stage's task fills in as its post is released.

Scenario

We run a website called matthelam Boulderfest, for a fictional Adelaide bouldering gym. The agent's job is to tune the SEO of one page, /climb/casual-entry, so that a search engine or AI answer engine cites it for one question:

How much does a casual bouldering session cost in Adelaide?

Five fields are in scope: page title, meta description, Open Graph title, Open Graph description and JSON-LD structured data. They start deliberately weak, so there's something to improve. The title and Open Graph title say "Casual entry", and the other three are empty. The only facts allowed are the ones the page states: adults $28, concession $24, under 15 $20, shoe hire $6, free chalk, a 10-visit pass for $250, a five-minute safety induction and six zones.

An independent score comes from seo-jev-analyzer, my own open-source tool, which rates the page from 0 to 10 on how well it answers the question. At stage 1 it sits outside the chat, so I have to run and check it manually on the live page, before and after. The chat never sees the result.

Stage 1 is what most people try first. You open Agentic > Chat > New chat and type. Nothing is configured, so every rule, fact and check has to live in the prompt.

Watch the run

Stage 1: tuning one page's SEO metadata with just the chat and a few prompts.

Rather than repeat the video, this post covers the key points about Prompt Engineering. I've grouped my thoughts into three categories: Doable, Inconsistent and Tedious.

Doable: a good prompt gets real work done

As mentioned in the episode, here is the link to the Trinity of Clarity post. I highly encourage you to try and apply this if you are new to working with AI.

Models are reasoning engines and usually do a pretty good job of it, and Agentic Studio already gives the chat tools to work with. I didn't tick any tools for this run, but Studio's built-in tools (Sites, Content, Pages and Web Search) were still available, and the chat used them without being asked.

I ended up using six natural language prompts. With them, the chat found the page, searched the web for Google's current guidance on titles, descriptions and structured data, and graded each field. It then drafted all five fields with valid JSON-LD, wrote them to the CMS behind Studio's own Apply changes card, and read them back, all without an agent or any configuration.

The recommendations were OK. From the starting values, seo-jev-analyzer's metadata score went from 0.00 to 2.46, and the page score from 4.27 to 4.90.

Version of the five fieldsMetadataPage
Starting values0.004.27
What the stage 1 run wrote2.464.90

What the prompts did well

Looking back over the six prompts, these habits did most of the work:

  • A role. "Act as an SEO specialist."
  • The goal stated as an outcome. "Be the page a search engine or AI answer engine cites when someone in Adelaide asks how much a casual bouldering session costs."
  • Research on demand. "Use web search to find Google's current guidance on title links, meta descriptions and structured data." Any AI with web search can do this, not just SitecoreAI. But the chat has to look up what good looks like every time, which adds up to a lot of repeated time and tokens, and it can interpret the same guidance differently each time.
  • Exact fields and an exact output shape. The five fields by name, read from the content item, a table with character counts, and the JSON-LD in a code block.
  • A way to say "I don't know". "Write EMPTY for a field that exists with no value and NOT RETURNED for a field your tools did not give you." Some tools leave fields out, and without this the chat fills the gap with a guess.
  • Rules with numbers. A title of 60 characters or fewer, a description of 150 to 160, ending with the site name.
  • Facts bounded to the source. "Use only prices, times and facilities from the page."
  • The job in rounds. Get, analyse, suggest, review, apply, re-check, with "do not change anything" in every round until the one that applies.
  • A review round that names its checks. Count the characters, confirm every fact against the page, and confirm the JSON-LD is valid.

Round 1: Get the page

On the site matthelam-boulderfest, get the page at /climb/casual-entry. Report its item path, then each of these fields on its content item, by field name1, with its exact current value: MetaTitle, MetaDescription, OpenGraphTitle, OpenGraphDescription, SchemaOrgJSON2. Write EMPTY for a field that exists with no value and NOT RETURNED for a field your tools did not give you.3 Then read the page's visible text and list every price, time and facility it states. Do not guess and do not change anything.

  1. 1Where to read them: on the content item, by field name.
  2. 2Exact fields: the five fields by name.
  3. 3A way to say "I don't know". Some tools leave fields out, and without this the chat fills the gap with a guess.
Six prompts, as sent. The craft that made them work: a role, an outcome, exact fields, a way to say "I don't know", rules with numbers and named checks.

A plain chat gets a long way, but it doesn't get there the same way each time.

Inconsistent: same prompt, different work

The same prompt, sent twice, can produce different work, and the chat can't reliably tell you when its own work is wrong. You won't see most of this in a single run; it shows up across runs.

It picks its own tools. In the recorded run, Round 1 used six tools nobody asked for: tool search, list sites, search pages, get page, get page metadata and get page HTML. Another run of the same prompt chose a different set. Different tools return different fields, ask for approval differently and write by different routes. I saw this in every run, but I haven't tested how often each path comes up.

It misses things. In my experience, about one run in ten doesn't pick up some of the fields it was asked to analyse.

It gets lazy in a long session. Run it too many times in the same chat and it starts reusing data from earlier instead of fetching it again.

It misjudges its own result. In Round 6 it read the five fields back from the content item, by field name, but its tools returned only two of them. It scored the other three 0/10 as NOT RETURNED and called the update "partially applied". The Content Editor held all five, exactly as proposed.

It marks its own work. Scores out of 10 and character counts come from the chat, with nothing outside to check them. Round 3's counts were right: 50 characters for the title and 159 for the description. Round 4, the self-check, changed no values. Its only correction was to the length of the minified JSON-LD, from 348 characters to 349. It's 348, so the check added an error.

50 charactersThe chat said: 50
Meets the rule: 60 characters or fewer
159 charactersThe chat said: 159
Meets the rule: 150 to 160 characters
The chat counts its own characters, and nothing outside checks the number. Edit either value to see the count change.

Guardrails are only requests. "Do not guess", "do not invent anything", "check your proposal against every rule": the model acts on them as it chooses, and nothing confirms it obeyed.

Warnings slip past. The Apply changes card appeared because of the tool the chat happened to pick; with another tool it asks in words instead. After the save, Studio reported that the changes "could not be fully applied". The Content Editor showed all five fields saved exactly as proposed, with every other field untouched. The warning was wrong, and nothing in the chat says so.

Tedious: the price of reliability by hand

Nothing in a plain chat makes the result reliable, so the person does it, every time.

A good share of the text in the prompts is guardrails rather than the task itself: what the chat can and can't do, don't guess, don't change anything, check your work. The same lines go into prompt after prompt, because a plain chat has nowhere else to keep them.

Round 1: Get the page

8 of 80 words are guardrail text

On the site matthelam-boulderfest, get the page at /climb/casual-entry. Report its item path, then each of these fields on its content item, by field name, with its exact current value: MetaTitle, MetaDescription, OpenGraphTitle, OpenGraphDescription, SchemaOrgJSON. Write EMPTY for a field that exists with no value and NOT RETURNED for a field your tools did not give you. Then read the page's visible text and list every price, time and facility it states. Do not guess and do not change anything.

  1. 1A guardrail, typed into this prompt by hand.
The same six prompts, with the guardrails marked: lines a plain chat needs repeated because it has nowhere else to keep them.

The person carries the context. The role, the goal, the house rules and the page's facts are all typed by hand.

The person is also the only check. I read every reply, thought of each check and asked for it, approved the save, published in Sitecore, waited for the live page to show the new title, and took the score in a separate window.

The recording is scripted: the run sheet is those decisions written down once, and the on-screen panels show where each one lands.

At stage 1 the person carries everything between the chat and the outside world. The score goes to the person, never back into the chat.

The run took 6 prompts, 429 words written by hand, 11 operator actions and 17 minutes, for one page. Take the operator away and the process stops. That's the figure the next four stages have to beat.

Stage 2: Context Engineering

Next, we move on to Context Engineering. The popular definition of this stage is that, instead of stating everything in the prompt, we point the agent to information and it adds that to the prompt itself.

On its own, this technique doesn't improve our SEO results. The improvements come when we point the agent at knowledge that is much more detailed, and that someone has spent much more time curating.