← Back to library

Have a browser agent run your API tests in Postman

AshutoshShrivastava (@ai_for_success) asks Perplexity Comet to test new API endpoints in Postman after development. Given context about the payload, it generated several test payloads for different cases and wrote up the results once the run finished. We add a test-data rule and a review of failures before anything ships.

  • OutcomeGive a browser agent your endpoint details and let it build varied test payloads in Postman, run them, and write a results report.
  • SetupMinutes
  • LevelStarter
  • CreditAshutoshShrivastava (@ai_for_success)
View original
Works with
Custom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • You just finished an endpoint
  • You want quick edge-case coverage
  • Writing test payloads by hand is slow

Not for: Production endpoints with real customer data; Replacing an automated test suite in CI

What do you need, and what do you get?

You need

  • Endpoint URL on a dev or staging server
  • Payload schema and auth notes
  • Expected responses

You get

  • Set of test payloads
  • Run results
  • Short report of failures

How does it work, step by step?

  1. Point at stagingUse a dev or staging URL and a test token only.
  2. Describe the contractGive field types, required fields, limits and expected status codes.
  3. Generate casesAsk for valid, missing-field, wrong-type, boundary and unauthorized payloads.
  4. Run and recordHave it send each request in Postman and note status, body and time.
  5. Report failuresGet a table of mismatches, then fix and turn the useful ones into permanent tests.

The prompt

Our own prompt, inspired by AshutoshShrivastava (@ai_for_success) and written to work in Custom agent. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt5 variables
Open Postman and exercise this staging endpoint: {method} {staging_url}. Auth: {test_token_note}.
Schema: {schema}. Expected: {expected_responses}.
Create and run payloads for: valid, each required field missing, wrong types, boundary values, unauthorized.
Return a table: case, request body, status, response summary, pass/fail versus expected. Use staging only.

Inspired by AshutoshShrivastava (@ai_for_success): Perplexity Comet is awesome if you find the right use case. I am using it for many things and one of them is asking.... The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Agents may skip cases unless you list the categories.
  • Never paste production keys into a browser agent session.

Our take

The value here is breadth on day one. A developer finishing an endpoint usually tests the happy path; a browser agent told the contract will happily throw missing fields and wrong types at it. Keep it on staging with throwaway credentials, and treat the report as a list of leads to confirm by hand. Ask for categories by name, because a vague request returns a handful of happy-path calls. Save payloads that found real bugs as fixtures so the next run starts from proven cases. Never point it at production. Include auth failure and idempotency cases. Review every red result before blaming the API. Prefer a dedicated Postman collection the agent extends rather than a disposable one. Merging, deploying and deleting stay with a person. Re-run the collection in CI after the agent session ends. Redact tokens from any report the agent writes before filing it in the ticket. Promote stable failing cases into the main automated suite the same day they are confirmed.

Where the time goes back: Edge-case payloads and a results summary come back in one pass instead of an hour of hand-written requests.

FAQ

Is this a replacement for CI tests?
No. Use it to find cases quickly, then keep the good ones in your automated suite.
Which browser agent?
Any that can drive Postman's web app; the post used Perplexity Comet.

Source and credit

Inspired by AshutoshShrivastava (@ai_for_success). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Perplexity Comet is awesome if you find the right use case. I am using it for many things and one of them is asking...
Creator
AshutoshShrivastava (@ai_for_success)
Published on
X
Original date
Nov 30, 2025
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Build one pull request dashboard across two DevOps servers

Have a coding agent build a small internal web page that gathers every open pull request from several repositories and highlights the ones needing action.

Credit: cmpalmer52 on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Clean up after coding agent sessions

Wrap every agent run in a process group that gets killed when the task ends, and clear old temp files on a schedule.

Credit: _matthew_ on Hacker News

Under an hour
IT & SecurityWorkflow✓ AI dry run

Fan one coding task out to parallel agents

Have a lead agent split a big job into independent pieces, start child agents on each, then combine and compare their results.

Credit: Jared Zoneraich (@imjaredz)

An afternoon+