Inference Logoinference.sh

Flows Overview

Visual workflows that chain apps together.

Flows let you build multi-step processes without code. Connect apps, map data between them, and create powerful pipelines.


Why Flows?

Some tasks need multiple steps:

  • Image Pipeline: Generate → Upscale → Remove Background → Resize
  • Content Creation: Research → Write → Edit → Format
  • Data Processing: Extract → Transform → Analyze → Report

Instead of running each app manually, build a flow once and run it with one click.


Creating a Flow

From the Workspace

  1. Go to Flows
  2. Click New Flow
  3. The visual editor opens

The Editor

code
12                                                                  3   Nodes                          Canvas                          4                                                                  5                          6    + Input       Input    App A   Output         7                          8                                                                  9                                                       10    + App                                                       11                                                       12                                                                  13                                                       14    + Output                                                    15                                                       16                                                                  17

Building Step by Step

  1. Add an Input node — Define what the flow accepts
  2. Add App nodes — Drag apps from the sidebar
  3. Connect nodes — Click and drag between ports
  4. Map data — Configure how outputs flow to inputs
  5. Add an Output node — Define what the flow returns

Connecting Apps

Visual Connections

Drag from an output port to an input port:

code
1          2  Image Gen                Upscale    3                                      4      image  image     5          

Data Mapping

Click a node to configure how data flows:

yaml
1image: "{{image_gen.output.image}}"   # From previous app2scale: 2                               # Static value

Mapping Syntax

PatternExampleDescription
Previous output{{app_name.output.field}}Data from another node
Flow input{{input.field}}Data from flow input
Static value"hello" or 42Fixed value
Nested{{app.output.data.nested}}Access nested fields

Example: Image Enhancement Flow

The Flow

code
1Upload Image  Upscale (2x)  Enhance Colors  Download

Configuration

Input Node:

  • image (file) — The image to enhance

Upscale Node:

  • App: esrgan
  • Input: image{{input.image}}
  • Input: scale2

Enhance Node:

  • App: color-enhance
  • Input: image{{upscale.output.image}}
  • Input: saturation1.2

Output Node:

  • result{{enhance.output.image}}

Running

  1. Click Run
  2. Upload an image
  3. Watch each step execute
  4. Download the enhanced result

Flows as Agent Tools

Flows become powerful agent tools. Add a flow to an agent just like an app:

code
1You: Enhance this photo and make it ready for Instagram2 3Agent: I'll use the image-enhancement flow to process your photo.4       [Running image-enhancement flow...]5       6       Done! Here's your enhanced image, optimized for Instagram.

The agent sees the flow as a single tool, but it executes all the steps.


Deploying Flows as Apps

Turn your flow into a versioned app:

  1. Open your flow
  2. Click Deploy as App
  3. Configure:
    • Name
    • Description
    • Category
  4. Click Deploy

Now your flow:

  • Has its own API endpoint
  • Can be versioned
  • Appears in the Grid
  • Can be used by anyone (if public)

Flow Execution

When a flow runs:

code
12  Flow: image-enhancement                                     34                                                              5   Input           Complete                                6     image uploaded                                        7                                                              8   Upscale         Complete (12s)                          9     512x512  1024x1024                                   10                                                              11   Enhance         Running...                              12     Applying color enhancement                            13                                                              14   Output          Pending                                 15                                                              16

Each step shows:

  • Status (pending, running, complete, failed)
  • Duration
  • Logs and progress

Tips

Start Simple

Begin with 2-3 apps, then expand:

code
1 Don't: Build a 10-step flow immediately2 Do: Start with 2 apps, test, add more

Name Nodes Clearly

code
1 Don't: step1  step2  step32 Do: generate_image  upscale  remove_bg

Test Each Connection

Run the flow after adding each new node to catch issues early.


What's Next?

we use cookies

we use cookies to ensure you get the best experience on our website. for more information on how we use cookies, please see our cookie policy.

by clicking "accept", you agree to our use of cookies.
learn more.