At a glance
Reference for AI: detection at a glance
Reference for AI: detection at a glance
- Detection runs as part of generation: sessions started from the REST API (
POST https://api.checksum.ai/public-api/v1/auto-generate), MCP (checksum_test_generate), a PR comment, or Slack detect and generate together. The web app can also run detection on its own per collection. - Source code improves results: detection reads routes and components from the connected code repository. The approach is picked automatically.
- Output is definitions, not code: each flow has a title, a description of the steps, and a start URL.
Automating detection
You don’t need the web app to automate detection. The agent detects what to test and generates the tests in the same session when you start generation from the REST API, MCP, a pull request, or Slack. To automate coverage for code changes, use PR-based generation (POST https://api.checksum.ai/public-api/v1/auto-generate, or auto-generate on PR open).
Detect flows from your coding agent
With the Checksum MCP server connected, your coding agent can run detection on its own, without generating tests yet:checksum_detect with your instructions: which areas to explore, what to skip, and how to log in. It can file the specs under a collection and let the agent read your connected code repositories too. It returns a sessionId your agent polls with checksum_session_status. When the session finishes, the flows are ready to review, and your agent can generate tests for exactly those flows with checksum_test_generate (by collection or by userStoryIds). Pass deepMode: true for a Deep run that pauses for plan approval. See Typical flows.
Auto-detect flows for a collection
Open Test Generation
Pick a collection
Click Auto-detect test flows
Answer questions

The Auto-detect test flows action on a collection.
Review detected flows
When detection finishes, the flows it found appear in your collection. Each flow has:- A title describing the user journey
- A description of the steps involved
- The start URL for the flow

A detected flow, ready to edit or generate.
- Edit the description or steps
- Delete it if it isn’t relevant
- Add manual flows for scenarios the agent didn’t detect
- Generate tests from it (see Generate Tests)
Detection vs manual flows
What detection finds
Detection scans your application to discover user flows you can test, like “User can sign up”, “Admin can create a report”, or “Customer can complete checkout”. The agent looks for:- Key user journeys through your application
- Critical business flows
- Common interaction patterns
- Edge cases and error scenarios

Detection runs per collection from the Test Generation page.
Use your source code
Detection reads your actual routes, components, and interactions from your connected source code repository. That makes it much more accurate and faster than exploring the rendered UI alone. Checksum connects your code repository during onboarding, using the read-only access you grant in the onboarding checklist. After that, you can change it at any time in Settings → Git Integration. Checksum picks the detection approach automatically, based on whether a code repo is connected. There’s nothing to configure.Deep vs Standard detection
Troubleshooting
I want to trigger detection from CI or a script
I want to trigger detection from CI or a script
POST /auto-generate, or auto-generate on PR open).Detection seems shallow or misses important features
Detection seems shallow or misses important features
The session failed because the app was unreachable
The session failed because the app was unreachable