Postbot in Flows

Postman's AI assistant Postbot can help build and debug your Flows. You can tell Postbot what you want to do in plain language, and Postbot will add the necessary blocks and write your FQL and TypeScript. Postbot can also find and fix errors in your Flow.

Postbot in Flows is a beta feature available to users with the Postbot add-on. The Postbot add-on is available on Postman Free, Basic, and Professional plans.

Use Postbot to help build your Flow

Postbot understands plain language and can help build the Flows you describe. For example, you can open a chat with Postbot focused on a Send Request block and enter Output how many keys are in the headers field. Postbot will create blocks and write FQL or TypeScript to output the result.

To have Postbot help build your Flow, do the following:

  1. In your Flow, drag and drop the Postbot icon Postbot icon onto a block, or select a block and use the keyboard shortcut P. A shadow around the block indicates Postbot is focused on it.

    Drag and drop Postbot
  2. Select Send a message here... and enter a prompt telling Postbot what you want to do.

  3. Select the Send message icon Send message icon. Postbot tells you what it's going to do and then adds the necessary blocks and FQL or TypeScript.

    Postbot helps build a Flow

    In this example, Postbot added the Evaluate and Output blocks, and wrote the TypeScript in the Evaluate block.

  4. To close the Postbot chat, drag and drop the Postbot icon to an empty space on the canvas or select the Esc key.

Fix an error in your Flow with Postbot

Postbot automatically detects errors in your Flow and offers to fix them. When you select a block with an error (for example, an Evaluate block with a variable name mismatch), a red Fix with AI button appears at the bottom of the block.

To fix an error in your Flow with Postbot, do the following:

  1. Select the block with the error, and select Fix with AI.

    Fix with AI button
  2. Postbot analyzes the error, fixes it, and describes what it did.

    Fix an error with Postbot in Flows
  3. To close the Postbot chat, drag and drop the Postbot icon to an empty space on the canvas or select the Esc key.

Last modified: 2024/04/29


Postmanaut dancing. Illustration.