Write-Back (Meta CAPI)
Push attributed conversions to Meta Conversions API with preview, dry-run, and confirm safety flow
The send_meta_conversions tool lets you push attributed conversions from Atribu to Meta's Conversions API (CAPI). This improves Meta's ad delivery optimization by feeding real conversion data back to the algorithm.
Irreversible action
Confirmed conversions are sent to Meta and cannot be recalled. The tool enforces a three-step safety flow to prevent accidental submissions.
Prerequisites
Before using write-back, all four conditions must be met:
- Token scope -- your MCP token must include
mcp:write - Workspace setting -- a workspace admin must enable MCP write-back in workspace settings
- User role -- you must be a workspace owner or admin
- Meta connection -- a Meta Ads connection must be active
If any condition is unmet, the tool returns a typed error explaining what's missing and how to fix it.
The three-step flow
Step 1: Preview
Build conversion events locally and inspect them without calling Meta.
Send my last 7 days of payment_received conversions to Meta in preview modeThe tool returns:
- Total event count
- Sample events (first 3) with mapped fields
- Match-quality breakdown (great / good / weak) based on available user data
No data leaves Atribu during preview.
Step 2: Dry-run
Submit events to Meta with a test event code. Meta validates the payload format and match quality without recording real conversions.
Do a dry-run of those conversions with pixel ID 1234567890The tool returns:
events_receivedcount from Metafbtrace_idfor debugging in Meta Events Manager- Any validation warnings from Meta
Test events
Dry-run events appear in Meta Events Manager under the Test Events tab. They do not affect ad delivery or reporting.
Step 3: Confirm
Submit events to Meta for real. Requires an idempotency key to prevent duplicate submissions.
Confirm sending those conversions. Use idempotency key "april-week2-payments"The AI tool should generate a unique idempotency key (typically a UUID or descriptive string) and include it in the confirm call. If the same idempotency key is used twice, the tool returns the prior result instead of submitting again.
Event type mapping
Atribu outcome types map to Meta standard events:
| Atribu event | Meta event |
|---|---|
payment_received | Purchase |
order_placed | Purchase |
closed_won | Purchase |
appointment_booked | Schedule |
lead_created | Lead |
checkout_started | InitiateCheckout |
add_to_cart | AddToCart |
add_payment_info | AddPaymentInfo |
view_content | ViewContent |
search | Search |
Safety rails
Idempotency
Every confirm call requires an idempotency_key. If a confirm with the same key was already processed for this profile, the tool returns the prior result. This prevents accidental double-sends even if the AI tool retries.
Circuit breaker
If 3 or more confirm operations fail for the same profile within 30 minutes, the tool enters circuit-open state and rejects new confirm calls. Wait for the cooldown or investigate the failures.
Audit trail
Every operation (preview, dry-run, confirm) creates an immutable audit record with:
- Payload hash, event count, window dates
- External submission IDs (on success)
- Result status and error details
- Request ID for traceability
Audit records are visible to workspace admins in the dashboard.
Match quality
The preview step estimates how well Meta can match your events to ad clicks:
| Quality | Criteria |
|---|---|
| Great | Has FBP cookie + email + phone + IP + user agent |
| Good | Has email or phone + IP or user agent |
| Weak | Missing most identifiers -- Meta may not match this event |
Higher match quality means Meta can better attribute the conversion to the right ad click, improving future ad delivery.