Skip to main content
This tutorial builds one agent, order-support, in five parts: Try it, Build it, Add skills from the registry, See what it did and Measure it.

Run the agent

Three steps. Press the green button each time. It runs on this page: no account, install or API key. Then ask a second question, to see a public registry skill change a reply. Two more steps after that give you your own copy to change, with a free account.

How this works

  • A prompt, saved in DecimalAI, that gives the agent its support role and tells it to look up the order before answering. The runner also requires a successful tool result before the agent can claim it took an action, including when you edit the prompt or a skill.
  • Four skills on its menu, from the DecimalAI registry: acme-returns-policy, billing-dispute-resolution, account-deletion-verification-policy and diagnostic-triage-questions. A skill is a set of instructions the agent loads when a question calls for it. acme-returns-policy is the rules of Acme, the made-up shop in this tutorial: the kind of knowledge a model can’t guess, and the reason step 1’s plain agent can’t answer. diagnostic-triage-questions wasn’t written for this tutorial: it tells a model to ask what’s happening before it suggests a fix, which is what changes when you ask about the broken kettle.
  • Four tools. lookup_order knows two sample orders: ORD-1001, an electric kettle, and ORD-1002, a mechanical keyboard that was charged twice. The other three stand in for what its skills tell it to do: flag_for_billing hands a charge to the billing team, and lock_account and start_account_deletion do what the account-deletion skill asks for. They report what they would do and change nothing; in your app, they would call your billing and account systems.
The prompt and the skills are not in the code. Each run reads them from DecimalAI, so changing them there changes the next run without a redeploy. That’s what steps 4 and 5 show: you change your copy, and the very next run uses the new version.
Each run prints what the program did, in the order it did it:
  • agent_config("order-support") read the prompt and the menu of skills from DecimalAI.
  • load_skill means the model asked for that skill’s full instructions. Below the reply, the menu marks the skills it opened.
  • The other calls are its tools, such as lookup_order, with what it asked for.
What the model saw opens the instructions as they reached the model, menu included. Other questions need other skills, so asking something else shows the model choosing again. The page reports what the model did, not what we expected: if it opens no skill, it says so.
Part 2 has the complete program for each tab: the lines from steps 1 to 3, plus the four tools. agent_config() reads the agent’s prompt and skills from DecimalAI; fallback= is used only if DecimalAI can’t be reached. Part 2 also has the same programs as notebooks you can open in Colab, with nothing to install.On this page the code runs with a read-only key to Decimal’s demo workspace, and each run is capped at a few turns and tokens. The hosted runner also checks the tool results before accepting a reply that says it took an action. If that check fails, the page explains why and returns the free run. Your question goes to DecimalAI to pick skills from the agent’s menu; we don’t keep it, and the run isn’t traced.A model’s wording alone is not proof that an action happened. Part 5 checks what the tools really returned.The tabs are four ways to build the same agent:Part 2 adds LangChain, on your own machine. Part 5 measures with evaluate(), which takes OpenAI Agents SDK agents only, so choose that tab to follow Part 5 as written.
Sign in to change the prompt opens DecimalAI’s own sign-in on this page: email or Google, or a new account. If you’re already signed in to DecimalAI, the button says Continue as your email instead, with no sign-in at all. If your account has more than one workspace, the page asks which one. Use another account signs you out of DecimalAI and lets you sign in again.Signing in gives this page a workspace-scoped Docs tutorial API key: it can read your agent, save prompts and copy skills, and it can’t delete anything. The page keeps it in this browser tab only. The key lasts 30 days, signing in again replaces it, and you can revoke it under Settings → API keys.Back on this page, your copy is made for you, and the page calls the same API your own code does:
  • Your copy is an ordinary agent named order-support in your workspace, with the example’s prompt and its four registry skills. If you come back later, it picks up the same copy. If you already have another agent with that name, the page asks whether to use it, keeping its prompt and skills, or to name your copy something else.
  • Save and run saves the next version of its prompt, exactly as editing it in the dashboard does, then runs your copy with it.
  • Make it yours copies a registry skill into your workspace, in place of the original on your agent. It starts on the skill your current question calls for, and you can pick another. Save and run saves its next version and runs your copy again.
  • Run your copy runs your agent with your key: each run reads your saved prompt and skills, and is traced in your dashboard. A new copy’s first run on a question sits beside step 3’s reply to it, labelled as that run; after that, each run sits beside the one before your latest change. Open this exact run appears after its trace is confirmed. A browser run does not confirm that your own code is connected. In your dashboard, Part 4 reads it.
You get 3 free runs in this browser for questions of your own, and 10 more on your own copy once you sign in. A failed run gives its run back, and a reply that didn’t reach you is sent again rather than run twice. Decimal pays for these model calls, so they also have a daily limit per network and a total cap; when either is reached, the page says replies are paused.
After that, your copy runs in your own code with your own keys. That’s the next part.

Next: 2. Build it

Run the same agent on your machine, then add a DecimalAI key to trace it and edit its prompt from the dashboard.