AFI AFI

Cordial

Estimated reading: 2 minutes Updated July 31, 2026

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

  1. Log in to Cordial.
  2. Open Settings > Integrations > API Keys.
  3. Generate an API key with the relevant scopes (contacts:write, events:write).
  4. Note your Cordial API endpoint (account-specific).
  5. In AFI go to Settings > Cordial and paste the key and endpoint.

How to create the integration

  1. In WordPress admin, go to AFI > New Integration.
  2. Pick your Sender (Contact Form 7, WPForms, WooCommerce, etc.) and the form / event to listen on.
  3. Pick Cordial as the Receiver, then pick the Task you want to run.
  4. Map sender fields onto Cordial’s fields. Email is the default identifier. Custom contact attributes must be pre-defined.
  5. Optional: add Conditional Logic so the action only fires on matching submissions.
  6. 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.

Related