Flikk
Building flows

Trigger

Start a flow on demand from the app, the API or an agent.

A manual node starts a run when someone asks for one. People start it with Run in the app, code calls POST /api/run/flows/{flowSlug}, and agents call the flow as a tool. The app shows this node as Trigger.

Spec

FieldMeaning
authWhether starting the trigger needs an API key. "none" or "apiKey". Optional; defaults to "none".
{ "slug": "trigger", "type": "manual", "spec": {} }

Inputs

Set input on the node to declare what a run takes. Each field has a slug, a type and an optional required, and a field with its own fields is a group.

{
  "slug": "trigger",
  "type": "manual",
  "spec": {},
  "input": {
    "type": "object",
    "fields": [
      { "slug": "email", "type": "email", "required": true },
      { "slug": "contract", "type": "file" },
      {
        "slug": "address",
        "type": "object",
        "fields": [
          { "slug": "city", "type": "text" },
          { "slug": "zip", "type": "text" }
        ]
      }
    ]
  }
}

A run's input must match these fields, or the call answers 400 with one issue per field, like email: required. In the app, Run opens a dialog that asks for each field and opens groups one level at a time.

An agent that calls this flow as a tool gets the same fields as the tool's payload, so it knows what to send.

Files as inputs

A file or media field takes a stored file as { id, name, mime, size }. Upload the file or import it from a link with the files API first, then pass the file from the response.

{
  "input": {
    "email": "ana@example.com",
    "contract": {
      "id": "0b8f1c2e-6d0a-4a51-9f3e-2b7c4d1e8a90",
      "name": "contract.pdf",
      "mime": "application/pdf",
      "size": 48213
    }
  }
}

On this page