Capture student events, keep Mautic contacts up to date, and control email preferences with one connected flow. Great for teams that sell courses or memberships and need clean contact data, clear tags, and fast updates.
A webhook receives a JSON payload from your app. The request is routed by type, then the email is searched in Mautic. Names are split into first and last name. If no match is found, a new contact is created. If a contact exists, fields are updated. The flow adds a tag with the course name for simple segmentation. A flag in the payload controls opt out and opt back in actions by applying or removing an unsubscribe tag. All steps merge clean data before Mautic writes happen, so records stay consistent.
You only need a Mautic account and an n8n instance. Connect Mautic with OAuth2 in n8n, point your source app to the webhook URL, and send a test event with the expected student fields. Expect faster updates, fewer errors, and clear tags that drive targeted campaigns. Use this for enrollments, profile edits, purchases, and marketing preference changes.