Automation & Workflows

Chain multiple steps into a workflow, build them with a wizard, and schedule them to recur.

When a request involves several steps β€” gather data, transform it, deliver it β€” MeghaOS builds a workflow: a DAG of steps the agent runs in parallel where possible. This page is the practical guide; for internals see the Orchestrator and Workflow Engine.

Just describe the whole thing

You don't build the steps by hand. Describe the end-to-end task and the agent decomposes it:

"Search for the top 5 AI news stories this week, write a short summary of each, and email the digest to me."

The agent plans three steps, runs the search, summarizes, then emails β€” passing data between steps automatically. You get a task tracker card showing each step's status.

More example workflows

Say…Steps the agent plans
"Pull NVDA financials and build me an Excel model"GET_FINANCIALS β†’ CREATE_FINANCIAL_MODEL
"Read this PDF invoice and add a row to my expenses sheet"EXTRACT_INVOICE_DATA_PDF β†’ APPEND_XLSX
"Summarize #support today and post the recap to #leads"SLACK_READ β†’ summarize β†’ SLACK_SEND
"Research competitor pricing and make a comparison table"SEARCH_WEB β†’ EXTRACT_STRUCTURED_DATA β†’ comparison widget

Parallel steps & data passing

Steps with no dependencies run at the same time; dependent steps wait and consume earlier results via $variables. "Get the weather in Tokyo and London and compare them" fetches both in parallel, then composes a comparison. See variable substitution.

Human-in-the-loop

A workflow can pause for your review before a sensitive step (e.g. before actually sending an email). You approve, edit, or cancel. Controls:

ActionEndpoint
PausePOST /api/workflows/{id}/interrupt
ResumePOST /api/workflows/{id}/resume
Edit / inject inputPOST /api/workflows/{id}/intervene

Build with the wizard

Prefer a guided, conversational builder? Start the workflow wizard β€” it asks questions and assembles the workflow with you:

StepEndpoint
Start a sessionPOST /api/workflows/wizard/start
Continue the chatPOST /api/workflows/wizard/chat

(Backed by, surfaced in the shell's workflow builder.)

Save & schedule

Workflows are saved and can be scheduled to recur β€” daily digests, weekly reports, hourly checks:

ActionEndpoint
List schedulesGET /api/workflows/recurring
Create a schedulePOST /api/workflows/recurring
Remove a scheduleDELETE /api/workflows/recurring/{schedule_id}

Scheduling is handled by ; history lives in your device.

Specialized roles (personas)

For richer multi-step work, the planner assigns personas to steps β€” researcher, writer, coder, analyst, coordinator β€” so each step's output is shaped by that role's expertise. A research-then-write workflow reads more like a team handoff than a single prompt. See personas.

Self-extending automation

If your workflow needs a capability no plugin provides, the agent writes the plugin for it at runtime (self-extension) and continues β€” so automations aren't limited to today's tool list. See Creating Plugins.