Skip to main content
POST
Generate XML prompt from natural language

Authorizations

Authorization
string
header
required

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

Body

application/json
instruction
string
required

Natural-language ask describing what the prompt should accomplish.

existingPrompt
string

Optional current prompt XML to iteratively refine; absent for first-draft generation.

conversationHistory
object[]

Prior turns in this prompt-drafting session, replayed so the model can continue an iterative refinement thread.

variableContext
object

Available runtime variables and field scopes (grouped) the editor exposes; constrains the model to real @variables instead of inventing placeholders.

assistedMode
boolean

When true, drafting uses the stronger battle-tested XML architecture system prompt; otherwise stays closer to the user request with lighter guardrails.

modelOverride
object

Pin to a specific provider/model (e.g. { provider: 'anthropic', model: 'claude-sonnet-4-6' }) overriding the org's default assignment.

Example:

Response

Prompt drafted

success
boolean
required
prompt
string
required

Generated XML prompt