1 min read 248 words Updated Oct 09, 2026 Created Nov 30, 2026
#AI#decision#decisions#ml

Supports three types:

  • Predicate: Propability, that statement is true in percent 0 - 1
  • Choice: Selects a choice, and returns propabilities. Route technical request to a team, e. g. billing, sales or infrastructure
  • Score: Evaluate aganst given order, e. g. a given bug "Cosmetic", "Workaround". "Fully blocked"

For choice:

const decision = await client.decisions.create({
  model: "gpt-6-luna",
  input: "I was charged twice for my subscription this month. Could you help me get a refund for the extra charge?",
  questions: [
    {
      type: "choice",
      instructions: "Which team should handle this customer request? Choose the team that best matches the customer's main concern.",
      choices: [
        {
          value: "Billing"
        },
        {
          value: "Technical support"
        },
        {
          value: "Sales"
        }
      ]
    }
  ]
});

For Score:

import OpenAI from "openai";

const client = new OpenAI();
const decision = await client.decisions.create({
  model: "gpt-6-luna",
  input: "The Export button does nothing in Safari. I can still download the report by opening it in Chrome, but switching browsers is inconvenient.",
  questions: [
    {
      type: "score",
      instructions: "Rate how much this bug prevents the user from completing their task, using the severity levels below.",
      levels: [
        {
          label: "Cosmetic",
          description: "A visual issue that does not affect completing the task."
        },
        {
          label: "Workaround available",
          description: "The task is disrupted, but the user can complete it using a workaround."
        },
        {
          label: "Fully blocked",
          description: "The user cannot complete the task and has no workaround."
        }
      ]
    }
  ]
});
console.log(decision.answers);