Generate Persona
curl --request POST \
--url https://api.example.com/api/v1/personas/generate \
--header 'Content-Type: application/json' \
--data '
{
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brief": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/personas/generate"
payload = {
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brief": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({llm_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', brief: '<string>'})
};
fetch('https://api.example.com/api/v1/personas/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"system_prompt": "<string>",
"role": "<string>",
"goals": "<string>",
"tone": "<string>",
"language": "<string>",
"language_secondary": "<string>",
"product_context": "<string>",
"boundaries": "<string>",
"faqs": [
{}
],
"example_dialogs": [
{}
],
"override_system_prompt": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}personas
Generate Persona
Generate a draft persona via the org’s BYOK LLM profile (not persisted).
POST
/
api
/
v1
/
personas
/
generate
Generate Persona
curl --request POST \
--url https://api.example.com/api/v1/personas/generate \
--header 'Content-Type: application/json' \
--data '
{
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brief": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/personas/generate"
payload = {
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brief": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({llm_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', brief: '<string>'})
};
fetch('https://api.example.com/api/v1/personas/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"system_prompt": "<string>",
"role": "<string>",
"goals": "<string>",
"tone": "<string>",
"language": "<string>",
"language_secondary": "<string>",
"product_context": "<string>",
"boundaries": "<string>",
"faqs": [
{}
],
"example_dialogs": [
{}
],
"override_system_prompt": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Generate a draft persona from a brief using a BYOK LLM profile.
Response
Successful Response
Draft persona fields from AI generation (not persisted).