Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
OpenAI Decisions API: Build an AI Ticket Router in Python
New
Rating: 5.0 out of 5(1 rating)
8 students

OpenAI Decisions API: Build an AI Ticket Router in Python

Classify, route and prioritize support tickets with GPT-6 Luna's typed answers: predicates, choices, scores and tests
Created byJosé Calderón
Last updated 10/2026
English
English

What you'll learn

  • Explain when to use the Decisions API instead of the Responses API, and when not to
  • Make predicate, choice and score decisions in the Playground, in Python and in JavaScript
  • Build a support ticket router that scores severity, reads screenshots and decides the next action
  • Set trustworthy thresholds from labeled data and know when probabilities can be trusted
  • Protect production decisions with regression tests against the real API
  • Estimate latency and cost per decision and understand the data controls of the beta

Course content

4 sections • 16 lectures • 32m total length
  • Welcome: decisions, not text2:02

    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.

Requirements

  • Basic Python: functions, lists and dictionaries, and running a script from a terminal
  • An OpenAI account with a few dollars of API credit (the whole course costs cents to follow)
  • No machine learning background is needed

Description

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.

Who this course is for:

  • Python developers who want to add fast, cheap AI decisions to their applications
  • Teams building support, moderation or routing tools who need structured answers, not text
  • Developers who already use the Responses API and want to know when Decisions is the better tool