Common Use Cases
- Generate Bruno collections – Create API collections from your backend source code with requests, tests, and documentation.
- Write scripts and tests – Use the agent to write pre-request scripts, test scripts, and assertions. Reference Bruno’s JavaScript API Reference and Bru Lang in your instructions so the agent produces valid Bruno files.
- Automate workflows – Get help with CI/CD pipelines, environment setup, and collection organization.
Example: Create a complete Bruno collection from your backend API
If you want to create a new Bruno collection for your backend API endpoints from source code, you can use a prompt like:my-project
.cursor
rules
instructions.md
src
routes
app.js
server.js
bruno-collection
environments
local.bru
prod.bru
auth-api.bru
product.bru
user.bru
bruno.json
package.json
.gitignore
Example: Create a CI/CD pipeline for API tests
You can ask the agent to generate a CI/CD pipeline for your API tests using Bruno CLI. For example, with Cursor you can use:my-project
.cursor
rules
instructions.md
.github
workflows
api-tests.yml
src
bruno-collection
package.json
.gitignore
Example: Write automated test cases
You can ask your AI agent to write test cases for each API in your Bruno collection, including different edge cases.Prompt
Use a prompt like:expect syntax works in Bruno tests. The agent can produce tests such as:
Status codes and response body (happy path):