Add Status-Code Tests with a Prompt
Hand-writing the same assertion for every request is exactly the kind of repetitive work Agent Mode is built to take off your plate — describe the check once and let it apply the pattern across your whole collection.
-
Open your Movies API collection from Part 1.
-
In Agent Mode, write a prompt like:
Add a post-response test to every request in my Movies API collection that checks the response status code is 200.
-
Review the test scripts Agent Mode proposes, then approve it.
Generate Documentation with a Prompt
Writing endpoint documentation by hand is tedious — Agent Mode can fill in the Docs tab for every request in your collection from a single prompt. Postman's Agent Mode recipes collect ready-made prompts for tasks like this.
-
Make sure you're in your [Your Name] - AI Basics workspace, with your Movies API collection open.
-
In Agent Mode, type
@and select your Movies API collection as context. -
Write a prompt like:
Generate documentation for each endpoint, including purpose, parameters, and example responses.
-
Review what Agent Mode proposes, then approve it.
-
Open the Docs tab on a few requests to see the documentation Agent Mode generated.