Agent Mode Tips and Discoveries

Exploring Postman’s Agent Mode? You’re in the right place. This is your go-to space for quick, practical insights to help you get the most out of it.

Here’s how it works:

Every Tuesday and Thursday, we’ll share new Agent Mode Tips right here. Each one’s short, actionable, and designed to help you level up quickly covering everything from getting started and debugging to using skills and automating your workflows.

We’d love you to be part of it. Share your own tips, screenshots, or any clever use cases in the replies. If you’ve found a unique way to use Agent Mode, tell us about it we might feature your idea in a future post.

Let’s make this thread the go-to place for mastering Agent Mode together.

7 Likes

6 posts were split to a new topic: Postman Agent Mode duplicated collections instead of deleting them

Tip #1 Create a new Collection with Examples

Starting from scratch? You can easily create a new Collection directly in Agent Mode to explore APIs, prototype ideas, or run local workflows.

Prompt:

Create a complete Library API Collection which includes:

  • CRUD based operations
  • A baseUrl placeholder for the API
  • Request and Response Examples

3 Likes

Tip #2 Create a Mock Server in Agent Mode

Need to test your API before the backend’s ready? Try creating a Mock Server directly in Agent Mode. It’s a simple way to simulate real responses using your existing Collection’s Examples, perfect for developing and testing without waiting for live endpoints.

Prompt:

Create a new mock server for my @Library API so that I can start calling the endpoints. Add the mock url to the baseUrl variable.

4 Likes

Tip #3 Adding Tests to a Collection

With Agent Mode, you can add and run tests. Use pm.test() scripts to validate your endpoints locally and catch issues early.

Prompt:

Create a set of tests for each endpoint in my collection. Run the tests using the Collection Runner once that have added to the Collection and provide a summary of the results.

1 Like

Tip #4 Debugging a Test Failure with Agent Mode

Got a failing test? Agent Mode provides detailed logs right where you’re running your requests. Use these insights to debug faster and identify the root cause with ease.

Prompt:

Can you help locate and fix the test error?

1 Like

Tip #5 Fork a Collection with Agent Mode

Need to experiment without affecting the main Collection? Fork it! Agent Mode makes it simple to clone and test locally, so you can explore and iterate safely.

Prompt:

Create a Fork of the @Library API collection in this Workspace. The fork name should be “development”.

Once created, open the “Get Book” request in the forked Collections so I can start making changes straight away.