Hi @piotrekw, welcome back to the community.
I have a few follow-up questions if I understand you correctly:
- Does your Script create a “Klaviyo Campaign” programmatically to the Segment?
- Are the Day 1 and Day 2 the only issue you’re trying to resolve? Are you seeing someone from Day 1, also get campaigns on Day 3? (or later?)
- What are your Segment Filter Rules?
- Is the goal just to send a campaign the next day after someone is added to the List (but only if they fall into the Segment Filter rules?)
If I understand what you’re doing, you are scheduling Campaigns (programmatically via the API) every time you add profiles to the List, for only those that meet your Segment rules. I’m not sure if doing it programmatically is required for some reason (adding in custom data or logic?), but a few things you can consider:
- Segmentation processing time can vary based on the the rules you applied. Klaviyo explains how often Segments are updated based on a few factors that you already pointed out, so i agree with you that may be an issue: Understanding how segments update
- Use the Smart Sending, and make sure your Smart Sending window is turned on long enough between your automated Campaigns can possibly block someone from getting the emails twice.
- Add some timing buffer in your Segmentation rule so that people who are added to the List close to a Campaign send time are not part of the Segment. (E.g. Create Date is Before 1 Day ago)
Finally, unless there’s some reason you’re doing it the way you are via a programmatic Campaign send. It seems to me you should just create a Segment Triggered Flow, that sends the “campaign” email through a Flow (and not as a Campaign).
You can put a Time Delay so that it always waits until the next day (at a specific time). A Segment Triggered Flow will guarantee that a user can go through the Flow exactly once without repeats (even if they exit the Segment and are added back again).
You can read more about this here:
If you share some screenshots of your Segment, or further explain this “script driven Campaign,” I’d be happy to help further.