Skip to main content
Solved

Generate metric based flow to entire cohort of customers.

  • February 27, 2023
  • 1 reply
  • 197 views

Forum|alt.badge.img+2

Hi all, here’s what I’m trying to accomplish.

Everytime we make a post to your TikTok account, we’d like to send out an email blast with a link to the TikTok video as well as preview image for a Klaviyo Segment of users.

Here’s how I plan on implementing it, though I'm stuck on the Klaviyo side. 

I have a webhook that fires everytime we make an upload to our tiktok account that include relevant info, e.g. TikTok URL, preview image etc.

I then need to pipe that data into Klaviyo. I had considered creating a custom metric, i.e. for each upload there will be 1 metric-event. However, each event requires a customer identifier, so I really would have to then fetch every customer in my segment, then fan out an event to each customer. A bit of engineering work to do this (would have to run it on an event bus, as we will be targeting a large segment (20k+) and would get throttled by Klaviyo’s API etc.. and this just seems like the wrong approach.

Had also considered using integromat to clone a campaign, which could work, but I would then need some way of updating the campaign details to include the new posts URL, image etc.

 

 

Best answer by retention

Hi @MasonK, welcome to the community!

This is really interesting use case, so putting some thought to it I think I have a good work around solution for you. I wouldn’t discount the fan out of events completely, especially if the timing of those emails aren’t immediate (do a time delay for the next morning slot). The API can support a steading 3500/events per minute, so even if you have 20K folks that would only take a few minutes if you throttle your API calls steadily. 

However, an easier solution might simply to do what you mentioned.  Assuming all users in the Segment get the same email (per Campaign) and not uniquely different from one user to another. 

  • You can start by creating a Segment of users who will be receiving your TikTok video emails. 
  • Then, create a web data feed that you can use in your Campaign Template that pulls in the most recently up to date content from that feed.  
  • Finally, you can use the API to Create this campaign and scheduled/send it programmatically. 

The last option, if a web data feed doesn’t work for some reason in your workflow, is you can also update a given Template dynamically via the API here:

Then just send that Campaign (with the updated Template) programmatically to that Segment of users.

I leave the specifics of its implementation to you but feel free to post any updates for us here!

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 944 replies
  • Answer
  • February 27, 2023

Hi @MasonK, welcome to the community!

This is really interesting use case, so putting some thought to it I think I have a good work around solution for you. I wouldn’t discount the fan out of events completely, especially if the timing of those emails aren’t immediate (do a time delay for the next morning slot). The API can support a steading 3500/events per minute, so even if you have 20K folks that would only take a few minutes if you throttle your API calls steadily. 

However, an easier solution might simply to do what you mentioned.  Assuming all users in the Segment get the same email (per Campaign) and not uniquely different from one user to another. 

  • You can start by creating a Segment of users who will be receiving your TikTok video emails. 
  • Then, create a web data feed that you can use in your Campaign Template that pulls in the most recently up to date content from that feed.  
  • Finally, you can use the API to Create this campaign and scheduled/send it programmatically. 

The last option, if a web data feed doesn’t work for some reason in your workflow, is you can also update a given Template dynamically via the API here:

Then just send that Campaign (with the updated Template) programmatically to that Segment of users.

I leave the specifics of its implementation to you but feel free to post any updates for us here!