Skip to main content
The complete shape of a form. PUT it to /api/v1/agents/{agent_id}/config to replace an agent’s whole configuration in one call.
POST/PUT /api/v1/agents, used in Build an Agent, takes a slightly different shape: description, ai_instructions, question, and response_type in place of context, instructions, label, and type below.

Schema

Validation: what to put in each one

Leave validation out entirely to switch it off. free_text is not enforced. Its rules.description is guidance for the agent, not a check on the answer.

Branch rules

  • Each id must be unique.
  • Set exactly one of equals or present, never both, never neither.
  • equals works only when the controlling question is a boolean.
  • The controlling question must appear above every question that carries that branch_id.
  • Every branch_id on a question must match a branch that exists.

Example