SOLVED

Re: Schedule a recurring batch campaign every 30 minutes

Go to solution
RaulEr
Level 4

Schedule a recurring batch campaign every 30 minutes

Hi community!

 

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).

 

- Raul

2 ACCEPTED SOLUTIONS

Accepted Solutions
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: Schedule a recurring batch campaign every 30 minutes

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.   

View solution in original post

Jo_Pitts1
Level 10 - Community Advisor

Re: Schedule a recurring batch campaign every 30 minutes

OK, so now we're getting to guts of the matter!

If I were you, I'd:

  1. Have a smart campaign triggered by the CDV.  In that smart campaign, use a call webhook flow step and call Flowboost to populate the DoW back to the record.
  2. Create another smart campaign.  Trigger it using the Webhook is called trigger.  In this smart campaign:
    1. add to which ever list you need based on the populated DoW.  Do this with a single add to list flow step with two choices based on DoW.
    2. Send your email.  Control the content in the email based on the DoW field that you've already populated using Velocity.

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.

 

Cheers

Jo

 

View solution in original post

16 REPLIES 16
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: Schedule a recurring batch campaign every 30 minutes

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.?

RaulEr
Level 4

Re: Schedule a recurring batch campaign every 30 minutes

Hi Darshil,

 

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.

 

- Raul

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: Schedule a recurring batch campaign every 30 minutes

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.

Jo_Pitts1
Level 10 - Community Advisor

Re: Schedule a recurring batch campaign every 30 minutes

@RaulEr 

What is the actual use case?  

 

Depending on that you can do a few different things.

  1. If it is based off a form fill, you could use some client side javascript to populate the day of week into a hidden field on the form.  This could then be used to in Marketo to swap email content using Velocity, or you could use it to request/execute entirely different campaigns.
  2. 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.

Cheers

Jo

 

Do you want to send different email content based on the day of the week or do you want an entirely different flow?? 

 

 

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Schedule a recurring batch campaign every 30 minutes


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.

Jo_Pitts1
Level 10 - Community Advisor

Re: Schedule a recurring batch campaign every 30 minutes

@SanfordWhiteman ,

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.

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: Schedule a recurring batch campaign every 30 minutes

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!

RaulEr
Level 4

Re: Schedule a recurring batch campaign every 30 minutes

Is there a section here to see how Velocity can help me on this? I have never used it.

 

- Raul

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: Schedule a recurring batch campaign every 30 minutes

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!