Skip to main content
POST
Generate an agent system prompt from a description

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by auth.api.signInEmail (or the OAuth flow). Forwarded automatically by the browser; copy via document.cookie for server-to-server calls during development.

Body

application/json
description
string
required

Short natural-language description of the agent to build

Example:

"A friendly customer support agent for a SaaS company."

Response

200 - application/json
system_prompt
string
required

Generated system prompt for the agent

Example:

"# Personality\nYou are Alex, a friendly customer support specialist…"