Automating the insertion of a marketing email into a workflow

Hi all,

Currently, our design team is in charge of creating mailing templates and uploading them to HubSpot, as well of publishing the corresponding marketing emails. The next step, for the CRM team, is to manually insert those marketing emails into a workflow that will send these emails to our customers.

We would like to automate the second step! We were wondering if it is possible (maybe through an API or a tool such as Make or Zapier) for the workflow to detect there is a new marketing email (for instance, using the email naming structure) and insert it automatically?

It would be very helpful for us to hear about your experiences or any recommendation. Even to know for sure it is not possible. HubSpot Support referred to us this documentation: Create & manage workflows - v4 | HubSpot API

Thanks in advance and best regards,

Hey @Mariale_Padilla! Thanks for your post. There are some similar requests in the community, maybe @GRajput, @Mike_Eastwood, or @JMoats can help! Hey y’all-- do you know if we can dynamically update a marketing email in a workflow via API?

Best,

Kennedy

Hi @Mariale_Padilla
HubSpot’s API can fetch emails tied to a campaign, but it doesn’t have a built-in property to show if an email is already part of a workflow.
To work around this, you could use a custom object, like is_used_in_workflow with a yes/no value. Start by fetching emails where the value is set to no. Once you add an email to the workflow, update the value to yes.
That said, you’ll also need to figure out exactly where you want to add the email within the workflow. From there, you can use the API or a tool like Zapier to place it in the right spot.