When I update a contact, update contact campaign or segment with the Mautic node the emails are sent several times as if the contact is added repeatedly to the campaign.
I have tried adding the contact through segments and directly into the campaign and the behavior is the same. And when I check the profile of the contact in Mautic the logs shows that the campaign ran only once.
This only happens when I use Mautic with n8n as I have other campaigns running and this issue is not happening.
Is it possible that the if node it’s not filtering the data correctly? You can check the executions tab and see what each run did. That way, you can discard that posiblity.
I found the problem. I have some automations on my board with Buttler whenever a card is move to the list I’m trying to use and this updates the card on some fields. I deactivated the automations and the workflow runs as expected.
Now I need to figure out how to run these rules after the card is move and not at the same time.
I did something very similar with Trello. I don’t have the workflow with me, but I used the Trello Trigger node to start the workflow. I added an IF node to check if the card moved from board A to board B, and continued the workflow only if this condition was met.
I have not used Buttler, but can it make API calls? If so, you can create a workflow with the Webhook node. Buttler can send a request to that webhook URL to trigger the workflow in n8n.
I encountered a similar issue, but upon investigation, I discovered that there were multiple identical webhooks in Mautic. After deleting the redundant webhooks and re-saving the published n8n workflow, it began functioning as intended, sending just one email.