decide
Answer typed questions about a message, ticket, record or form, with a calibrated probability for each answer.
state: the thing to decide about: a string (e.g. a customer message) or a JSON object (a record).
questions: {question_id: {...}}, each one of:
{"type": "noul", "instructions": "The customer is asking for a refund."} -> probability it's true
{"type": "choice", "instructions": "Which team?", "criteria": {"billing": "payments", "delivery": "orders"}}
{"type": "score", "instructions": "How urgent?", "criteria": ["can wait", "today", "immediately"]}
Works in 19 languages, including English, Pidgin, Hausa, Yorùbá, Igbo, Swahili and Arabic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| questions | Yes |