curl --request POST \ --url https://llm-gateway.assemblyai.com/v1/decisions \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data @- <<EOF{ "model": "gpt-6-luna", "input": "Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\nCustomer: Sure, it's 4471-2209.\nAgent: Thanks. And can you confirm the address on the account?\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\nCustomer: Okay, that's fine. Thanks for letting me know.", "questions": [ { "type": "predicate", "name": "confirmed_account_details", "instructions": "Did the agent ask the caller to confirm their account details?" }, { "type": "choice", "name": "call_outcome", "instructions": "How did the call end?", "choices": [ { "value": "resolved", "description": "The issue was fixed or fully answered on the call" }, { "value": "follow_up", "description": "The customer was told the issue will be fixed later" }, { "value": "escalated", "description": "The call was transferred or escalated" } ] }, { "type": "score", "name": "customer_sentiment", "instructions": "How did the customer feel at the end of the call?", "levels": [ { "label": "negative", "description": "Upset or frustrated" }, { "label": "neutral", "description": "Neither upset nor pleased" }, { "label": "positive", "description": "Satisfied or thankful" } ] } ]}EOF
import requests
url = "https://llm-gateway.assemblyai.com/v1/decisions"
payload = {
"model": "gpt-6-luna",
"input": "Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?
Customer: Sure, it's 4471-2209.
Agent: Thanks. And can you confirm the address on the account?
Customer: 18 Harbor Lane. My internet has dropped three times today and I work from home.
Agent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.
Customer: Okay, that's fine. Thanks for letting me know.",
"questions": [
{
"type": "predicate",
"name": "confirmed_account_details",
"instructions": "Did the agent ask the caller to confirm their account details?"
},
{
"type": "choice",
"name": "call_outcome",
"instructions": "How did the call end?",
"choices": [
{
"value": "resolved",
"description": "The issue was fixed or fully answered on the call"
},
{
"value": "follow_up",
"description": "The customer was told the issue will be fixed later"
},
{
"value": "escalated",
"description": "The call was transferred or escalated"
}
]
},
{
"type": "score",
"name": "customer_sentiment",
"instructions": "How did the customer feel at the end of the call?",
"levels": [
{
"label": "negative",
"description": "Upset or frustrated"
},
{
"label": "neutral",
"description": "Neither upset nor pleased"
},
{
"label": "positive",
"description": "Satisfied or thankful"
}
]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'gpt-6-luna',
input: 'Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\nCustomer: Sure, it\'s 4471-2209.\nAgent: Thanks. And can you confirm the address on the account?\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\nAgent: I\'m sorry about that. There\'s an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\nCustomer: Okay, that\'s fine. Thanks for letting me know.',
questions: [
{
type: 'predicate',
name: 'confirmed_account_details',
instructions: 'Did the agent ask the caller to confirm their account details?'
},
{
type: 'choice',
name: 'call_outcome',
instructions: 'How did the call end?',
choices: [
{
value: 'resolved',
description: 'The issue was fixed or fully answered on the call'
},
{
value: 'follow_up',
description: 'The customer was told the issue will be fixed later'
},
{value: 'escalated', description: 'The call was transferred or escalated'}
]
},
{
type: 'score',
name: 'customer_sentiment',
instructions: 'How did the customer feel at the end of the call?',
levels: [
{label: 'negative', description: 'Upset or frustrated'},
{label: 'neutral', description: 'Neither upset nor pleased'},
{label: 'positive', description: 'Satisfied or thankful'}
]
}
]
})
};
fetch('https://llm-gateway.assemblyai.com/v1/decisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://llm-gateway.assemblyai.com/v1/decisions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'gpt-6-luna',
'input' => 'Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?
Customer: Sure, it\'s 4471-2209.
Agent: Thanks. And can you confirm the address on the account?
Customer: 18 Harbor Lane. My internet has dropped three times today and I work from home.
Agent: I\'m sorry about that. There\'s an outage in your area. A technician is already on it, and it should be fixed by 5 PM.
Customer: Okay, that\'s fine. Thanks for letting me know.',
'questions' => [
[
'type' => 'predicate',
'name' => 'confirmed_account_details',
'instructions' => 'Did the agent ask the caller to confirm their account details?'
],
[
'type' => 'choice',
'name' => 'call_outcome',
'instructions' => 'How did the call end?',
'choices' => [
[
'value' => 'resolved',
'description' => 'The issue was fixed or fully answered on the call'
],
[
'value' => 'follow_up',
'description' => 'The customer was told the issue will be fixed later'
],
[
'value' => 'escalated',
'description' => 'The call was transferred or escalated'
]
]
],
[
'type' => 'score',
'name' => 'customer_sentiment',
'instructions' => 'How did the customer feel at the end of the call?',
'levels' => [
[
'label' => 'negative',
'description' => 'Upset or frustrated'
],
[
'label' => 'neutral',
'description' => 'Neither upset nor pleased'
],
[
'label' => 'positive',
'description' => 'Satisfied or thankful'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://llm-gateway.assemblyai.com/v1/decisions"
payload := strings.NewReader("{\n \"model\": \"gpt-6-luna\",\n \"input\": \"Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\\nCustomer: Sure, it's 4471-2209.\\nAgent: Thanks. And can you confirm the address on the account?\\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\\nCustomer: Okay, that's fine. Thanks for letting me know.\",\n \"questions\": [\n {\n \"type\": \"predicate\",\n \"name\": \"confirmed_account_details\",\n \"instructions\": \"Did the agent ask the caller to confirm their account details?\"\n },\n {\n \"type\": \"choice\",\n \"name\": \"call_outcome\",\n \"instructions\": \"How did the call end?\",\n \"choices\": [\n {\n \"value\": \"resolved\",\n \"description\": \"The issue was fixed or fully answered on the call\"\n },\n {\n \"value\": \"follow_up\",\n \"description\": \"The customer was told the issue will be fixed later\"\n },\n {\n \"value\": \"escalated\",\n \"description\": \"The call was transferred or escalated\"\n }\n ]\n },\n {\n \"type\": \"score\",\n \"name\": \"customer_sentiment\",\n \"instructions\": \"How did the customer feel at the end of the call?\",\n \"levels\": [\n {\n \"label\": \"negative\",\n \"description\": \"Upset or frustrated\"\n },\n {\n \"label\": \"neutral\",\n \"description\": \"Neither upset nor pleased\"\n },\n {\n \"label\": \"positive\",\n \"description\": \"Satisfied or thankful\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://llm-gateway.assemblyai.com/v1/decisions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"gpt-6-luna\",\n \"input\": \"Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\\nCustomer: Sure, it's 4471-2209.\\nAgent: Thanks. And can you confirm the address on the account?\\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\\nCustomer: Okay, that's fine. Thanks for letting me know.\",\n \"questions\": [\n {\n \"type\": \"predicate\",\n \"name\": \"confirmed_account_details\",\n \"instructions\": \"Did the agent ask the caller to confirm their account details?\"\n },\n {\n \"type\": \"choice\",\n \"name\": \"call_outcome\",\n \"instructions\": \"How did the call end?\",\n \"choices\": [\n {\n \"value\": \"resolved\",\n \"description\": \"The issue was fixed or fully answered on the call\"\n },\n {\n \"value\": \"follow_up\",\n \"description\": \"The customer was told the issue will be fixed later\"\n },\n {\n \"value\": \"escalated\",\n \"description\": \"The call was transferred or escalated\"\n }\n ]\n },\n {\n \"type\": \"score\",\n \"name\": \"customer_sentiment\",\n \"instructions\": \"How did the customer feel at the end of the call?\",\n \"levels\": [\n {\n \"label\": \"negative\",\n \"description\": \"Upset or frustrated\"\n },\n {\n \"label\": \"neutral\",\n \"description\": \"Neither upset nor pleased\"\n },\n {\n \"label\": \"positive\",\n \"description\": \"Satisfied or thankful\"\n }\n ]\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://llm-gateway.assemblyai.com/v1/decisions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"gpt-6-luna\",\n \"input\": \"Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\\nCustomer: Sure, it's 4471-2209.\\nAgent: Thanks. And can you confirm the address on the account?\\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\\nCustomer: Okay, that's fine. Thanks for letting me know.\",\n \"questions\": [\n {\n \"type\": \"predicate\",\n \"name\": \"confirmed_account_details\",\n \"instructions\": \"Did the agent ask the caller to confirm their account details?\"\n },\n {\n \"type\": \"choice\",\n \"name\": \"call_outcome\",\n \"instructions\": \"How did the call end?\",\n \"choices\": [\n {\n \"value\": \"resolved\",\n \"description\": \"The issue was fixed or fully answered on the call\"\n },\n {\n \"value\": \"follow_up\",\n \"description\": \"The customer was told the issue will be fixed later\"\n },\n {\n \"value\": \"escalated\",\n \"description\": \"The call was transferred or escalated\"\n }\n ]\n },\n {\n \"type\": \"score\",\n \"name\": \"customer_sentiment\",\n \"instructions\": \"How did the customer feel at the end of the call?\",\n \"levels\": [\n {\n \"label\": \"negative\",\n \"description\": \"Upset or frustrated\"\n },\n {\n \"label\": \"neutral\",\n \"description\": \"Neither upset nor pleased\"\n },\n {\n \"label\": \"positive\",\n \"description\": \"Satisfied or thankful\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body
Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See Decisions for the full guide.
POST
/
decisions
Create a decision
curl --request POST \ --url https://llm-gateway.assemblyai.com/v1/decisions \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data @- <<EOF{ "model": "gpt-6-luna", "input": "Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\nCustomer: Sure, it's 4471-2209.\nAgent: Thanks. And can you confirm the address on the account?\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\nCustomer: Okay, that's fine. Thanks for letting me know.", "questions": [ { "type": "predicate", "name": "confirmed_account_details", "instructions": "Did the agent ask the caller to confirm their account details?" }, { "type": "choice", "name": "call_outcome", "instructions": "How did the call end?", "choices": [ { "value": "resolved", "description": "The issue was fixed or fully answered on the call" }, { "value": "follow_up", "description": "The customer was told the issue will be fixed later" }, { "value": "escalated", "description": "The call was transferred or escalated" } ] }, { "type": "score", "name": "customer_sentiment", "instructions": "How did the customer feel at the end of the call?", "levels": [ { "label": "negative", "description": "Upset or frustrated" }, { "label": "neutral", "description": "Neither upset nor pleased" }, { "label": "positive", "description": "Satisfied or thankful" } ] } ]}EOF
import requests
url = "https://llm-gateway.assemblyai.com/v1/decisions"
payload = {
"model": "gpt-6-luna",
"input": "Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?
Customer: Sure, it's 4471-2209.
Agent: Thanks. And can you confirm the address on the account?
Customer: 18 Harbor Lane. My internet has dropped three times today and I work from home.
Agent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.
Customer: Okay, that's fine. Thanks for letting me know.",
"questions": [
{
"type": "predicate",
"name": "confirmed_account_details",
"instructions": "Did the agent ask the caller to confirm their account details?"
},
{
"type": "choice",
"name": "call_outcome",
"instructions": "How did the call end?",
"choices": [
{
"value": "resolved",
"description": "The issue was fixed or fully answered on the call"
},
{
"value": "follow_up",
"description": "The customer was told the issue will be fixed later"
},
{
"value": "escalated",
"description": "The call was transferred or escalated"
}
]
},
{
"type": "score",
"name": "customer_sentiment",
"instructions": "How did the customer feel at the end of the call?",
"levels": [
{
"label": "negative",
"description": "Upset or frustrated"
},
{
"label": "neutral",
"description": "Neither upset nor pleased"
},
{
"label": "positive",
"description": "Satisfied or thankful"
}
]
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'gpt-6-luna',
input: 'Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\nCustomer: Sure, it\'s 4471-2209.\nAgent: Thanks. And can you confirm the address on the account?\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\nAgent: I\'m sorry about that. There\'s an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\nCustomer: Okay, that\'s fine. Thanks for letting me know.',
questions: [
{
type: 'predicate',
name: 'confirmed_account_details',
instructions: 'Did the agent ask the caller to confirm their account details?'
},
{
type: 'choice',
name: 'call_outcome',
instructions: 'How did the call end?',
choices: [
{
value: 'resolved',
description: 'The issue was fixed or fully answered on the call'
},
{
value: 'follow_up',
description: 'The customer was told the issue will be fixed later'
},
{value: 'escalated', description: 'The call was transferred or escalated'}
]
},
{
type: 'score',
name: 'customer_sentiment',
instructions: 'How did the customer feel at the end of the call?',
levels: [
{label: 'negative', description: 'Upset or frustrated'},
{label: 'neutral', description: 'Neither upset nor pleased'},
{label: 'positive', description: 'Satisfied or thankful'}
]
}
]
})
};
fetch('https://llm-gateway.assemblyai.com/v1/decisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://llm-gateway.assemblyai.com/v1/decisions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'gpt-6-luna',
'input' => 'Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?
Customer: Sure, it\'s 4471-2209.
Agent: Thanks. And can you confirm the address on the account?
Customer: 18 Harbor Lane. My internet has dropped three times today and I work from home.
Agent: I\'m sorry about that. There\'s an outage in your area. A technician is already on it, and it should be fixed by 5 PM.
Customer: Okay, that\'s fine. Thanks for letting me know.',
'questions' => [
[
'type' => 'predicate',
'name' => 'confirmed_account_details',
'instructions' => 'Did the agent ask the caller to confirm their account details?'
],
[
'type' => 'choice',
'name' => 'call_outcome',
'instructions' => 'How did the call end?',
'choices' => [
[
'value' => 'resolved',
'description' => 'The issue was fixed or fully answered on the call'
],
[
'value' => 'follow_up',
'description' => 'The customer was told the issue will be fixed later'
],
[
'value' => 'escalated',
'description' => 'The call was transferred or escalated'
]
]
],
[
'type' => 'score',
'name' => 'customer_sentiment',
'instructions' => 'How did the customer feel at the end of the call?',
'levels' => [
[
'label' => 'negative',
'description' => 'Upset or frustrated'
],
[
'label' => 'neutral',
'description' => 'Neither upset nor pleased'
],
[
'label' => 'positive',
'description' => 'Satisfied or thankful'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://llm-gateway.assemblyai.com/v1/decisions"
payload := strings.NewReader("{\n \"model\": \"gpt-6-luna\",\n \"input\": \"Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\\nCustomer: Sure, it's 4471-2209.\\nAgent: Thanks. And can you confirm the address on the account?\\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\\nCustomer: Okay, that's fine. Thanks for letting me know.\",\n \"questions\": [\n {\n \"type\": \"predicate\",\n \"name\": \"confirmed_account_details\",\n \"instructions\": \"Did the agent ask the caller to confirm their account details?\"\n },\n {\n \"type\": \"choice\",\n \"name\": \"call_outcome\",\n \"instructions\": \"How did the call end?\",\n \"choices\": [\n {\n \"value\": \"resolved\",\n \"description\": \"The issue was fixed or fully answered on the call\"\n },\n {\n \"value\": \"follow_up\",\n \"description\": \"The customer was told the issue will be fixed later\"\n },\n {\n \"value\": \"escalated\",\n \"description\": \"The call was transferred or escalated\"\n }\n ]\n },\n {\n \"type\": \"score\",\n \"name\": \"customer_sentiment\",\n \"instructions\": \"How did the customer feel at the end of the call?\",\n \"levels\": [\n {\n \"label\": \"negative\",\n \"description\": \"Upset or frustrated\"\n },\n {\n \"label\": \"neutral\",\n \"description\": \"Neither upset nor pleased\"\n },\n {\n \"label\": \"positive\",\n \"description\": \"Satisfied or thankful\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://llm-gateway.assemblyai.com/v1/decisions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"gpt-6-luna\",\n \"input\": \"Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\\nCustomer: Sure, it's 4471-2209.\\nAgent: Thanks. And can you confirm the address on the account?\\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\\nCustomer: Okay, that's fine. Thanks for letting me know.\",\n \"questions\": [\n {\n \"type\": \"predicate\",\n \"name\": \"confirmed_account_details\",\n \"instructions\": \"Did the agent ask the caller to confirm their account details?\"\n },\n {\n \"type\": \"choice\",\n \"name\": \"call_outcome\",\n \"instructions\": \"How did the call end?\",\n \"choices\": [\n {\n \"value\": \"resolved\",\n \"description\": \"The issue was fixed or fully answered on the call\"\n },\n {\n \"value\": \"follow_up\",\n \"description\": \"The customer was told the issue will be fixed later\"\n },\n {\n \"value\": \"escalated\",\n \"description\": \"The call was transferred or escalated\"\n }\n ]\n },\n {\n \"type\": \"score\",\n \"name\": \"customer_sentiment\",\n \"instructions\": \"How did the customer feel at the end of the call?\",\n \"levels\": [\n {\n \"label\": \"negative\",\n \"description\": \"Upset or frustrated\"\n },\n {\n \"label\": \"neutral\",\n \"description\": \"Neither upset nor pleased\"\n },\n {\n \"label\": \"positive\",\n \"description\": \"Satisfied or thankful\"\n }\n ]\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://llm-gateway.assemblyai.com/v1/decisions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"gpt-6-luna\",\n \"input\": \"Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\\nCustomer: Sure, it's 4471-2209.\\nAgent: Thanks. And can you confirm the address on the account?\\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\\nCustomer: Okay, that's fine. Thanks for letting me know.\",\n \"questions\": [\n {\n \"type\": \"predicate\",\n \"name\": \"confirmed_account_details\",\n \"instructions\": \"Did the agent ask the caller to confirm their account details?\"\n },\n {\n \"type\": \"choice\",\n \"name\": \"call_outcome\",\n \"instructions\": \"How did the call end?\",\n \"choices\": [\n {\n \"value\": \"resolved\",\n \"description\": \"The issue was fixed or fully answered on the call\"\n },\n {\n \"value\": \"follow_up\",\n \"description\": \"The customer was told the issue will be fixed later\"\n },\n {\n \"value\": \"escalated\",\n \"description\": \"The call was transferred or escalated\"\n }\n ]\n },\n {\n \"type\": \"score\",\n \"name\": \"customer_sentiment\",\n \"instructions\": \"How did the customer feel at the end of the call?\",\n \"levels\": [\n {\n \"label\": \"negative\",\n \"description\": \"Upset or frustrated\"\n },\n {\n \"label\": \"neutral\",\n \"description\": \"Neither upset nor pleased\"\n },\n {\n \"label\": \"positive\",\n \"description\": \"Satisfied or thankful\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"AssemblyAI","description":"AssemblyAI provides production-ready Voice AI models for speech-to-text, speaker detection, sentiment analysis, and more. Build with pre-recorded or streaming audio using REST APIs and WebSockets.","colors":{"primary":"#614fd2","light":"#887bdd","dark":"#614fd2"},"logo":{"light":"https://mintcdn.com/assemblyai-fff14a6f/vMuNaI_PbWUbVeV0/assets/assemblyai-lockup-primary.svg?fit=max\u0026auto=format\u0026n=vMuNaI_PbWUbVeV0\u0026q=85\u0026s=808d2a677e2536423045d44b3f330ac2","dark":"https://mintcdn.com/assemblyai-fff14a6f/vMuNaI_PbWUbVeV0/assets/assemblyai-lockup-secondary.svg?fit=max\u0026auto=format\u0026n=vMuNaI_PbWUbVeV0\u0026q=85\u0026s=065ec1618693f8650241242ec62ed0ad","href":"https://www.assemblyai.com"},"favicon":"https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/favicon.png?fit=max\u0026auto=format\u0026n=6OQYF4QMRVQRoCb1\u0026q=85\u0026s=74b6b6a7321938bd113d4a271e06068d","api":{"openapi":["openapi.yaml","api-reference/specs/llm-gateway.yaml","api-reference/specs/streaming-token.yaml"],"asyncapi":["api-reference/specs/streaming.yaml","api-reference/specs/streaming-tts.yaml"]},"background":{"color":{"light":"#fdfcf8","dark":"#1d1b16"}},"navbar":{"links":[{"href":"https://www.assemblyai.com/playground","label":"Playground"},{"href":"https://www.assemblyai.com/changelog","label":"Changelog"}],"primary":{"type":"button","label":"Sign In","href":"https://www.assemblyai.com/dashboard/login"}},"footer":{"socials":{"x":"https://x.com/AssemblyAI","github":"https://github.com/AssemblyAI","linkedin":"https://www.linkedin.com/company/assemblyai"},"links":[{"header":"Legal","items":[{"label":"Terms of Service","href":"https://www.assemblyai.com/legal/terms-of-service"},{"label":"Privacy Policy","href":"https://www.assemblyai.com/legal/privacy-policy"},{"label":"Trust Center","href":"https://app.vanta.com/assemblyai/trust/7n80syl8zln1bn1qm3x8eg"},{"label":"Subprocessors","href":"https://app.vanta.com/assemblyai/trust/7n80syl8zln1bn1qm3x8eg/subprocessors"},{"label":"Do not sell my Personal Information","href":"#privacy-choices"}]}]},"seo":{"metatags":{"canonical":"https://www.assemblyai.com/docs"}},"fonts":{"heading":{"family":"GT Standard","weight":600,"source":"https://www.assemblyai.com/_aai/fonts/rebrand/GT-Standard-M-Semibold.woff2","format":"woff2"},"body":{"family":"GT Standard","weight":400,"source":"https://www.assemblyai.com/_aai/fonts/rebrand/GT-Standard-M-Regular.woff2","format":"woff2"}},"icons":{"library":"fontawesome"},"banner":{"content":"**New** AssemblyAI-TTS-1: Text-to-speech for voice agents. [Learn more](https://www.assemblyai.com/docs/tts/getting-started/quickstart)","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","download-spec"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"assemblyai-fff14a6f","hasAudioNarration":false,"actualSubdomain":"assemblyai-fff14a6f","customDomains":["assemblyai.com"],"gitSource":{"type":"github","owner":"assemblyai","repo":"assemblyai-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b011db2c8c6952b3aeeff7a","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Overview","count":121},{"language":"default","tag":"FAQ","count":97},{"language":"default","tag":"Pre-recorded STT","count":75},{"language":"default","tag":"Guides","count":60},{"language":"default","tag":"Real-time STT","count":50},{"language":"default","tag":"Tutorials","count":48},{"language":"default","tag":"Pre-recorded audio","count":47},{"language":"default","tag":"LLM Gateway","count":45},{"language":"default","tag":"API reference","count":36},{"language":"default","tag":"Features","count":35}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"attachments":{"status":"DISABLED"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"GT Standard\";src:url(\"https://www.assemblyai.com/_aai/fonts/rebrand/GT-Standard-M-Regular.woff2\")\n format(\"woff2\"),\n url(\"https://www.assemblyai.com/docs/assets/GT-Standard-M-Regular.woff2\")\n format(\"woff2\"),\n url(\"/assets/GT-Standard-M-Regular.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"GT Standard\";src:url(\"https://www.assemblyai.com/_aai/fonts/rebrand/GT-Standard-M-Medium.woff2\")\n format(\"woff2\"),\n url(\"https://www.assemblyai.com/docs/assets/GT-Standard-M-Medium.woff2\")\n format(\"woff2\"),\n url(\"/assets/GT-Standard-M-Medium.woff2\") format(\"woff2\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"GT Standard\";src:url(\"https://www.assemblyai.com/_aai/fonts/rebrand/GT-Standard-M-Semibold.woff2\")\n format(\"woff2\"),\n url(\"https://www.assemblyai.com/docs/assets/GT-Standard-M-Semibold.woff2\")\n format(\"woff2\"),\n url(\"/assets/GT-Standard-M-Semibold.woff2\") format(\"woff2\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"Modern Gothic Mono\";src:url(\"https://www.assemblyai.com/_aai/fonts/rebrand/ModernGothicMono-Light.woff2\")\n format(\"woff2\");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:\"Modern Gothic Mono\";src:url(\"https://www.assemblyai.com/_aai/fonts/rebrand/ModernGothicMono-Regular.woff2\")\n format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"Modern Gothic Mono\";src:url(\"https://www.assemblyai.com/_aai/fonts/rebrand/ModernGothicMono-Medium.woff2\")\n format(\"woff2\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"Modern Gothic Mono\";src:url(\"https://www.assemblyai.com/_aai/fonts/rebrand/ModernGothicMono-Italic.woff2\")\n format(\"woff2\");font-weight:400;font-style:italic;font-display:swap}html:root{--font-family-body-custom: \"GT Standard\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", sans-serif;--font-family-headings-custom: \"GT Standard\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", sans-serif}code,kbd,samp,pre,pre code,pre code span{font-family:\"Modern Gothic Mono\", \"JetBrains Mono\", ui-monospace, SFMono-Regular,\n Menlo, Consolas, monospace!important}html{overflow-y:scroll;scrollbar-gutter:stable}pre,pre code,pre code span{font-size:0.75rem!important;line-height:1.5!important}:not(pre)>code{font-size:0.75rem!important;line-height:inherit!important}[data-nav-tag=\"WSS\"]{color:#614fd2!important;background-color:rgba(136, 123, 221, 0.14)!important;font-size:0.55rem!important}:is(.dark) [data-nav-tag=\"WSS\"]{color:#887bdd!important}div:has(>.nav-tag-pill>[data-nav-tag=\"WSS\"]){order:-1}.nav-tag-pill:has(>[data-nav-tag=\"WSS\"]){width:2.375rem;justify-content:flex-start}.ws-endpoint{display:flex;align-items:center;gap:0.625rem;margin:1rem 0 1.75rem;padding:0.5rem 0.75rem;border:1px solid rgba(0, 0, 0, 0.08);border-radius:0.5rem;background:rgba(0, 0, 0, 0.02);font-size:0.875rem;overflow-x:auto}:is(.dark) .ws-endpoint{border-color:rgba(255, 255, 255, 0.1);background:rgba(255, 255, 255, 0.03)}.ws-endpoint-badge{flex:none;font-weight:700;font-size:0.75rem;letter-spacing:0.02em;color:#614fd2;background:rgba(136, 123, 221, 0.14);padding:0.1875rem 0.5rem;border-radius:0.375rem}:is(.dark) .ws-endpoint-badge{color:#887bdd}.ws-endpoint-url{font-family:ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, monospace;white-space:nowrap}#assistant-entry,:is(.dark) #assistant-entry{background-color:#614fd2!important;filter:none!important}#assistant-entry:hover,:is(.dark) #assistant-entry:hover{background-color:#614fd2!important;opacity:0.9;filter:none!important}#assistant-entry span,#assistant-entry svg,:is(.dark) #assistant-entry span,:is(.dark) #assistant-entry svg{color:#ffffff!important}.callout strong{font-weight:700}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-o-font-smoothing:antialiased}.katex-display{overflow-x:visible!important;overflow-y:visible!important}.katex-display>.katex{display:flex!important;justify-content:center;width:100%!important;overflow-x:visible!important;overflow-y:visible!important}.katex-display>.katex>.katex-html{display:inline-block!important;width:auto!important;max-width:100%;overflow-x:visible!important;overflow-y:visible!important}.card-logo-icon{display:block;width:1.5rem!important;height:1.5rem!important;min-width:1.5rem;max-width:1.5rem;max-height:1.5rem;margin:0!important;object-fit:contain;object-position:center;vertical-align:middle}.card-logo-icon-livekit{transform:scale(0.9)}.card-logo-icon-pipecat{transform:scale(1.12)}.card-logo-icon-livekit,.card-logo-icon-pipecat,.card-logo-icon-vercel{color:#614fd2}:is(.dark) .card-logo-icon-livekit,:is(.dark) .card-logo-icon-pipecat,:is(.dark) .card-logo-icon-vercel{color:#887bdd}.recommended-pill{background:#614fd2;color:#fff;padding:2px 8px;border-radius:9999px;font-size:0.7rem;font-weight:600;margin-left:6px;vertical-align:middle;white-space:nowrap}:is(.dark) .recommended-pill{background:#614fd2}.preview-pill{background:#b45309;color:#fff;padding:2px 8px;border-radius:9999px;font-size:0.7rem;font-weight:600;margin-left:6px;vertical-align:middle;white-space:nowrap}:is(.dark) .preview-pill{background:#b45309}table code{white-space:nowrap}"}]}
{"page":{"pagePath":"llm-gateway/api-reference/create-decision","slug":"/llm-gateway/api-reference/create-decision","pageMetadata":{"title":"Create a decision","og.description":"Answer typed questions about an input with LLM Gateway.","openapi":"api-reference/specs/llm-gateway.yaml POST /decisions","description":"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See [Decisions](https://www.assemblyai.com/docs/llm-gateway/decisions) for the full guide.","href":"/llm-gateway/api-reference/create-decision"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See \", _jsx(_components.a, {\n href: \"https://www.assemblyai.com/docs/llm-gateway/decisions\",\n children: \"Decisions\"\n }), \" for the full guide.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a decision","og.description":"Answer typed questions about an input with LLM Gateway.","openapi":"api-reference/specs/llm-gateway.yaml POST /decisions","description":"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See [Decisions](https://www.assemblyai.com/docs/llm-gateway/decisions) for the full guide.","href":"/llm-gateway/api-reference/create-decision"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/assemblyai-fff14a6f/c705301dcef66bf6/rudderstack.js","/docs/_mintlify/custom/assemblyai-fff14a6f/700d2574de973df9/chat-widget.js","/docs/_mintlify/custom/assemblyai-fff14a6f/33c4022d4e30e01c/ketch.js"],"openApiReferenceData":{"operation":{"x-fern-sdk-group-name":"LLM Gateway","x-fern-display-name":"Create a decision","summary":"Create a decision","description":"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See [Decisions](https://www.assemblyai.com/docs/llm-gateway/decisions) for the full guide.","operationId":"createDecision","requestBody":"98af49b7-1131-475c-972e-5326984c0c7d","responses":{"200":"64c4cf31-febd-4ae7-bc7e-57f471fc6a91","400":"cd56a5e0-5cbd-4906-a653-4f1a351af142","default":"a4db2e91-d180-4993-9429-6e397dc85ea7"},"method":"post","type":"path","servers":["12062d34-e3c2-48db-89b8-5005713a7903"],"security":["713eed42-16dc-4e8d-ab60-8578424f8bbc"],"path":"/decisions","baseUrlOptions":["https://llm-gateway.assemblyai.com/v1"],"title":"Create a decision","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"The request body for the decisions endpoint. Unknown fields are rejected.","properties":{"model":{"type":"string","enum":["gpt-6-luna","jev-1.13.0"],"description":"The model to use. `jev-1.13.0` requires accepting the Jev opt-in on the [Data Controls](https://www.assemblyai.com/dashboard/settings/data-controls) page.","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"input":{"oneOf":[{"type":"string","description":"The evidence every question is asked about. A string, or an array of user messages made of `input_text` parts.","isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"input.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The evidence every question is asked about. A string, or an array of user messages made of `input_text` parts.","isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input","typeLabel":"string | object[]"},"questions":{"type":"array","minItems":1,"maxItems":400,"items":{"type":"object","properties":{"type":{"type":"string","enum":["predicate","choice","score"],"description":"`predicate` asks whether something is true, `choice` picks one of `choices`, and `score` places the input on the scale given by `levels`.","isRequired":true,"uniqueKey":"questions.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"A name for the question, unique within the request. The answer carries the same name.","isRequired":true,"uniqueKey":"questions.items.[INDEX].name","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","description":"The question. A string, or an array of `input_text` parts (and `input_image` parts on `gpt-6-luna`).","isRequired":true,"uniqueKey":"questions.items.[INDEX].instructions.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"questions.items.[INDEX].instructions.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The question. A string, or an array of `input_text` parts (and `input_image` parts on `gpt-6-luna`).","isRequired":true,"uniqueKey":"questions.items.[INDEX].instructions.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"questions.items.[INDEX].instructions","typeLabel":"string | object[]"},"choices":{"type":"array","minItems":2,"items":{"type":"object","properties":{"value":{"type":"string","description":"The value returned when this option is chosen.","isRequired":true,"uniqueKey":"questions.items.[INDEX].choices.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","description":"What this option means.","uniqueKey":"questions.items.[INDEX].choices.items.[INDEX].description","typeLabel":"string"}},"required":["value"],"uniqueKey":"questions.items.[INDEX].choices.items.[INDEX]","typeLabel":"object"},"description":"Required for `choice` questions, and not allowed for other types. Values must be unique.","uniqueKey":"questions.items.[INDEX].choices","typeLabel":"object[]"},"levels":{"type":"array","minItems":2,"maxItems":10,"items":{"type":"object","properties":{"label":{"type":"string","description":"The level's name.","isRequired":true,"uniqueKey":"questions.items.[INDEX].levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","description":"What this level means.","uniqueKey":"questions.items.[INDEX].levels.items.[INDEX].description","typeLabel":"string"}},"required":["label"],"uniqueKey":"questions.items.[INDEX].levels.items.[INDEX]","typeLabel":"object"},"description":"Required for `score` questions, and not allowed for other types. Ordered from lowest to highest.","uniqueKey":"questions.items.[INDEX].levels","typeLabel":"object[]"}},"required":["type","name","instructions"],"uniqueKey":"questions.items.[INDEX]","typeLabel":"object"},"description":"The questions to answer. Names must be unique.","isRequired":true,"uniqueKey":"questions","typeLabel":"object[]"},"model_region":{"type":"string","enum":["global"],"description":"Optional. Set to `global` for global routing. Supported on `gpt-6-luna` only.","uniqueKey":"model_region","typeLabel":"enum\u003cstring>"},"prompt_cache_key":{"type":"string","description":"Optional. Requests with the same key share a prompt cache.","uniqueKey":"prompt_cache_key","typeLabel":"string"},"fallbacks":{"type":"array","items":{"type":"object","description":"A fallback for a decisions request. `input` and `questions` are inherited from the main request when omitted. Nested fallbacks aren't supported.","properties":{"model":{"type":"string","enum":["gpt-6-luna","jev-1.13.0"],"isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].model","typeLabel":"enum\u003cstring>"},"input":{"oneOf":[{"type":"string","description":"Overrides the main request's `input`.","uniqueKey":"fallbacks.items.[INDEX].input.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"fallbacks.items.[INDEX].input.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Overrides the main request's `input`.","uniqueKey":"fallbacks.items.[INDEX].input.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"fallbacks.items.[INDEX].input","typeLabel":"string | object[]"},"questions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["predicate","choice","score"],"description":"`predicate` asks whether something is true, `choice` picks one of `choices`, and `score` places the input on the scale given by `levels`.","isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"A name for the question, unique within the request. The answer carries the same name.","isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].name","typeLabel":"string"},"instructions":{"oneOf":[{"type":"string","description":"The question. A string, or an array of `input_text` parts (and `input_image` parts on `gpt-6-luna`).","isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].instructions.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].instructions.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The question. A string, or an array of `input_text` parts (and `input_image` parts on `gpt-6-luna`).","isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].instructions.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].instructions","typeLabel":"string | object[]"},"choices":{"type":"array","minItems":2,"items":{"type":"object","properties":{"value":{"type":"string","description":"The value returned when this option is chosen.","isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].choices.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","description":"What this option means.","uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].choices.items.[INDEX].description","typeLabel":"string"}},"required":["value"],"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].choices.items.[INDEX]","typeLabel":"object"},"description":"Required for `choice` questions, and not allowed for other types. Values must be unique.","uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].choices","typeLabel":"object[]"},"levels":{"type":"array","minItems":2,"maxItems":10,"items":{"type":"object","properties":{"label":{"type":"string","description":"The level's name.","isRequired":true,"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","description":"What this level means.","uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].levels.items.[INDEX].description","typeLabel":"string"}},"required":["label"],"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].levels.items.[INDEX]","typeLabel":"object"},"description":"Required for `score` questions, and not allowed for other types. Ordered from lowest to highest.","uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX].levels","typeLabel":"object[]"}},"required":["type","name","instructions"],"uniqueKey":"fallbacks.items.[INDEX].questions.items.[INDEX]","typeLabel":"object"},"description":"Overrides the main request's `questions`.","uniqueKey":"fallbacks.items.[INDEX].questions","typeLabel":"object[]"},"model_region":{"type":"string","enum":["global"],"description":"Overrides the main request's `model_region`.","uniqueKey":"fallbacks.items.[INDEX].model_region","typeLabel":"enum\u003cstring>"}},"required":["model"],"uniqueKey":"fallbacks.items.[INDEX]","typeLabel":"object"},"description":"Models to try in order if the main request fails. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback).","uniqueKey":"fallbacks","typeLabel":"object[]"},"fallback_config":{"type":"object","description":"Configuration for fallback behavior. See [Specify fallback models](https://www.assemblyai.com/docs/llm-gateway/fallback) for more details.","properties":{"retry":{"type":"boolean","default":true,"description":"Whether to automatically retry the request once after 500ms on failure. Defaults to `true`.","uniqueKey":"fallback_config.retry","typeLabel":"boolean"},"depth":{"type":"integer","minimum":1,"maximum":2,"default":1,"description":"The maximum number of fallbacks to traverse. Defaults to `1`, with a maximum of `2`.","uniqueKey":"fallback_config.depth","typeLabel":"integer"}},"uniqueKey":"fallback_config","typeLabel":"object"}},"required":["model","input","questions"],"uniqueKey":"","typeLabel":"object"},"examples":{"decision_example":{"title":"decision_example","summary":"Check a support call","value":{"model":"gpt-6-luna","input":"Agent: Thanks for calling Northwind Internet, this is Priya. Can I get your account number?\nCustomer: Sure, it's 4471-2209.\nAgent: Thanks. And can you confirm the address on the account?\nCustomer: 18 Harbor Lane. My internet has dropped three times today and I work from home.\nAgent: I'm sorry about that. There's an outage in your area. A technician is already on it, and it should be fixed by 5 PM.\nCustomer: Okay, that's fine. Thanks for letting me know.","questions":[{"type":"predicate","name":"confirmed_account_details","instructions":"Did the agent ask the caller to confirm their account details?"},{"type":"choice","name":"call_outcome","instructions":"How did the call end?","choices":[{"value":"resolved","description":"The issue was fixed or fully answered on the call"},{"value":"follow_up","description":"The customer was told the issue will be fixed later"},{"value":"escalated","description":"The call was transferred or escalated"}]},{"type":"score","name":"customer_sentiment","instructions":"How did the customer feel at the end of the call?","levels":[{"label":"negative","description":"Upset or frustrated"},{"label":"neutral","description":"Neither upset nor pleased"},{"label":"positive","description":"Satisfied or thankful"}]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"64c4cf31-febd-4ae7-bc7e-57f471fc6a91":{"description":"One answer per question, in request order.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"model":{"type":"string","description":"The model that answered.","uniqueKey":"model","typeLabel":"string"},"answers":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["predicate","choice","score"],"uniqueKey":"answers.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"The question's name.","uniqueKey":"answers.items.[INDEX].name","typeLabel":"string"},"probability":{"type":"number","description":"`predicate` only. The probability that the statement is true.","uniqueKey":"answers.items.[INDEX].probability","typeLabel":"number"},"choice":{"type":"string","description":"`choice` only. The most likely option's value.","uniqueKey":"answers.items.[INDEX].choice","typeLabel":"string"},"score":{"type":"number","description":"`score` only. The expected level index, weighted by probability.","uniqueKey":"answers.items.[INDEX].score","typeLabel":"number"},"probabilities":{"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"string","description":"The option's value for `choice` questions, or the level's index for `score` questions.","uniqueKey":"answers.items.[INDEX].probabilities.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"integer","description":"The option's value for `choice` questions, or the level's index for `score` questions.","uniqueKey":"answers.items.[INDEX].probabilities.items.[INDEX].value.oneOf.1","typeLabel":"integer"}],"uniqueKey":"answers.items.[INDEX].probabilities.items.[INDEX].value","typeLabel":"string | integer"},"label":{"type":"string","description":"`score` only. The level's label.","uniqueKey":"answers.items.[INDEX].probabilities.items.[INDEX].label","typeLabel":"string"},"probability":{"type":"number","uniqueKey":"answers.items.[INDEX].probabilities.items.[INDEX].probability","typeLabel":"number"}},"uniqueKey":"answers.items.[INDEX].probabilities.items.[INDEX]","typeLabel":"object"},"description":"`choice` and `score` only. The probability of each option or level, in request order.","uniqueKey":"answers.items.[INDEX].probabilities","typeLabel":"object[]"},"confidence":{"type":"number","description":"`choice` and `score` only. How concentrated the probabilities are, from 0 to 1.","uniqueKey":"answers.items.[INDEX].confidence","typeLabel":"number"}},"uniqueKey":"answers.items.[INDEX]","typeLabel":"object"},"description":"One answer per question, in request order.","uniqueKey":"answers","typeLabel":"object[]"},"usage":{"type":"object","properties":{"input_tokens":{"type":"integer","uniqueKey":"usage.input_tokens","typeLabel":"integer"},"input_tokens_details":{"type":"object","properties":{"cached_tokens":{"type":"integer","uniqueKey":"usage.input_tokens_details.cached_tokens","typeLabel":"integer"},"cache_write_tokens":{"type":"integer","uniqueKey":"usage.input_tokens_details.cache_write_tokens","typeLabel":"integer"}},"uniqueKey":"usage.input_tokens_details","typeLabel":"object"},"output_tokens":{"type":"integer","uniqueKey":"usage.output_tokens","typeLabel":"integer"},"output_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"integer","uniqueKey":"usage.output_tokens_details.reasoning_tokens","typeLabel":"integer"}},"uniqueKey":"usage.output_tokens_details","typeLabel":"object"},"total_tokens":{"type":"integer","uniqueKey":"usage.total_tokens","typeLabel":"integer"}},"uniqueKey":"usage","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","model":"\u003cstring>","answers":[{"type":"predicate","name":"\u003cstring>","probability":123,"choice":"\u003cstring>","score":123,"probabilities":[{"value":"\u003cstring>","label":"\u003cstring>","probability":123}],"confidence":123}],"usage":{"input_tokens":123,"input_tokens_details":{"cached_tokens":123,"cache_write_tokens":123},"output_tokens":123,"output_tokens_details":{"reasoning_tokens":123},"total_tokens":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"cd56a5e0-5cbd-4906-a653-4f1a351af142":{"description":"The request is invalid, or the model's provider needs an opt-in your account hasn't accepted. `metadata.errors` lists each problem.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code for the error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer\u003cint32>"},"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"metadata":{"type":"object","description":"Optional. Present on 400 responses with per-field validation details.","properties":{"errors":{"type":"array","items":{"type":"string","uniqueKey":"metadata.errors.items.[INDEX]","typeLabel":"string"},"description":"List of specific validation failure messages.","uniqueKey":"metadata.errors","typeLabel":"string[]"}},"uniqueKey":"metadata","typeLabel":"object"}},"required":["code","message","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","metadata":{"errors":["\u003cstring>"]}}}},"exampleType":"generated"}},"exampleType":"generated"},"a4db2e91-d180-4993-9429-6e397dc85ea7":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code for the error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer\u003cint32>"},"message":{"type":"string","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"},"metadata":{"type":"object","description":"Optional. Present on 400 responses with per-field validation details.","properties":{"errors":{"type":"array","items":{"type":"string","uniqueKey":"metadata.errors.items.[INDEX]","typeLabel":"string"},"description":"List of specific validation failure messages.","uniqueKey":"metadata.errors","typeLabel":"string[]"}},"uniqueKey":"metadata","typeLabel":"object"}},"required":["code","message","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","metadata":{"errors":["\u003cstring>"]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"713eed42-16dc-4e8d-ab60-8578424f8bbc":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","scopes":[],"schemeName":"ApiKey"}}},"servers":{"12062d34-e3c2-48db-89b8-5005713a7903":{"url":"https://llm-gateway.assemblyai.com/v1","description":"Production Server","x-fern-server-name":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"Authorization","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"Authorization"}],"title":"ApiKey"}]},"originalFileLocation":"api-reference/specs/llm-gateway.yaml"},"subdomain":"assemblyai-fff14a6f","siteName":"AssemblyAI","title":"Create a decision - AssemblyAI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T22:39:05.699Z","originalFileLocation":"llm-gateway/api-reference/create-decision.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See Decisions for the full guide.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AssemblyAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a decision - AssemblyAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See Decisions for the full guide.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AssemblyAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://assemblyai-fff14a6f.mintlify.site/docs/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Create+a+decision\u0026amp;description=Answers+a+list+of+typed+questions+about+one+input.+Each+answer+carries+a+probability+instead+of+generated+text.+Available+on+the+US+server+only.+See+%5BDecisions%5D\u0026amp;theme=7f291be5810d1f7c5136ed41\u0026amp;signature=5abb3cc76c0b0b403f880826c51fa60de77d35f443b69b85503eefd844206f2b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a decision - AssemblyAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See Decisions for the full guide.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://assemblyai-fff14a6f.mintlify.site/docs/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Create+a+decision\u0026amp;description=Answers+a+list+of+typed+questions+about+one+input.+Each+answer+carries+a+probability+instead+of+generated+text.+Available+on+the+US+server+only.+See+%5BDecisions%5D\u0026amp;theme=7f291be5810d1f7c5136ed41\u0026amp;signature=5abb3cc76c0b0b403f880826c51fa60de77d35f443b69b85503eefd844206f2b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/assemblyai-fff14a6f/IP3FX8MjuVkHah_W/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AssemblyAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#614fd2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/llm-gateway/api-reference/create-decision.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.assemblyai.com/#organization\",\"name\":\"AssemblyAI\",\"url\":\"https://www.assemblyai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/assemblyai-fff14a6f/vMuNaI_PbWUbVeV0/assets/assemblyai-lockup-primary.svg?fit=max\u0026auto=format\u0026n=vMuNaI_PbWUbVeV0\u0026q=85\u0026s=808d2a677e2536423045d44b3f330ac2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.assemblyai.com/docs#website\",\"name\":\"AssemblyAI\",\"url\":\"https://www.assemblyai.com/docs\",\"publisher\":{\"@id\":\"https://www.assemblyai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision#webpage\",\"url\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision\",\"name\":\"Create a decision\",\"description\":\"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See Decisions for the full guide.\",\"dateModified\":\"2026-11-02T22:39:05.699Z\",\"isPartOf\":{\"@id\":\"https://www.assemblyai.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-chat-completion\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a decision\",\"item\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision#apireference\",\"headline\":\"Create a decision\",\"name\":\"Create a decision\",\"description\":\"Answers a list of typed questions about one input. Each answer carries a probability instead of generated text. Available on the US server only. See Decisions for the full guide.\",\"url\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision\",\"mainEntityOfPage\":{\"@id\":\"https://www.assemblyai.com/docs/llm-gateway/api-reference/create-decision#webpage\"},\"dateModified\":\"2026-11-02T22:39:05.699Z\",\"publisher\":{\"@id\":\"https://www.assemblyai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.assemblyai.com/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/llm-gateway/api-reference/create-decision.md","siteName":"AssemblyAI","nav":{"global":null,"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"Pre-recorded STT","pages":[{"title":"Pre-recorded STT","href":"/pre-recorded-audio/getting-started/transcribe-an-audio-file"}]},{"tab":"Real-time STT","pages":[{"title":"Real-time STT","href":"/streaming/getting-started/transcribe-streaming-audio"}]},{"tab":"Sync STT","pages":[{"title":"Sync STT","href":"/sync-stt/getting-started/quickstart"}]},{"tab":"Dictation API","pages":[{"title":"Dictation API","href":"/dictation"}]},{"tab":"Text to Speech","pages":[{"title":"Text to Speech","href":"/tts/getting-started/quickstart"}]},{"tab":"Voice Agent API","hidden":true,"pages":[{"title":"Voice Agent API","href":"/voice-agents/voice-agent-api"}]},{"tab":"Speech Understanding","pages":[{"title":"Speech Understanding","href":"/speech-understanding/getting-started"}]},{"tab":"LLM Gateway","groups":[{"group":"Getting started","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/llm-gateway/quickstart"},{"title":"Model Catalog","url":"https://www.assemblyai.com/products/llm-gateway/models","href":"/nav-links/llm-gateway-models"},{"title":"Choose a model","sidebarTitle":"Choose a model","href":"/llm-gateway/choose-a-model"},{"title":"Providers","sidebarTitle":"Providers","href":"/llm-gateway/providers"}]},{"group":"Gateway features","pages":[{"title":"Model Fallbacks","sidebarTitle":"Model Fallbacks","href":"/llm-gateway/fallback"},{"title":"Circuit breaker","sidebarTitle":"Circuit breaker","href":"/llm-gateway/circuit-breaker"},{"title":"Prompt Caching","sidebarTitle":"Prompt caching","href":"/llm-gateway/prompt-caching"},{"title":"Cloud Endpoints and Data Residency","sidebarTitle":"Cloud endpoints \u0026 data residency","href":"/llm-gateway/cloud-endpoints-and-data-residency"},{"title":"Manage rate limits","sidebarTitle":"Manage rate limits","href":"/llm-gateway/rate-limits"},{"title":"Improve Latency","sidebarTitle":"Improve Latency","href":"/llm-gateway/improve-latency"},{"title":"Troubleshooting","href":"/llm-gateway/troubleshooting"}]},{"group":"Chat completions","pages":[{"title":"Basic Chat Completions","sidebarTitle":"Basic chat completions","href":"/llm-gateway/chat-completions"},{"title":"Multi-turn Conversations","sidebarTitle":"Multi-turn conversations","href":"/llm-gateway/conversations"},{"title":"Tool Calling","sidebarTitle":"Tool Calling","href":"/llm-gateway/tool-calling"},{"title":"Structured Outputs","sidebarTitle":"Structured Outputs","href":"/llm-gateway/structured-outputs"},{"title":"Agentic Workflows","sidebarTitle":"Build agentic workflows","href":"/llm-gateway/agentic-workflows"},{"title":"Saved prompts and prompt templates","sidebarTitle":"Saved prompts and prompt templates","href":"/llm-gateway/saved-prompts"},{"title":"Prompt Engineering for LLM Gateway","sidebarTitle":"Prompt engineering","href":"/llm-gateway/prompt-engineering"},{"title":"Ask Questions About Your Audio Transcripts","sidebarTitle":"Ask questions about your audio data","href":"/llm-gateway/ask-questions"}]},{"group":"Decisions","pages":[{"title":"Decisions","sidebarTitle":"Decisions","href":"/llm-gateway/decisions"}]},{"group":"API reference","pages":[{"title":"Create a chat completion","openapi":"api-reference/specs/llm-gateway.yaml POST /chat/completions","href":"/llm-gateway/api-reference/create-chat-completion"},{"title":"Create speech understanding","openapi":"api-reference/specs/llm-gateway.yaml POST /understanding","href":"/llm-gateway/api-reference/create-speech-understanding"},{"title":"List available models","openapi":"api-reference/specs/llm-gateway.yaml GET /models","href":"/llm-gateway/api-reference/list-available-models"},{"title":"Create a saved prompt","openapi":"api-reference/specs/llm-gateway.yaml POST /prompts","href":"/llm-gateway/api-reference/create-saved-prompt"},{"title":"Get a saved prompt","openapi":"api-reference/specs/llm-gateway.yaml GET /prompts/{name}","href":"/llm-gateway/api-reference/get-saved-prompt"},{"title":"Update a saved prompt","openapi":"api-reference/specs/llm-gateway.yaml PUT /prompts/{name}","href":"/llm-gateway/api-reference/update-saved-prompt"},{"title":"Delete a saved prompt","openapi":"api-reference/specs/llm-gateway.yaml DELETE /prompts/{name}","description":"\n\n\u003cNote>To use our EU server for LLM Gateway, replace `llm-gateway.assemblyai.com` with `llm-gateway.eu.assemblyai.com`.\u003c/Note>\n\nDeletes one of your account's saved prompts.","href":"/llm-gateway/api-reference/delete-saved-prompt"},{"title":"Create a decision","openapi":"api-reference/specs/llm-gateway.yaml POST /decisions","href":"/llm-gateway/api-reference/create-decision"}]},{"group":"Voice AI Guides","pages":[{"title":"Apply LLM Gateway to Audio Transcripts","description":"Learn how to analyze audio transcripts using LLM Gateway.","sidebarTitle":"Apply LLM Gateway to pre-recorded audio","href":"/llm-gateway/apply-llms-to-audio-files"},{"group":"Basic LLM Gateway workflows","pages":[{"title":"Setup An AI Coach With LLM Gateway","href":"/guides/task-endpoint-ai-coach"},{"title":"Generate Action Items with LLM Gateway","href":"/guides/task-endpoint-action-items"},{"title":"Prompt A Structured Q\u0026A Response Using LLM Gateway","href":"/guides/task-endpoint-structured-QA"},{"title":"Estimate Input Token Costs for LLM Gateway","href":"/guides/counting-tokens"}]},{"group":"Get quotes and citations with LLM Gateway","pages":[{"title":"Extract Dialogue Data with LLM Gateway and JSON","href":"/guides/dialogue-data"},{"title":"Extract Quotes with Timestamps Using LLM Gateway + Semantic Search","href":"/guides/transcript-citations"},{"title":"Extract Transcript Quotes with LLM Gateway","href":"/guides/timestamped-transcripts"}]},{"group":"Substitute Speech Understanding with LLM Gateway","pages":[{"title":"Analyze The Sentiment Of A Customer Call using LLM Gateway","href":"/guides/call-sentiment-analysis"},{"title":"Custom Topic Tags Using LLM Gateway","sidebarTitle":"Custom Topic Tags","href":"/guides/custom-topic-tags"},{"title":"Redact PII from Text Using LLM Gateway","href":"/guides/llm-gateway-pii-redaction"}]},{"group":"Streaming with LLM Gateway","pages":[{"title":"Apply LLM Gateway to Streaming","sidebarTitle":"Apply LLM Gateway to streaming audio","href":"/guides/real_time_llm_gateway"},{"title":"Translate Real-time STT Transcripts with LLM Gateway","href":"/guides/real_time_translation"}]},{"group":"Use-case specific LLM Gateway workflows","pages":[{"title":"Implement a Sales Playbook Using LLM Gateway","href":"/guides/sales-playbook"},{"title":"Segment A Phone Call using LLM Gateway","href":"/guides/phone-call-segmentation"},{"title":"Generate SOAP Notes using LLM Gateway","href":"/guides/soap-note-generation"}]}]}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq"}]}]},"basePath":"","title":"Create a decision - AssemblyAI","deploymentId":"dpl_B1qJC7o4Nbc1BrDLB8Y5TDHq3c2t","buildId":"dpl_B1qJC7o4Nbc1BrDLB8Y5TDHq3c2t","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-8Mh6Z8I6.js","dist-D0qiytnz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CUHhyXy2.js","snippetPresets-CLZ6zHrE.js","utils-YgZO0660.js","style-to-object-BY3JEAdk.js","utils-BfGpunL-.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-nXeJG4mW.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CfiGwWS2.js","_Uint8Array-DMwpGz7v.js","isObject-FP1Yky1u.js","ApiExamples-ClwIRLsI.js","usePlaygroundInputsStore-D3zE52Kn.js","shallow-D4RQzCAp.js","isEqual-Ba6nq9eA.js","CodeSnippets-DK9iv102.js","CodeSnippet-CD0M-PIN.js","getApiPlaygroundDisplay-MZpK72mj.js","Page-wRPqmnTs.js","DynamicMarkdown-B4E-vXj3.js","SectionHeading-Cd1Hebqh.js","icon-CopWpdT0.js","MethodPill-DHN7T7vW.js","getPastedJson-BuLRhr5B.js","Check2Icon-DTvkZOnk.js","axios-CsQoIw0U.js","Markdown-BZDfk3ee.js","AssistantPageLink-CXXpl6Pb.js"]}