zuckerbot_set_capi_config
Update Conversions API configuration: map CRM stages to Meta events, enable or disable delivery, and adjust currency, source, or optimisation target. Changes apply to new CAPI events immediately.
Instructions
Update the Conversions API configuration for a business. Set stage-to-event mappings (e.g., 'lead' → Meta Lead event), enable/disable delivery, change the CRM source, currency, optimisation target, or action source. Changes take effect immediately for new CAPI events. Use zuckerbot_capi_test to verify the updated config works.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Business currency used for CAPI event values, such as USD or AUD | |
| crm_source | No | CRM source label, such as hubspot | |
| is_enabled | No | Enable or disable CAPI delivery for the business | |
| business_id | No | Optional business ID override for the authenticated API key | |
| optimise_for | No | Downstream optimisation target for autonomous evaluation | |
| action_source | No | Meta Conversions API action_source. Defaults to website for CRM events | |
| event_mapping | No | CRM stage mapping object keyed by source stage. Stage keys are normalised (lower-cased, non-alphanumerics stripped: signup_completed → signupcompleted); inbound webhook source_stage values are normalised identically before matching, and any renamed keys are reported back as normalised_keys in the response | |
| rotate_webhook_secret | No | Rotate the webhook secret on update. The new secret is returned exactly once in the response; prefer zuckerbot_rotate_webhook_secret for a dedicated rotation |