/ AI Rule Builder
Turn a plain-language description into a working mock response rule — open AI Rulesfrom a project's header.
Type what you want in natural language, for example:
“Return a 401 with an error message when the Authorization header is missing on GET /profile”
Click Generate to send the description to the AI rule generator (requires GEMINI_API_KEY to be configured on the server).
The generated rule is validated before you can apply it — if it doesn't parse into a valid response rule, you'll see an error instead of a silently broken endpoint. Once it looks right, click Apply to add it to the project.
AI fill (in Project Integrations) generates example response bodies from an existing OpenAPI schema. The AI rule builder instead generates the conditional logic itself — status codes, headers, and matching rules — from a description you write, with no schema required.
For rules you write by hand instead, see Response Customization.