Create a ChatGPT Ads conversion event (goal)
chatgpt_ads_create_conversion_eventDefine which event from a conversion source counts as a conversion (for example order_created for purchases, lead_created for leads, or a custom event name), with its click attribution window (7, 14 or 30 days; default 30). Previews by default (dryRun true); set dryRun false only after the user agrees. It doesn't send events (the Pixel or Conversions API does) and doesn't attach anything to a campaign: afterwards attach the returned setting id with chatgpt_ads_update_campaign (conversionEventSettingIds replaces the whole list, so include existing ones). Goal reporting applies going forward from attachment; custom events can be measured but not optimised for. Pick the source with sourceId (its id from chatgpt_ads_conversion_setup_guide, not pixelId); with exactly one source it is chosen for you. A name that already exists is refused. Only works where the user has allowed changes for the ad account.
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": {
"name": "<name>",
"eventType": "<eventType>"
},
"name": "chatgpt_ads_create_conversion_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A descriptive name for the goal, e.g. 'Purchases'. | |
| dryRun | No | Preview only (the default): reads the current value and shows exactly what would change (before and after) without sending anything. Set false only after the user has seen the preview and agreed. | |
| sourceId | No | The conversion source `id` (not pixelId). Optional when the account has exactly one source. | |
| accountId | No | The ChatGPT Ads ad account id, as listed by chatgpt_ads_list_ad_accounts. A connection reaches one ad account, so this is normally left out. | |
| eventType | Yes | The standard event that counts as the conversion, or 'custom' (then customEventName is required). | |
| customEventName | No | For eventType 'custom': 1 to 64 characters, lowercase letters, numbers, underscores or dashes, and not a built-in event name. Must match what the site sends. | |
| attributionWindowDays | No | Click attribution window in days: 7, 14 or 30 (default 30). |