
What the OpenAI Decisions API is and why it returns typed decisions instead of text, straight from the official changelog of its public beta. You will meet TriageDesk, the support desk you will build in Python during the course, see the three parts of the course, and check what you need before you start: basic Python, an OpenAI account with API credit and a recent OpenAI SDK.
When the Decisions API is the right tool and when it is not. You will compare it with the Responses API point by point (output, explanations, tools, images and pricing) using the official guide, and leave with a simple rule: use Decisions to classify, route or prioritize from a fixed set, and the Responses API to extract fields, write answers or call tools.
Make real decisions in the browser before writing code: a predicate, a choice and a score on support tickets, with the latency the Playground reports. You will see why score levels need descriptions, and copy the exact request with the Code button.
Install the OpenAI SDK (3.26.0 or later), make your first decision with client.decisions.create, and read the answer safely by checking for refusals first. You will also see the real error messages you are likely to meet and route ten tickets in parallel with the async client.
The three answer types side by side on the same ticket: what each one asks, what you give it and what it returns. You will define TriageDesk's questions once, send them in a single request, learn why a score is an average and not a level, and see a refusal arrive for one question while the others are answered.
The same decision with the Node SDK (openai 7.30.0 or later): install it, call client.decisions.create with the same fields, check for refusals and read the choice and its confidence. Everything in the course carries over to JavaScript.
Build TriageDesk's router with one choice question and measure it against hand-labeled tickets: eight out of eight routed correctly, with one low-confidence case worth a human look. You will learn the official advice on writing distinct, observable options and how to use confidence as a safety net.
Add a severity score and two flags in the same request, and learn a lesson the hard way: level descriptions decide the answer. A double charge goes from "cosmetic" to "high" once the levels describe harm instead of blocking. You will also look inside a score and see how many questions one request can take.
Send screenshots together with the ticket text as inline base64 images, and check whether they show an error. The same text with two different screenshots gets two different answers. You will also measure the effect of the detail setting: half the tokens, same answer.
Use a second request to choose what the agent should do next: reply from the knowledge base, ask for details, escalate to a human, or reason. You will learn why dependent decisions need separate requests, what to put in the summary, and how the option descriptions become your support policy.
Hand calm but complex tickets to a writing model through the Responses API. First, see how overlapping option descriptions stole every decision from "reason" and how rewriting one option fixed it; then build draft_reply and read the plan it drafted for an agent to review.
The most important lesson: are the probabilities real? With a question whose answer is known, predicates came back calibrated at exactly 0.70, while choices said 0.95 or 0.58 depending only on the order of the options. You will then pick an alert threshold for angry customers from labeled tickets, as the official guide recommends.
Write a small pytest suite that calls the real API with labeled tickets and asserts routing accuracy, missed angry customers, false alarms and a few pinned decisions. It runs in about twelve seconds for a fraction of a cent, and you will see exactly what a failure looks like.
Measured numbers for production: a quarter of a second per decision versus a second and a half with the Responses API, about 645 input tokens and $0.000064 per ticket, a monthly estimate, no caching discount, and what the official guide says about zero data retention, HIPAA and data residency. Plus what to watch before general availability.
Run the full pipeline on a batch of tickets: triage, screenshot check and next action, with the threshold chosen from data. Sixteen decisions in about five seconds, and four things to change to adapt TriageDesk to your own support desk.
A recap of the course, a map of the downloadable project, and ideas to apply the same pattern to content moderation, lead routing, agent next steps and voice control.
This course contains the use of artificial intelligence.
In October 2026 OpenAI released the Decisions API in public beta. Instead of writing text, it answers your questions with typed results: the probability that a condition is true, one option from a fixed list, or a score against levels you define. In my tests it answered in about a quarter of a second, roughly six times faster than the same model through the Responses API, and you only pay for input tokens.
In this course you build TriageDesk, a support desk in Python that reads every new ticket, routes it to the right team, scores its severity, checks the attached screenshot, flags angry customers and decides the agent's next action. Complex tickets go to a writing model that drafts a plan for a human to review.
Everything you see was recorded with the October 2026 public beta and checked against a real account. You will learn what the documentation does not tell you, measured with real calls:
Predicates returned calibrated probabilities, while choice confidence changed by almost forty points just by reordering the options.
How to pick thresholds from labeled tickets, as the official guide recommends.
Real latency, real cost per ticket and a monthly estimate.
How option descriptions become your support policy, and how overlapping descriptions steal decisions.
How to protect your decisions with regression tests that call the real API.
How this course is made: I designed the project, wrote and ran every line of code against the real API, and reviewed every lesson. The narration uses an AI voice and the animations are generated from my scripts. The complete project, with thirty labeled tickets, a script per lesson, a test suite and a small JavaScript version, is included as a download.