Build a "Hello, world" Flow

Postman Flows is a visual, low-code editor you can use to build nearly any workflow you can imagine. In this tutorial, you'll create a two-block Flow that outputs the text Hello, world. You'll learn how blocks and connections work and prepare yourself to build larger and more complex Flows.

Create a new Flow

You create Flows in a workspace. Use workspaces to organize your API projects and collaborate with your team.

To create a new Flow, do the following:

  1. Choose an existing workspace or create a new one.
  2. From the Postman sidebar, select Flow icon (stroke, large) Flows.
  3. Select Add icon (stroke, large) Create a new Flow > Flow icon (stroke, small) Create new Flow.
  4. In the sidebar, hover over the new Flow and select Options icon (stroke, large) View more actions > Rename.
  5. Rename the Flow to Hello, world.
  6. Select the Return or Enter key.

Add a String block

Use the String block to define text, which you can send to another block.

To add a String block, do the following:

  1. From the canvas toolbar, select Add icon (stroke, large) Block.
  2. Select String icon (stroke, large) String. You can also search for the block by entering String in search.
  3. To the right of the Start block, select the canvas to place the String block in that location.
  4. In the String block, enter the text Hello, world.

In the next procedure, you'll connect this block to an Output block to display your text.

Connect an Output block

When you connect two blocks, you connect one block's input to another block's output. Inputs are on the block's left side and outputs are on its right side. The Output block displays incoming data, such as the String block's string value.

To connect an Output block, do the following:

  1. Hover over the String block's output port. The pointer changes to a crosshair.
  2. Drag the output port to the right of the String block to place the Output block in that location.
  3. Select View icon (stroke, large) Output. You can also search for the block, by entering Output in search.

Run the Flow

From the canvas toolbar, select Run icon (stroke, large) Run.

"Hello, world" Flow

Congratulations! You built your first Flow and displayed Hello, world in an Output block.

Last modified: 2024/08/28