5 Replies Latest reply on Nov 3, 2016 2:32 PM by Justin Norris

    Auto cloning programs and populating tokens from an API call

    Matthew Varone

      Hi All,

       

      My company has recently introduced events managed by marketo. As per events the Programs are driven largely by Tokens as there are multiple data points that are unique to each event.


      We plan to process thousands of events in this manor. I have a couple of questions that some of you may be able to help me answer:

       

      1. With the current technology is it possible based upon an API call to clone a program, auto populate the tokens and activate the campaigns?
      2. If the above is not possible... collaborating with Marketo (Development) would this ever be possible?

       

      I look forward to hearing from you.

        • Re: Auto cloning and populating tokens from an API call
          Justin Norris

          Hey Matthew Varone,

           

          Looks like you can get pretty close, but not quite, yet:

           

          Clone Program

          Create Token

           

          This would get you a cloned program with tokens, and yet the smart campaigns remain inactive. There is no way to activate a trigger campaign that I can see (I'd be happy to be proven wrong on this point!).

           

          There is one other potential option to consider:

           

          Schedule Campaign

           

          In looking at the documentation, I noticed an optional parameter that I hadn't paid much attention to before:

          cloneToProgramName (string, optional): Name of the resulting program. When set, this attribute will cause the campaign, parent program, and all of its assets, with the resulting new name. Programs with snippets, push notifications, in-app messages, static lists, reports, and social assets may not be cloned in this way
          ...
          tokens (Array[Token], optional): List of my tokens to replace during the run of the target campaign. The tokens must be available in a parent program or folder to be replaced during the run

          This looks like it will let you clone a program, set its tokens (for a scheduled run) and then schedule the smart campaign to run (activate it). This seems pretty close to what you want - and it will work as long as your events can function with only batch campaigns (no triggers).

           

          Would be curious to know more about your use case.

           

          ---

          Justin Norris | Perkuto

            • Re: Auto cloning and populating tokens from an API call
              Matthew Varone

              Hi Justin Norris.

               

              I have build a fairly complex event program that contains multiple campaigns, velocity scripting, multiple asset types web hooks etc.

               

              Here is a screen:

              The way it works is a sales person fills out a form with the event details, these are sent as an alert to corporate. Corporate then clone this program and adjust all the tokens:

               

              As you would know these tokens change all the info in the assets.

               

              To activate the program we self register with a specific email address, this then triggers an alert to the sales person. This alert contains an activation link, which is a short form. I have stripped all the tracking data from this form and the LP so that the sales person can register on the behalf of a customer.

               

              This triggers a responce to the customer where they start to receive communications. Part of this process encourages the 1st customer to then share a link with her friends and family thus encouraging more registrations and so on.

               

              So far we are trialing the program and it is quite effective. Although it takes about 5 minutes to set one up and we would like to process around a 1000 a month.

               

              If we could automated the cloning of the program and population of the tokens from an external data source we would be able to create greater efficiency.

               

              Look forward to feedback.