Is there any easier way to capture ALL sent Mailchimp campaigns?

Follow up question: is there any easier way to do this? To listen for all mailchimp campaign sends? Without the client needing to do anything on their mailchimp. Can nodes be dynamically created into the flow as new lists get created? ie grab all lists, listen for each?

(Original issue below, solved by creating a new workflow. Unknown why.)

Summary

Describe the problem/error/question

I have found no other way than to require as many triggers as there are lists for listening for new Mailchimp sent campaigns. I have a workflow to build, I simply set them all into a random node, wanted to activate to get data to work on. I double checked. NONE of them have duplicate webhooks or entries.

Follow up question, is there any easier way to do this? To listen for all sends? Without the client needing to do anything on their mailchimp. Can nodes be dynamically created into the flow as new lists get created? ie grab all lists, listen for each?

Or has there been overthought somewhere along this path and theres an easier way to auto post campaigns to wordpress? Client just wants a copy on their site.

Here is a near exact issue raised well over a year ago, where an admin hotpatched the issue (I presume): Can't activate workflow with Mailchimp trigger, "Unknown Error"


I did delete all other nodes and saved to confirm the same occurs.
Yes, even just one new mailchimp trigger.

What is the error message (if any)?

Started the workflow simply replies:

Please share your workflow

Information on your n8n setup

  • n8n version: 1.37.3
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I very much did provide the necessary information.

hello @ThinkBot

There is no easy way for that :slight_smile:
But it’s possible with the n8n API node that will prepare all triggers. I’ve prepared the example. You’ll need to edit the Set data node to point to the right field value (leave the field name as is) with the campaign ID. Plus in the Generate Payload you can use four options:

  • apiCredName - the name of your Mailchimp credentials to set for each node
  • executeWorkflowId - what workflow to execute for further actions with the campaigns. Better to use that approach instead of developing all logic in the same workflow (it will be harder to maintain it otherwise)
  • columns - how many columns with Mailchimp triggers will be on the workflow
  • step - the space between each node (both horizontal and vertical)

That’s how it looks with 6 columns and 200 step

2 Likes

Awesome. Thanks for the help. I knew something like that was possible, I did hope there was a simpler way I wasn’t aware of.

Frankly I was overthinking this…

This is super easy.

Cron → Mailchimp getAll campaigns (last 24hr) → get campaign → http get campaign archive → ChatGPT reformatting/extraction → WordPress post

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.