ChatGPT Ads: set up conversion tracking
chatgpt_ads_conversion_setupSet up ChatGPT Ads conversion tracking for a client: uses the account's web pixel (or creates one) and the conversion event to count (leads by default), then says how to put it on the site. Call without confirm to see what exists and what would be created; confirm: true creates what's missing. Then install with gtm_install_tracking (openai_pixel_id + openai_event_path) or, without Tag Manager, give the person the snippet it returns. Its conversion_event_setting_id lets chatgpt_ads_build_campaign optimise for conversions.
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": {
"account": "<account>"
},
"name": "chatgpt_ads_conversion_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | lead_created | |
| account | Yes | The ChatGPT Ads account: its client's name, the account name, or its adacct_ id (chatgpt_ads_list_accounts) | |
| confirm | No | Leave false to preview: nothing changes and the preview shows exactly what would happen. Set true only after the user has agreed to this exact change. |