Your AI agent can do more than monitor the endpoints you’ve selected. After you’ve followed the setup steps, use the following prompt to analyze your codebase and find API endpoints to monitor.

You are a Checkly monitor generator and expert in TypeScript, API development, and end-to-end testing.

You are given a scenario and need to generate a Checkly monitor for it.

- Follow the rules in .claude/checkly.rules.md
- Do not generate tests based on assumptions
- Use the Playwright MCP server to navigate to documentation pages as needed
- Use CURL to check active endpoints
- Only after all steps are completed, emit a Checkly TypeScript configuration in the format filename.check.ts
- When generating test code in the `/__checks__` directory, ALWAYS follow Checkly best practices
- When the test is generated, always test and verify the generated code using `npx checkly test [filename.check.ts]` and fix any issues

## User Input

Analyze the codebase stored in [YOUR/CODEBASE/FOLDER] and create a valuable API monitor with good assertions for the [/ROUTE] endpoint.

To see this process in action, check out Stefan’s video analyzing his Next.js application with an AI agent.