AFI AFI

Mautic

Estimated reading: 2 minutes Updated August 1, 2026

Mautic is the leading open-source marketing automation platform, self-hosted or hosted on Mautic Cloud. Advanced Form Integration sends every form submission to Mautic as a new contact, with tag and segment assignment.

What you’ll need

  • A running Mautic instance (self-hosted or Mautic Cloud).
  • Mautic API enabled (Settings → Configuration → API Settings → API enabled: Yes).
  • A user with API access permissions.
  • The Advanced Form Integration plugin installed and activated.

Connect Mautic to AFI

Mautic supports both OAuth 2.0 and Basic Auth. AFI uses Basic Auth for simplicity.

  1. In WordPress, go to AFI → Settings → Mautic.
  2. Enter:
  • Mautic URL: your Mautic install URL (e.g. https://mautic.yoursite.com).
  • Username: a Mautic user with API access.
  • Password: that user’s password.
  1. Click Save Changes.

Create the integration

  1. Go to AFI → Add New.
  2. Configure the trigger.
  3. In Action → Platform, select Mautic.
  4. In Task, choose Create / Update Contact.
  5. Map the form fields:
  • Email: the contact’s primary identifier in Mautic.
  • First Name, Last Name, Company, Phone.
  • Tags: comma-separated tag names (Mautic creates tags on the fly).
  • Segments: comma-separated segment IDs to add the contact to.
  • Custom Mautic fields by alias.
  1. Optional: configure Conditional Logic.
  2. Click Save Integration.

Screenshot: AFI field-mapping screen with Mautic contact fields visible

Troubleshooting

Contact not created

Common Mautic errors:

  • Authentication failed: username/password wrong, or the user doesn’t have API permissions.
  • API endpoint not found: Mautic URL is incomplete (missing https:// or trailing slash issue).
  • Field doesn't exist: custom field alias doesn’t match. In Mautic → Custom Fields, find the field’s Alias (not Label) and use that.

CORS or SSL errors

If your Mautic instance has SSL issues or strict CORS settings, check the AFI log for the exact error and adjust Mautic’s local.php config accordingly.

Related docs