Setup with an Agent
Set up an optimization with your coding agent.
Paste this prompt into your coding agent. The agent sets up an optimization with you in four steps and asks for your approval at each step.
Set up Levered in my project: https://levered.dev/start.md1. Define the goal
The agent reads the project and proposes what to optimize.
- Pick the goal, for example sign-ups, revenue or engagement.
- The agent lists the problems that keep users from the goal and proposes one change for each problem.
- The proposal states the number of variants and an estimate of how long the model needs to find the best one. Confirm or adjust it.
2. Create the variants
The agent builds each variant in the app on a new branch.
- Review the variants in the dev server. The agent adds a Levered button at the bottom right of the page. The button opens a menu for switching between the variants.
- Ask for changes until they are right. The variants are fixed once the optimization is live.
3. Start the optimization
The agent creates the optimization in Levered and connects the app to it.
- Sign in to Levered or create a free account when the agent opens the browser.
- The agent creates the metric and the optimization, writes the API key to the env file, adds the tracking, and checks it with test events.
- Merge the branch, add the environment variables to the hosting, and deploy. Users then receive the variants.
4. See results
Ask the agent how the optimization is performing, or open the dashboard. The results show the leading variants, their chance to win and the lift.