Workflows
Automations your plori agent builds in chat: schedule, webhook, and manual triggers, safe test runs, credentials, per-run pricing, and plan limits.
A workflow is a standing automation that runs on plori without you or your agent taking part. "Every morning, fetch the new issues, have a model triage them, and post the result to my webhook" becomes a small pipeline that fires on its own schedule, while your agent sleeps.
You don't assemble it by hand. Describe the automation in chat and the agent builds it step by step from a catalog of steps, each one validated as it's added. Review the draft in the visual editor, test it, and turn it on.
Workflows vs scheduled runs
A scheduled run wakes your agent later with a prompt: one deferred agent turn, with everything an agent turn costs and can do. A workflow is a fixed pipeline that runs without an agent turn at all: cheaper, repeatable, and exactly the same steps every time. Use a scheduled run for "think about this tomorrow"; use a workflow for "do this same thing every day".
Triggers
A workflow fires one of three ways:
- On a schedule. Every N minutes, hourly, daily, weekly, monthly, or a cron expression you set.
- On a webhook. The workflow gets its own URL under
https://api.plori.ai/v1/hooks/...with an unguessable key. POST to it from any service and the delivery is accepted, buffered, and replayed into the workflow, with retries for up to an hour, so a brief platform restart between accept and run can't lose it. The caller always gets an immediate acknowledgment, not the workflow's result: the workflow cannot write a reply back to the caller. The URL only fires while the workflow is active. - Manually. Run it on demand from chat, from the CLI, or the editor's "Run now" button.
A new workflow does not run on its own. A workflow with a schedule or webhook trigger
goes live only when you activate it. An MCP client cannot activate a workflow. It can run an active workflow, and the run uses the version you activated.
When it asks to run a workflow that is not active, plori returns a link (/agent/<agentId>?workflow=<workflowId>). You open the link,
review the workflow, and run it. For these requests, the REST endpoints
POST /v1/workflows/{id}/activate and POST /v1/workflows/{id}/executions return
403 with that link in the error text.
Watch-style automations ("new items in this feed") are built as a schedule plus a durable seen-before check that lives in plori's database. A later run skips an item that an earlier run already recorded, even though the process behind a workflow is recycled between runs. A delivery to an outside service can still fail.
What steps can do
The v1 catalog covers:
- HTTP requests to any API.
- Transforms: JSON, CSV, text helpers, and a field-to-field data mapper.
- An AI step that prompts a hosted model and returns its answer into the pipeline.
- Custom code steps in TypeScript, for logic the catalog doesn't cover.
- A small key-value store for state between runs (cursors, counters).
A workflow runs its steps in order after the trigger. A router step can send the run down one of several branches, or down every branch whose condition matches. Each branch holds ordinary steps. A branch cannot contain another router, and there is no loop step.
Credentials
Steps that call authenticated APIs use named connections. A connection can hold a directly supplied API key, bot/bearer token, multi-field credential, or secret-bearing URL such as a webhook. Registered services can instead use a managed OAuth 2.0 connection. Reddit Ads is a managed OAuth provider.
You fill a connection once, from the Connect card in chat or the connections rail in the editor. The value is sealed the moment it's saved: the model and the conversation transcript never see it, and it's decrypted only when the workflow actually fires, directly into the process that runs it.
For Reddit Ads, create your own app in Reddit's developer console, register
https://api.plori.ai/v1/oauth/callback as its redirect URI, then enter the app's client ID and
client secret in the connections rail and choose Authorize. Plori stores the resulting grant
for your account, refreshes it server-side when needed, and lets workflows or explicitly linked
agent variables reuse it. For workflow runs, app secrets and provider tokens are write-only: the
API never returns them to the editor, and they are not placed in the builder's prompt, transcript,
or workflow definition.
Linking a grant to an agent environment variable is a separate, explicit trust choice. The fresh access token reaches that agent's command subprocesses, not its prompt. Plori removes exact secret values from command output before it reaches the model or saved events, but a model-controlled command can still transform or send the token. Bind only the provider access that you intend the agent's commands to use.
An “app” is not always OAuth. Telegram and Discord bots use bot tokens, Discord webhooks use a secret-bearing URL, and many services use API keys; save those through the matching direct connection fields. Another OAuth service needs a reviewed provider profile before Plori can run its browser grant and refresh flow. Plori does not accept arbitrary authorization or token URLs from a connection because that would let untrusted input choose where server-held credentials are sent.
Known services are wired automatically. When an HTTP step targets an API in Plori's channel
registry, the platform places the connection exactly where that API expects it. Current direct
profiles include Discord webhooks, Slack bot tokens, and TwitterAPI.io API keys. This keeps a
generated step from, for example, guessing Bearer auth for an x-api-key service. Services
outside the registry still work with an explicitly authored named connection reference in the
request.
Testing safely
A test run is the default way to fire a draft, and it's built so a test can't act on the world by accident:
- The run stops before the first step that would write anywhere outside the workflow (an HTTP POST, for example). Read-only requests like GET run for real, against the real API, so you see real data flowing through your steps.
- Custom code steps run with their network access blocked during a test, whatever the code inside them tries to do.
- When you're ready to exercise the side effects too, you can explicitly ask for a full run, which executes everything.
What workflows cost
Prices render live from the billing system on the pricing page; in short:
- Building and editing are free.
- A run that actually happened (it succeeded, failed, or hit the 5-minute runaway protection stop) costs $0.01 flat, any number of steps, with the first 90 seconds of runtime included, then $0.01 per additional started minute. Fires that the platform skips or loses are never billed.
- One price for every run, no matter how it starts: a schedule, a webhook, a manual run, or a test from chat. A run consumes compute, so a run is billed; the trigger never changes the price.
- An AI step bills its model usage on top at the model's own rate, like any model call, so the flat fee alone is not the total for workflows that call a model. With your own provider key that model usage costs $0.
Every workflow also has its own monthly spend cap, so a runaway schedule can't drain
your balance unnoticed. When a schedule reaches the cap, its cron is paused after one recorded
skip; with failure notifications enabled, that produces one chat warning rather than the
same warning every hour. A run that is already going and reaches the cap is stopped and its
cron is paused too, billing only the time it used. Raise the cap and activate the workflow
again when you want to resume it. An empty account balance still records skipped fires rather
than billing them. Set the cap in the visual editor's Settings panel (0 removes it), or over
the workflow API with your API key: PUT /v1/workflows/{id} with {"spend_cap_month": <credits>, "base_version": <current version>}.
Limits by plan
| Plan | Active workflows |
|---|---|
| Free | 1 |
| Pro | 5 |
| Power | 20 |
Drafts don't count against the active limit; upgrading raises it. No plan limits how many workflow runs happen at once. Anonymous trials can draft and test a workflow but must sign up to activate one.
Run length is not a plan feature. Every run on every plan is stopped at a uniform 5-minute runaway protection limit, a system safety stop for runs nobody meant to leave going forever. A run stopped there is billed for the runtime it used, like any run that finished on its own.
Notifications
Each workflow has a notification preference: off, failures (the default: a message in
your agent's chat when a run doesn't succeed), or all (a message on every run).
Workspace association
Workflows belong to your account and can be associated with a Workspace. Agents working in that Workspace can see, build, edit, and run its workflows from a chat, whichever agent created them. They cannot reach workflows of other Workspaces. Deleting a Workspace detaches its workflows. They remain in your account.
In the web app, open Workflows in a Workspace conversation to see its workflows. Select a row to open the workflow. The Unassigned section lists workflows with no Workspace. Select assign to this Workspace to assign one to the current Workspace. Detaching a workflow from a Workspace keeps it in your account.
From your own tools
Use the CLI to create a draft in a Workspace, ask its agent to build the steps, and run it:
plori workflow create digest --workspace project
plori workspace run project "Build the steps for workflow digest"
plori workflow list --workspace project
plori workflow run digest --workspace project
plori workflow execution digest <exec-id> --workspace project
plori workflow list lists all workflows in your account. --workspace scopes workflow
name lookup for run and execution. workflows is an alias for workflow.
The MCP server has no direct workflow management tools. Use
send_workspace_message to ask a Workspace agent to build a workflow.
Related
- AI-built workflows: the overview of what a standing automation is and how your agent builds one.
- Pricing: the live workflow rate card.
- Scheduled runs: one deferred agent turn instead of a standing pipeline.
- Bring your own model key: make AI steps bill your provider directly.
- Why a workflow engine can say OK after a failed step: the protocol rule behind plori's authoritative execution status.