Is there a way to create a batch campaign that runs every 30 minutes?
I have one campaign that runs M-F and another that runs S-S, so I can do actions during business hours vs -non-business hours. But I want to run these campaigns every 30 minutes or at least every hour so it will feel more real-time for the users (when sendingd emails).
Solved! Go to Solution.
Well, velocity can take care of updating the email content based on the day, but can't take care of adding people to different lists based on the day of the week they qualify for the campaign. For us to be able to pull this off we would need the day info either from the form field using client side JS, or via the webhook engine that we were discussing yesterday!
If we have the day info in Marketo, you can choose to send separate email assets (or have a single email serve 2 different content based on day of the week using velocity), and add people to different static lists based on the day from a single trigger campaign - instead of 2 separate campaigns for weekday and weekend.
OK, so now we're getting to guts of the matter!
If I were you, I'd:
It is a clean and simple approach, that leverages all that is good about Marketo, and nothing that is bad (i.e. 48 scheduled campaigns).
If you need help with the Flowboost part or the velocity to control content, then let us know.
Well, technically it is not possible to schedule a batch campaign to run at an interval of 30/60 minutes, you'll need to create 48/24 batch SCs each scheduled to run every half-an-hour/hour of the day, if at all you want to pull this off somehow (definitely not a good/recommended approach!) - instead, is there any possibility of sending the emails based on a trigger - trigger email on a certain CDV, activity, etc.?
Thanks for your reply. Well, I currently have it as a trigger campaign, but that removes the ability to set one campaign to run on weekdays and another to run on weekends.
Why not use a single campaign + email, and personalize the email content using the velocity based on the day of week? Linked here is an article by Sandy that articulates "Switch email content based on day/time" using velocity FYR.
You can also explore the option of computing the day of week using a webhook engine and then filtering people using response data in each of the campaigns.
What is the actual use case?
Depending on that you can do a few different things.
Do you want to send different email content based on the day of the week or do you want an entirely different flow??
If it isn't a form fill (maybe a record coming from CRM for example), you could use a webhook call to Flowboost to get the current Day of Week, and write it back to a field on the record. Then, trigger subsequent campaigns based on that field being updated and the specific values in it. This approach would also work for the form fill as well if you prefer it to client side JS.
yep, this FlowBoost ’hook
currentDay = FBUtil.time().tz("America/Los_Angeles").format("dddd");
will return the full string “Monday”, “Tuesday”, etc. The time zone is an important part because the day depends on the zone!
Though I’d hope this can be done with just Velocity. Like you and Darshil note, depends on whether more than just email content needs to be switched.
I'd hope it could be done in Velocity as well, but we don't know what else is going on other than the control of content in an email.
Yeah - Velocity will be a preferred approach here if this is just a send an email with different content based on the day of week!
@RaulEr, please let us know the exact use-case, and if there are any things you do differently in both the flows (weekday v/s. weekend campaigns' flow) other than sending different versions of the email. Thank you!
Is there a section here to see how Velocity can help me on this? I have never used it.
This is the link to Sandy's blog which explains how velocity can be used in making email content dynamic based on the day/time (you may first wanna get accustomed a little with the VTL through below resources tho).
Since you're starting with the velocity, you can find the Getting Started with Velocity Script helpful. You can refer Sandy's VTL tagged posts here: https://blog.teknkl.com/tag/velocity/ , these are really great and helpful. And, here's the link to Marketo's email scripting page which explains basic VTL constructs with a few example scripts.
Besides all of these, there's plethora of content on the community about VTL!