Skip to main content

Prompts & Artifact Schemas

Prompts and artifact schemas let you define reusable building blocks for agent behavior. Prompts provide templated instructions that can be shared across agents, while artifact schemas define the structured output format agents should produce.

Create a prompt

Create a reusable prompt template. Prompts can include variables using double-brace syntax (e.g., {{topic}}) that are filled in at runtime.
The response includes the prompt id, name, description, and content. Use the id to reference the prompt from agents or other API calls.

Get a prompt

Retrieve the full details of an existing prompt.

Update a prompt

Modify a prompt’s name, description, or content. Only the fields you include are changed.
Updating a prompt does not affect agents that have already been published with the old version. Only new sessions or republished agents pick up the changes.

Delete a prompt

Permanently remove a prompt. This action cannot be undone.

Create an artifact schema

Artifact schemas define the structured output format that an agent should produce. Use JSON Schema to specify the fields, types, and validation rules.

Use a schema with an agent

Reference an artifact schema when creating or updating an agent so that its responses conform to the defined structure.
When an agent has an artifact schema attached, its responses will include a structured artifact field alongside the natural language message. The artifact conforms to the JSON Schema you defined, making it straightforward to parse and store programmatically.