SOLVED

Re: Wait step didn't trigger webhook

Go to solution
Melody_Frieda1
Level 2

Wait step didn't trigger webhook

Hi,


I tried getting Marketo support help with this (with no success), but I've found the Community to be much more knowledgable in troubleshooting everything Marketo! Love you guys....


I'm trying to accomplish the following:

  1. Step 1: When a data value changes it triggers the first SMS webhook
    1. This was done successfully in my test
  2. Step 2: Wait 24 hours, can end any day, and must end at 8am PDT
    1. In my test, the first trigger was fired off at 2:51pm PDT
  3. Step 3: Fire next SMS webhook
    1. 8am the following day, the webhook did not fire
  4. Step 3: Wait 6 hours, can end any day, and must end at 2pm PDT
    1. etc. I've attached the smart campaign flow for review

Here is a snapshot of what I want the flow to look like for the first 36 hours. The first SMS webhook is called, then I want to wait until 8am the following day (regardless of the time the lead's first webhook fired the prior day) then send the next SMS webhook at exactly 8am the next day

Screen Shot 2018-09-13 at 9.23.38 AM.png

I can't create a batch smart campaign because webhooks are called via triggered smart campaigns only. Marketo Support told me to remove the wait step duration (e.g. 24 hours), which resulted in all of my SMS webhooks firing at once

What am I doing wrong here? Please help!

1 ACCEPTED SOLUTION

Accepted Solutions
Steven_Vanderb3
Marketo Employee

Re: Wait step didn't trigger webhook

Sounds like a timing issue.  Assuming the same scenario were run today, 9/13....

9/13, 2:51PM PDT: First flow step is processed and enter wait step

9/14, 2:51PM PDT: 24 hours is up, but must end at 8AM which will be tomorrow

9/15 8:00AM PDT: Come out of wait step, process next webhook, and enter next wait step

9/15: 2:00PM PDT: Come out of the wait step and process the last webhook.

However the above is the ideal which will probably never happen.  Coming out of a wait step is a low priority action and will defer to other, higher priority trigger actions running at the same time.  For your wait step "Wait 6 hours, must end at 2PM", it assumes that the lead come out of the previous wait step (and finish processing the previous webhook) at exactly 8AM.

The more likely type of run you would see is something like this

9/13, 2:51PM PDT: First flow step is processed and enter wait step

9/14, 2:51PM PDT: 24 hours is up, but must end at 8AM which will be tomorrow

9/15 8:10AM PDT: Come out of wait step, process next webhook, and enter next wait step.  The campaign had to wait for higher priority tasks to finish before it could process the webhook between the two wait steps.

9/15: 2:10PM PDT: 6 hours is up but must end at 2PM which will be tomorrow

9/16: 2:00PM PDT: Come out of the wait step and process the last webhook.

You could use recurring batch campaigns that run at scheduled time with a flow step to request your trigger campaigns with the webhooks rather than rely on the wait steps if you want to use specific timing.

Trigger Campaign 1:  Sends the first webhook when the data value changes

Batch Campaign 1: At 8:00 AM, Request Trigger Campaign A for all people that got the SMS message from Trigger Campaign 1

Trigger Campaign A: Send SMS message

Batch Campaign 2: At 2:00PM, Request Trigger Campaign B for all people that got the SMS message from Trigger Campaign A

Trigger Campaign B: Send SMS message

View solution in original post

7 REPLIES 7
Steven_Vanderb3
Marketo Employee

Re: Wait step didn't trigger webhook

Sounds like a timing issue.  Assuming the same scenario were run today, 9/13....

9/13, 2:51PM PDT: First flow step is processed and enter wait step

9/14, 2:51PM PDT: 24 hours is up, but must end at 8AM which will be tomorrow

9/15 8:00AM PDT: Come out of wait step, process next webhook, and enter next wait step

9/15: 2:00PM PDT: Come out of the wait step and process the last webhook.

However the above is the ideal which will probably never happen.  Coming out of a wait step is a low priority action and will defer to other, higher priority trigger actions running at the same time.  For your wait step "Wait 6 hours, must end at 2PM", it assumes that the lead come out of the previous wait step (and finish processing the previous webhook) at exactly 8AM.

The more likely type of run you would see is something like this

9/13, 2:51PM PDT: First flow step is processed and enter wait step

9/14, 2:51PM PDT: 24 hours is up, but must end at 8AM which will be tomorrow

9/15 8:10AM PDT: Come out of wait step, process next webhook, and enter next wait step.  The campaign had to wait for higher priority tasks to finish before it could process the webhook between the two wait steps.

9/15: 2:10PM PDT: 6 hours is up but must end at 2PM which will be tomorrow

9/16: 2:00PM PDT: Come out of the wait step and process the last webhook.

You could use recurring batch campaigns that run at scheduled time with a flow step to request your trigger campaigns with the webhooks rather than rely on the wait steps if you want to use specific timing.

Trigger Campaign 1:  Sends the first webhook when the data value changes

Batch Campaign 1: At 8:00 AM, Request Trigger Campaign A for all people that got the SMS message from Trigger Campaign 1

Trigger Campaign A: Send SMS message

Batch Campaign 2: At 2:00PM, Request Trigger Campaign B for all people that got the SMS message from Trigger Campaign A

Trigger Campaign B: Send SMS message

Melody_Frieda1
Level 2

Re: Wait step didn't trigger webhook

Steven Vanderberg Thanks for the reply! I thought webhooks cannot be triggered via a batch campaign? I tried that a couple weeks ago and got a response code of 1000:

http://developers.marketo.com/webhooks/errors/

Steven_Vanderb3
Marketo Employee

Re: Wait step didn't trigger webhook

Batch campaigns can't, but they CAN use Request Campaign flow step to trigger a Trigger campaign that has the Webhook flow step.

Melody_Frieda1
Level 2

Re: Wait step didn't trigger webhook

Steven Vanderberg​ i set up something like this. Waiting to batch. Is this what you mean?

Screen Shot 2018-09-13 at 12.37.08 PM.png

Screen Shot 2018-09-13 at 12.37.25 PM.png

SanfordWhiteman
Level 10 - Community Moderator

Re: Wait step didn't trigger webhook

What Steven is referring to (and which is the common way to batch-ify webhooks) is 2 Smart Campaigns.

One trigger SC with the Campaign is Requested trigger and Call Webhook flow action.

Another batch SC with your filters/schedule and Request Campaign ​flow action.

Dan_Stevens_
Level 10 - Champion Alumni

Re: Wait step didn't trigger webhook

Aren't "requested campaigns" also low priority?  Maybe just not as low of a priority as coming out of wait step?

Grégoire_Miche2
Level 10

Re: Wait step didn't trigger webhook

Hi Dan,

Anyway, Any step after a a wait step that is longer than 5 minutes is a low priority (read Re: Under the Hood II: Batch Campaigns recording ​)

The orchestrated Batches is the solution. In fact, I came to the conclusion that it's always better than long wait steps (Which also do not offer real control).

-Greg