How do I add a new subscriber in mailchimp to Revue using Pipedream?

Hello everyone, just recently created my pipedream account. I want to be able to add new subscribers in Mailchimp list to my Revue nesletter subscribers list. Any help on how I can go about this? P.S: I’m not familiar with node but I’m willing to learn.

Hi @christopherajulo , just to confirm, will you be adding subscribers to your Mailchimp list yourself, outside of Pipedream? Then each time a subscriber is added to Mailchimp, you want to automatically add them to your subscribers list in Revue? Let me know if I have that right or if you’re looking to do something else.

Hello @dylburger. yes, you have it exactly right.

Thank you for your time.

@dylburger Sorry to be a bother. Still waiting on a reply from you. Thank you again.

@christopherajulo As you may have noticed, we currently we don’t have a Mailchimp trigger that runs each time a member is added to a list in Mailchimp. There are a couple of options here:

  • If you’d like, you can help build this trigger. All triggers are open source, and anyone can develop them (we technically call these triggers event sources). I’ve added an issue in GitHub to track this. If you’re interested in helping with this, I’d recommend taking a look at three resources: our quickstart for building event sources, our contribution guide, and the API reference. If it’s easier to chat synchronously, we have a #contribute Slack channel where we discuss contributions on our public Slack workspace.
  • Technically you can also create a webhook in Mailchimp and point it to a workflow (select the HTTP API trigger, and copy its endpoint into Mailchimp). Mailchimp appears to support webhooks for changes to lists, so Mailchimp will send you notifications to the workflow, and you can process those changes, parsing the necessary data and sending an API request to Revue. To send these requests to Revue, I’d recommend adding a new step to your workflow, select the Revue app, and add the step to Run Node.js code with Revue. That includes some sample Node.js code that will get you started. Then I’d suggest taking a look at the Revue API docs for adding a new subscriber, and referencing our guide on sending HTTP Requests in Node to send the right data in the API request.

Let me know if those references help, or if you have any other questions as you build.