Create Flow

Compose

Creating flows with ZBrain Flow is easy. Drag sidebar components onto the canvas and connect them together to create your pipeline. ZBrain Flow provides a range of components to choose from, including LLMs, prompt serializers, agents, and chains.

Build

Building a flow means validating if the components have fulfilled prerequisites and are properly instantiated and clicking the Save button.

Get Flow

Using the provided ZBrain API, users can easily fetch the created ZBrain flow. By sending a GET request to the given URL. Users can get the latest saved flow for the specific app.

  • Request URL: https://app.zbrain.ai:8002/api/v1/flows/get/{flowId}?tenant_id={tenantId}

  • Request Method: GET

  • Query strings:

    1. tenantId: << tenantId >>

  • Path Parameters:

    1. flowId: << flowId >>

  • Request Headers:

    1. Content-Type: application/json

Parameters

flowId

flowId for a specific app

tenantId

tenantId of user

  • Sample Request Query Payload:

    ?tenant_id={tenantId}
  • Sample Response:

    {
      "description": "string",
      "name": "string",
      "id": "string",
      "data": {
        "nodes": [ "Array of nodes"
        ],
        "edges": [ "Array of edges"
        ],
        "viewport": {
             }
      }
    }

Last updated