Create a new prompt that you can use across your AI applications. Build prompts from one or more components, and use handlebars-style variables like {{userName}} for personalization.
Safe by Default: Creating a prompt creates a new version but doesn’t activate it. Your production prompts stay unchanged until you explicitly activate the new version (via the UI or when you reference it in the Messages API). This lets you test and prepare new prompts without risk.
Versioning: Every prompt is immutable and versioned with fingerprinting, so you can safely iterate and track changes over time.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Prompt name.
Product this prompt will map to.
Role key in the product mapping (e.g. "agent tool").
1Array of component objects.
1Your external identifier for the prompt.
Prompt description.
Prompt source.
customer, participant, greenflash, agent Prompt created successfully
The created prompt ID.
The created version ID. Version is created but not activated (activation happens via UI or Messages API).
The IDs of the created prompt components.
The external prompt ID.