Cordial
Overview
AFI upserts contacts and fires custom events in Cordial, the personalised messaging platform, from WordPress events. Trigger cross-channel campaigns based on form submissions, order activity, or any user interaction.
Supported actions
- Upsert Contact
- Fire Custom Event
- Add to List
Authentication
- Log in to Cordial.
- Open Settings > Integrations > API Keys.
- Generate an API key with the relevant scopes (contacts:write, events:write).
- Note your Cordial API endpoint (account-specific).
- In AFI go to Settings > Cordial and paste the key and endpoint.
How to create the integration
- In WordPress admin, go to AFI > New Integration.
- Pick your Sender (Contact Form 7, WPForms, WooCommerce, etc.) and the form / event to listen on.
- Pick Cordial as the Receiver, then pick the Task you want to run.
- Map sender fields onto Cordial’s fields. Email is the default identifier. Custom contact attributes must be pre-defined.
- Optional: add Conditional Logic so the action only fires on matching submissions.
- Save and run a test submission. Check AFI > Log if anything looks off.
Notes & caveats
- Endpoint per account: Cordial assigns a tenant-specific API URL — confirm in your account.
- Event names: predefined event types vs custom — pick a convention that downstream Sends and Journeys can reference.
- Subscription state: Cordial tracks per-channel subscription independently; upsert may or may not change it, depending on the call.