Your first agent

Make an agent from a template, try it on your own key, change one step, publish it and read one run step by step.

3 min read · Updated Nov 2, 2026

This page takes you from nothing to a published agent in about ten minutes. Start here before you build anything for learners.

An agent is a workflow of steps. It reads a message, can search your documents and check its own reply, then answers. Learners meet the published version in course activities or on its chat page.

You need to be an owner or editor of the project. Viewers can look, but not try or change an agent. Trying an agent runs it for real on a project API key with the Run agents permission, billed like any request. New keys include it.

Make it from a template

  1. Open the templates. In Build → Agents, click New from template.
  2. Pick a tutor. Choose Safety & review → Tutor with guardrails. Before you run says what a template needs; this one needs nothing.
  3. Name it. Names are unique in the project. Click Create & open.
The agent editor for Math tutor: on the canvas, Input leads to a Knowledge search, then a VETTING step that branches to three replies (passed, unverified, needs attention), each card with a sentence saying what it does; below it, the VETTING step’s panel: Find a setting, the step marked Ready with Run step, the sentence saying what it does as set up, a note that it is a research-based step, and Setup starting with Checks against set to A guideline.
The agent editor: steps on a canvas, each saying what it does, and the selected VETTING step’s settings below it.

The canvas shows five steps, each card saying what it does. input goes to screen, a Guardrail step that checks each message for personal data, jailbreaks and harmful content. A message that passes goes to tutor, an LLM step, and its answer to reply. One that fails goes to blocked, a Reply step with a fixed message.

Tip

You can also describe the agent in the box on the Agents page and click Build agent. A model drafts the workflow on the key you choose, and nothing goes live until you publish.

Try it

  1. Open the test chat. In the right panel, click Test, then Try it.
  2. Choose who pays. Click Options, choose a key under Who pays, and click Done. The key is remembered for this project.
  3. Send the example. Click the example message to put it in the box, then press Enter. Under the reply you see its cost, its steps and how long it took.
  4. Test the guardrail. Send "My email is [email protected], can you check my essay?" The guardrail fails it, and blocked answers instead.

Change one step

  1. Open the tutor. Send the example message again, so the last run goes through tutor. Click tutor on the canvas. Step settings says what it does, "Writes a reply with viable-3", and shows the last run's time and cost.
  2. See what it gave. Under Later steps can use, tutor → reply text shows what it wrote for your last message.
  3. Change its instructions. Under Setup, click Open editor under Instructions, add "Use one short paragraph.", and click Done.
  4. Run only this step. Click Run step, then Run. It writes a new answer from your last message on the same key, billed for this one model call, and saves nothing. Send a message in Try it to see the whole agent answer.

Publish

Click Publish, look over the review, and click Publish version 1. The badge now says Published, and the agent list shows Live · v1. Later edits stay in the draft until you publish again.

Read one run

  1. Open the runs. Click Test → Run history. Your tries are at the top, marked Dashboard test.
  2. Open one. You see its reply, duration, model calls, tokens and cost.
  3. Follow a step. Under Run trace, click tutor. Input shows its instructions, the message and how many earlier messages went with it. Output shows its reply.
  4. Check the guardrail. Click screen to see what it checked and its verdict.

That is the loop: change the draft, try it, publish, read what happened.

This page is also plain Markdown at /docs/build/first-agent.md. Point your AI at /llms.txt to find every page.