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 Flows.
  3. Select Add icon Create a new Flow > Flow icon Create new Flow.
  4. In the sidebar, hover over the new flow and select Options icon 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 Block.
  2. Select String icon 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 a Display 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 Display block displays incoming data, such as the String block's string value.

To connect a Display 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 Output. You can also search for the block, by entering Output in search.

Run the flow

From the canvas toolbar, select Run icon Run.

"Hello, world" flow

Congratulations! You built your first flow and displayed Hello, world in a Display block.

Last modified: 2024/08/28