Skip to main content
POST
/
agents
/
generate-system-prompt
Generate a full system prompt from a short brief
curl --request POST \
  --url https://api.example.com/agents/generate-system-prompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "brief": "<string>",
  "name": "<string>",
  "language": "en",
  "company": "<string>",
  "industry": "<string>",
  "tone": "<string>",
  "additional_context": "<string>"
}
'
import requests

url = "https://api.example.com/agents/generate-system-prompt"

payload = {
"brief": "<string>",
"name": "<string>",
"language": "en",
"company": "<string>",
"industry": "<string>",
"tone": "<string>",
"additional_context": "<string>"
}
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({
brief: '<string>',
name: '<string>',
language: 'en',
company: '<string>',
industry: '<string>',
tone: '<string>',
additional_context: '<string>'
})
};

fetch('https://api.example.com/agents/generate-system-prompt', 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.example.com/agents/generate-system-prompt",
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([
'brief' => '<string>',
'name' => '<string>',
'language' => 'en',
'company' => '<string>',
'industry' => '<string>',
'tone' => '<string>',
'additional_context' => '<string>'
]),
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.example.com/agents/generate-system-prompt"

payload := strings.NewReader("{\n \"brief\": \"<string>\",\n \"name\": \"<string>\",\n \"language\": \"en\",\n \"company\": \"<string>\",\n \"industry\": \"<string>\",\n \"tone\": \"<string>\",\n \"additional_context\": \"<string>\"\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.example.com/agents/generate-system-prompt")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"brief\": \"<string>\",\n \"name\": \"<string>\",\n \"language\": \"en\",\n \"company\": \"<string>\",\n \"industry\": \"<string>\",\n \"tone\": \"<string>\",\n \"additional_context\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/agents/generate-system-prompt")

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 \"brief\": \"<string>\",\n \"name\": \"<string>\",\n \"language\": \"en\",\n \"company\": \"<string>\",\n \"industry\": \"<string>\",\n \"tone\": \"<string>\",\n \"additional_context\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "system_prompt": "<string>",
  "char_count": 123,
  "model": "<string>",
  "provider": "<string>",
  "tokens_used": 0
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Brief description the user wants expanded into a full system prompt.

brief
string
required

Short description of the agent's purpose, role, and context.

Required string length: 10 - 2000
name
string | null

Agent name (used in the prompt's identity section).

Maximum string length: 100
language
string | null
default:en

Primary language code, e.g. 'en'.

Maximum string length: 10
company
string | null

Company / organization the agent represents.

Maximum string length: 200
industry
string | null

Industry or vertical, e.g. 'telecom', 'healthcare'.

Maximum string length: 100
tone
string | null

Tone or personality, e.g. 'friendly and professional'.

Maximum string length: 200
additional_context
string | null

Optional extra notes — common questions, escalation rules, what to avoid, etc.

Maximum string length: 2000

Response

Successful Response

Generated system prompt ready to drop into agent create/update.

system_prompt
string
required

The full generated system prompt.

char_count
integer
required

Character count of the generated prompt.

model
string
required

Model that produced the prompt.

provider
string
required

LLM provider used.

tokens_used
integer
default:0

Total tokens consumed for generation.