LiyaEngine Docs
Platform

Workflow Builder

Chain intents, agents, and tool calls into a visual, testable, deployable pipeline.

Dashboard

The Workflow Builder lets you chain multiple intents, agent runs, and tool calls into a single automation — built visually in the dashboard, testable before you deploy, and callable via webhook once live.

API reference

GET    /dashboard/workflows                # list workflows
POST   /dashboard/workflows                 # create a workflow
POST   /dashboard/workflows/copilot          # generate a draft from a natural-language description
GET    /dashboard/workflows/:id               # get a workflow + its steps
PATCH  /dashboard/workflows/:id                # update steps/config
DELETE /dashboard/workflows/:id                # delete
POST   /dashboard/workflows/:id/toggle          # enable/disable
POST   /dashboard/workflows/:id/deploy           # deploy to production
POST   /dashboard/workflows/:id/test-run          # run once without deploying

Generate a draft with the copilot:

POST https://api.liyaengine.ai/dashboard/workflows/copilot
Authorization: Bearer <jwt>
Content-Type: application/json

{
  "description": "When a support ticket comes in, check the knowledge base for a matching policy, draft a reply, and flag it for review if confidence is below 0.8."
}

The copilot returns a draft workflow (steps, connections, suggested config) you can edit in the visual builder before saving.

Test run before deploying:

POST https://api.liyaengine.ai/dashboard/workflows/wf_01HZ.../test-run
Authorization: Bearer <jwt>
Content-Type: application/json

{ "input": { "ticket_id": "tkt_123" } }

Returns the full step-by-step execution graph — the same view the dashboard's workflow builder renders — without affecting production traffic.

Step types

A workflow step can be an intent call, an agent run, a tool call, or a conditional branch. Steps pass structured output forward via input mapping, so a later step can reference an earlier step's result directly.

On this page