Skip to main content

Build Your First Flow

Learn how to build a flow.

Overview

Your journey to building flows starts here! Learn the essentials of using the fastn platform in this comprehensive tutorial.

Creating a Flow

Follow these simple steps to create your flow:

  • From the navigation menu on the left, click on “Flows” to navigate to the flows page.

  • Here you can see your currently available flows and add new ones.

  • Click on the “New” button to add a new flow.

flow-page

  • Give a name to your flow.

flow-creation-menu

  • Select the flow type. APIs are used for synchronous request/responses use cases, while Workflows are used for asynchronous jobs.

  • Click on "Build".

Building a Hello World Flow

  • In our new flow, let’s drag and drop a "Success" response to complete an end to end API.

Fastn

  • When our API is triggered it will return a 'Hello World' string.

  • To do this we can configure the "Success" step by clicking on it.

Fastn

  • We can run the flow using the "Debugger" to see the output.

Fastn

  • Alternatively, we can click on the "Embed this Flow" option to see generated code.

  • Use "Generate API Key" to create new API key with access to desired flows.

  • Once the API key is generated, the auto-generated code will be updated.

  • Select the desired programming language or copy the cURL request and integrate it in your app or use it with an API tool like Postman.

Fastn

The output looks good so we can deploy the API using the "Deploy" button on the top right.

Fastn

  • After the deployment, we can go to the "Embed this Flow" option again to see the integration code generated for the LIVE version.
Mission Success

Congratulations on creating your first flow! Wasn't that easy? 🥳