Create an A/B variant
Create an A/B variant
Authentication
Path parameters
UUID of the agent the variant belongs to. An unknown id or one from another workspace answers 404; a value that is not a UUID answers 400.
Request
Label shown in results. Trimmed; 1-100 characters after trimming.
The prompt this variant uses instead of the agent’s system_prompt on the calls that pick
it. 10-8000 characters, stored as sent (not trimmed). Screened for fraud.
Opening line for calls that pick this variant. Trimmed; blank is treated as absent, and then the agent’s first message is used.
Relative traffic weight, 0-100. Defaults to 50. 0 keeps the variant active but it is never
picked while another active variant has weight. Stored as an integer — send whole numbers;
a fractional value fails the request.
Response
Variant created (active).
A prompt variant row (snake_case), with its raw performance counters.

