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
What the agent is made of
What the agent is made of
- 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-policyanddiagnostic-triage-questions. A skill is a set of instructions the agent loads when a question calls for it.acme-returns-policyis 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-questionswasn’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_orderknows 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_billinghands a charge to the billing team, andlock_accountandstart_account_deletiondo 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.
What a run shows
What a run shows
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_skillmeans 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.
The complete program for each tab
The complete program for each tab
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.Your copy and its key
Your copy and its key
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-supportin 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.
Free runs
Free runs
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.
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.