←

EmotionTrac / Workflow automation

Clone underperforming surveys.

A slow survey used to need someone to notice it and rebuild it. I built a second Python job on Render that identifies eligible surveys and launches a fresh version with the same targeting.

Trigger

At its scheduled Eastern time windows, the job groups live Cint surveys by their base name. It evaluates the newest version in each group once it is at least three and a half hours old, provided the original is still live.

Action

  1. Find the surveys that need another run

    The job reads the newest version’s completed interviews over the past five hours. More than 20 completions leaves it running as it is. At 20 or fewer, it becomes a candidate for cloning. Low-priced test surveys are skipped.

  2. Verify the original and rebuild the audience

    Immediately before creating a clone, the job asks Cint whether the original is still live. This prevents a lingering copy from restarting a survey the team has closed. For eligible surveys it copies the latest version’s settings, active qualification rules, and audience quotas, then sets the new version live.

  3. Price the new copy

    A clone from a survey with fewer than five recent completions gets a proposed price increase. A stronger response pace keeps the starting price, subject to the interview-length cap. The team gets a Slack summary when clones are created.

Clone eligibilityChecks before creating a survey
Latest version is too new
Wait for more response data
More than 20 completions in five hours
Leave the current version running
Original closed or missing
Skip the group
Eligible slow survey with live original
Create a new version

Impact

Slow surveys could get a fresh version between staff check-ins. Together, survey cloning and dynamic pricing helped surveys finish 40% faster.