Voiceflow bearer token
Create evaluation
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/evaluation \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"type": "boolean",
"truePrompt": "<string>",
"falsePrompt": "<string>",
"name": "<string>",
"prompt": "<string>",
"enabled": true,
"description": "<string>"
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/evaluation?projectID=<projectID>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"type": "boolean",
"truePrompt": "<string>",
"falsePrompt": "<string>",
"name": "<string>",
"prompt": "<string>",
"enabled": true,
"description": "<string>"
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/evaluation?projectID=<projectID>',
headers={'Authorization': 'Bearer <token>'},
json={
"type": "boolean",
"truePrompt": "<string>",
"falsePrompt": "<string>",
"name": "<string>",
"prompt": "<string>",
"enabled": True,
"description": "<string>"
},
)
data = response.json()vf evaluation create --project-id <projectID> \
< body.json{
"evaluation": {
"id": "<string>",
"name": "<string>",
"prompt": "<string>",
"default": true,
"enabled": true,
"projectID": "<string>",
"settings": "<AgentSettings>",
"averageCost": 0,
"description": "<string>"
}
}Create evaluation
Adds a evaluation to the project, a criterion a model scores past conversations against. The response carries the ID that later calls address it by.
POST
/v1/stable/evaluation
Create evaluation
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/evaluation \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"type": "boolean",
"truePrompt": "<string>",
"falsePrompt": "<string>",
"name": "<string>",
"prompt": "<string>",
"enabled": true,
"description": "<string>"
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/evaluation?projectID=<projectID>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"type": "boolean",
"truePrompt": "<string>",
"falsePrompt": "<string>",
"name": "<string>",
"prompt": "<string>",
"enabled": true,
"description": "<string>"
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/evaluation?projectID=<projectID>',
headers={'Authorization': 'Bearer <token>'},
json={
"type": "boolean",
"truePrompt": "<string>",
"falsePrompt": "<string>",
"name": "<string>",
"prompt": "<string>",
"enabled": True,
"description": "<string>"
},
)
data = response.json()vf evaluation create --project-id <projectID> \
< body.json{
"evaluation": {
"id": "<string>",
"name": "<string>",
"prompt": "<string>",
"default": true,
"enabled": true,
"projectID": "<string>",
"settings": "<AgentSettings>",
"averageCost": 0,
"description": "<string>"
}
}Authorizations
Body
Show child attributes
Option 1
Show child attributes
Option 2
Show child attributes
Option 3
Show child attributes
Option 4
Show child attributes
Show child attributes
Response
201 - application/jsonCreates the evaluation and returns it with its assigned id. No transcript is scored yet: results come from running it against a transcript, or automatically on new transcripts when enabled is true.
Show child attributes
Was this page helpful?
Thanks for your feedback.