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 flows.

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 Display 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, you can select Fix with AI to fix the error using Postbot.

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/06/05