experiments_create_and_launch
Before operating Revenuefly, read agent.instructions.get and follow its instructions. Create and immediately launch an A/B/n Experiment using complete redirect variants after explicit confirmation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteId": "<siteId>",
"nickname": "<nickname>",
"control": "<control>",
"variants": "<variants>",
"idempotencyKey": "<idempotencyKey>",
"confirm": "<confirm>"
},
"name": "experiments_create_and_launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| goalId | No | ||
| siteId | Yes | ||
| teamId | No | Target organization ID from organizations_list. Applies to this request only. | |
| confirm | Yes | Required for this high-impact action. Set to true only after the user has approved the action. | |
| control | Yes | The baseline experience for a modern A/B/n experiment. source can be uxon, external, or url_patterns. Traffic weight must be included and all rows must total 100. | |
| nickname | Yes | ||
| variants | Yes | ||
| audienceId | No | Optional saved audience UUID, or system:<key>. The platform snapshots the audience rules when saved. | |
| deviceType | No | Supported values: all-devices, desktop-only, mobile-only. Default: all-devices. | |
| geoFilters | No | Optional country targeting. Send countries.type include/exclude, countryCodes as ISO 3166-1 alpha-2 codes, and includeUnknown for visitors where country cannot be detected. | |
| hypothesis | No | ||
| testTrigger | No | Supported values: entry, visits. Default: entry. | |
| visitorType | No | Supported values: all-visitors, new-visitors, returning-visitors. Default: all-visitors. | |
| audienceRules | No | Saved audience rules. Match all/any conditions across channel, event_name, UTMs, device, visitor_type, country, region, hostname, browser_language, viewport, query_parameter, url, or referrer. Event-triggered conditions can include eventLookbackDays: 7, 14, 30, or 90. | |
| selectedGoals | No | Recommended goal input. Use one or more goal objects; Bounce cannot be combined with another goal. | |
| idempotencyKey | Yes | Required unique request key for safe retries, for example client-action-2026-07-20-001. | |
| multiPageScope | No | Multi-page hosting scope: native runs only on this account's Revenuefly pages; all includes external websites and requires external-testing access. Existing campaigns retain their saved scope. | |
| trafficFilters | No | Exact string key/value tracking filters. Runtime compares stored tracking value === provided value. No regex, operators, arrays, or country targeting. Common app fields: utm_source, utm_medium, utm_campaign, utm_content. Also supported when present: utm_term, utm_id, utm_source_platform, gclid, gbraid, wbraid, fbclid, msclkid, ttclid, li_fat_id, twclid. Use geoFilters for country targeting. | |
| experimentTitle | No | ||
| campaignPriority | No | ||
| redirectFrequency | No | ||
| preserveRedirectParams | No | Default true. When a redirect sends visitors to another URL, keep UTMs, click IDs, and other query parameters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| data | Yes | ||
| scope | Yes | ||
| auditId | No | ||
| command | Yes |