Customize an email text for each contact using AI

Your software
My Mautic version is: 4.4.10
My PHP version is: 8.0.30
My Database type and version is: 10.4.34-MariaDB-1:10.4.34+maria~ubu2004

Your problem

Hi Folks, I am playing around wit GPT and I would like to change the drip email to send personalized information for each contact.

I did not find any mautic API that I could change the email content that will be sent to a specific contact in a campaign.

Any idea how to implement such a thing?

Is this a Segment send or Campaign send?

I was thinking about a campaign send. But I am open to hear how to do it with segment.

There is no plugin that supports this directly.
What you can do is to create a custom field with long text. This text will be the custom content of your email.

Create a function in n8n that receives parameters (including contact id) calls chatgpt, creates the content and pushes the custom content into mautic via api.

Now create a campaign that passes the parameters to n8n via webhook.

The webhook will activate the n8n function, and mautic will receive the updated custom content via api from n8n. The second campaign step can be sending the email with the custom content token.

2 Likes

HI @joeyk ,

Yes, This is the only solution that I have figure out. I was wondering if there was a better sollution.

Anyway, thanks for the help!

@joeyk,

found a problem with this aproach. The fields have max length of 191

It´s not enough to work with a more refined approach…

Any thoughts?

Make a longer field: Textfield in Mautic