Skip to content
Docs navigation: Decision model / Overview

RightNow decision model

Get an API key

RightNow AIDecision model Updated

On this page

The RightNow decision model makes structured decisions: send a state and named questions, then read probabilities, confidence and typed answers.

one decision
Text
Illustration of named answers.

Send state and named questions. Read the answer for each question.

TypeScript
const response = await fetch("https://api.rightnowai.co/v1/decisions", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.RIGHTNOW_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "rightnow-decision",
    state: "The blender I ordered arrived with a cracked jar.",
    questions: {
      damaged: { type: "noul", instructions: "Did the item arrive damaged?" },
    },
  }),
});
console.log(await response.json());

An Idempotency-Key allows a stored answer to be replayed when available. Read the data handling and training terms.

At a glance

Endpoint
POST https://api.rightnowai.co/v1/decisions
Earlier key (rnsk_)
POST https://api.rightnowai.co/v1/decision-model/decide
Key
Authorization: Bearer $RIGHTNOW_API_KEY
Model
rightnow-decision
State
Text, a JSON object or a JSON array.
Questions
noul, choice and score. An earlier key uses boolean in place of noul.
Model discovery
GET /v1/models answers by the key that calls it. With an earlier decision model key, one that starts with rnsk_, it returns attested models and their limits, then your account's open models for a key that also works with the open models. With a key from the API keys page, it returns your account's open models and the RightNow decision model.

With a key from the API keys page, call POST /v1/decisions: see Call it with your key.

Inline input: text, JSON state (robot state), images, voice, PDF, video (preview). Only listed formats are supported. See Inputs for input formats and availability.

Start here

For AI coding agents

Read the docs index or add the integration skill.