curl --request POST \
--url https://api.goyappr.com/agent-eval/personas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Frustrated tenant",
"identity_prompt": "<string>",
"description": "<string>",
"behavior_traits": {},
"language": "en",
"voice_config": {}
}
'import requests
url = "https://api.goyappr.com/agent-eval/personas"
payload = {
"name": "Frustrated tenant",
"identity_prompt": "<string>",
"description": "<string>",
"behavior_traits": {},
"language": "en",
"voice_config": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Frustrated tenant',
identity_prompt: '<string>',
description: '<string>',
behavior_traits: {},
language: 'en',
voice_config: {}
})
};
fetch('https://api.goyappr.com/agent-eval/personas', 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://api.goyappr.com/agent-eval/personas",
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([
'name' => 'Frustrated tenant',
'identity_prompt' => '<string>',
'description' => '<string>',
'behavior_traits' => [
],
'language' => 'en',
'voice_config' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.goyappr.com/agent-eval/personas"
payload := strings.NewReader("{\n \"name\": \"Frustrated tenant\",\n \"identity_prompt\": \"<string>\",\n \"description\": \"<string>\",\n \"behavior_traits\": {},\n \"language\": \"en\",\n \"voice_config\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.goyappr.com/agent-eval/personas")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Frustrated tenant\",\n \"identity_prompt\": \"<string>\",\n \"description\": \"<string>\",\n \"behavior_traits\": {},\n \"language\": \"en\",\n \"voice_config\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agent-eval/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Frustrated tenant\",\n \"identity_prompt\": \"<string>\",\n \"description\": \"<string>\",\n \"behavior_traits\": {},\n \"language\": \"en\",\n \"voice_config\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Frustrated tenant",
"identity_prompt": "You are a 38-year-old tenant calling about a leaking pipe in your kitchen. You're frustrated because this is the third time you've reported it.",
"language": "en",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"behavior_traits": {
"patience": "low",
"verbosity": "chatty",
"cooperation": "cooperative",
"interruption_tendency": "occasional",
"goal": "Get a maintenance technician scheduled today"
},
"voice_config": {},
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Create Persona
Required scope: agent_eval:create.
Tips for designing a useful persona:
- Lead the
identity_promptwith the persona’s role and what brought them to the call. - Put behaviour knobs (patience, cooperation, verbosity) in
behavior_traits, not in the prompt — that way you can reuse one identity across friendly + adversarial variants. - Keep the prompt under ~120 words. Long prompts make the persona LLM rigid.
curl --request POST \
--url https://api.goyappr.com/agent-eval/personas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Frustrated tenant",
"identity_prompt": "<string>",
"description": "<string>",
"behavior_traits": {},
"language": "en",
"voice_config": {}
}
'import requests
url = "https://api.goyappr.com/agent-eval/personas"
payload = {
"name": "Frustrated tenant",
"identity_prompt": "<string>",
"description": "<string>",
"behavior_traits": {},
"language": "en",
"voice_config": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Frustrated tenant',
identity_prompt: '<string>',
description: '<string>',
behavior_traits: {},
language: 'en',
voice_config: {}
})
};
fetch('https://api.goyappr.com/agent-eval/personas', 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://api.goyappr.com/agent-eval/personas",
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([
'name' => 'Frustrated tenant',
'identity_prompt' => '<string>',
'description' => '<string>',
'behavior_traits' => [
],
'language' => 'en',
'voice_config' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.goyappr.com/agent-eval/personas"
payload := strings.NewReader("{\n \"name\": \"Frustrated tenant\",\n \"identity_prompt\": \"<string>\",\n \"description\": \"<string>\",\n \"behavior_traits\": {},\n \"language\": \"en\",\n \"voice_config\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.goyappr.com/agent-eval/personas")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Frustrated tenant\",\n \"identity_prompt\": \"<string>\",\n \"description\": \"<string>\",\n \"behavior_traits\": {},\n \"language\": \"en\",\n \"voice_config\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agent-eval/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Frustrated tenant\",\n \"identity_prompt\": \"<string>\",\n \"description\": \"<string>\",\n \"behavior_traits\": {},\n \"language\": \"en\",\n \"voice_config\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Frustrated tenant",
"identity_prompt": "You are a 38-year-old tenant calling about a leaking pipe in your kitchen. You're frustrated because this is the third time you've reported it.",
"language": "en",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"behavior_traits": {
"patience": "low",
"verbosity": "chatty",
"cooperation": "cooperative",
"interruption_tendency": "occasional",
"goal": "Get a maintenance technician scheduled today"
},
"voice_config": {},
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Designing the prompt
Lead with the persona’s role and what brought them to the call:You are a 38-year-old tenant calling about a leaking pipe in your kitchen.
You're frustrated because this is the third time you've reported it. You
have time to talk for 5 minutes; you want a technician scheduled today,
not tomorrow.
patience, verbosity, cooperation) in behavior_traits, not the prompt — that way one identity becomes many variants.
Common behavior_traits keys
| Key | Values |
|---|---|
patience | low, medium, high |
verbosity | terse, chatty |
cooperation | cooperative, adversarial, confused |
interruption_tendency | none, occasional, frequent |
goal | Free-form one-line description of what the persona is trying to achieve |
accent / dialect | Optional flavour hints (e.g. “Tel Aviv slang”, “formal Hebrew”) |
Authorizations
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys.
Body
Response
Persona created
Reusable caller archetype consumed by eval cases. The identity_prompt plus behavior_traits shape how the persona LLM responds; the same persona can be reused across many cases.
"Frustrated tenant"
System prompt fragment defining who the persona is. Written second-person ("You are…").
"You are a 38-year-old tenant calling about a leaking pipe in your kitchen. You're frustrated because this is the third time you've reported it."
he, en Free-form JSON. Common keys: patience (low|medium|high), verbosity (terse|chatty), cooperation (cooperative|adversarial), interruption_tendency (none|occasional|frequent), accent / dialect hints, goal (what the persona is trying to achieve in the call).
{
"patience": "low",
"verbosity": "chatty",
"cooperation": "cooperative",
"interruption_tendency": "occasional",
"goal": "Get a maintenance technician scheduled today"
}
Forward-compat for v2 voice-mode (TTS/STT loopback). Ignored in text mode.