How a workflow starts
Every workflow execution begins with a trigger — something that tells the platform to run the workflow with specific input. MagOneAI supports five trigger sources so you can wire workflows into whatever surface your users already use.Manual
Run the workflow from Studio with the Run button. Perfect for testing drafts and ad-hoc execution.
API
Start a workflow from another system by calling MagOneAI’s workflow API. Ideal for backend automations and system-to-system integration.
Chat
A message in MagOneAI Hub triggers the workflow. Users describe what they want in natural language; inputs are extracted automatically.
Schedule
Run on a cron-style schedule. Good for reports, periodic syncs, and maintenance jobs.
Webhook
Accept a signed webhook from an external service (e.g. a vendor or internal tool) to kick off a workflow on an event.
Defining what inputs the workflow expects
Every workflow has a Start node that declares what input it accepts. This input schema drives two things:- The run form in Studio — Studio renders a form based on the schema so you can run the workflow with the right inputs.
- Validation at trigger time — API calls, chat-extracted parameters, scheduled runs with static inputs, and webhook payloads are all validated against the schema before the workflow starts. Bad inputs fail fast with a clear error.
Using inputs inside the workflow
Inputs and trigger metadata are available to any activity in the workflow through template variables:{{input.<field>}}— values from the trigger input (whatever the Start node accepted).{{system.user_id}},{{system.execution_id}},{{system.project_id}},{{system.timestamp}}— contextual values the platform injects automatically.{{<activity_id>.<field>}}— output from an upstream activity.
Trigger types in detail
Manual (Studio)
Run the workflow directly from Studio’s run panel. Fill in the input form, submit, and watch execution live on the canvas. You can target the currently published version or the latest draft — see Versions & publishing for how to test drafts safely. Use manual runs when developing, debugging, demoing, or processing a one-off request.API
Expose the workflow to other systems via MagOneAI’s workflow API. Your backend (or any HTTP client) sends the input payload and the platform starts execution, returning an execution identifier you can poll for status. Typical patterns:- Trigger a workflow from your own application when a record changes.
- Queue one execution per item in a batch job.
- Wire workflows behind your existing API gateway so downstream services don’t need to know about MagOneAI.
Chat
Any workflow in a project can be reachable from MagOneAI Hub. When a user sends a message, the Hub matches the intent to the right workflow, extracts parameters into the workflow’s input schema, and starts execution. Results stream back into the conversation when the workflow completes. Pair chat triggers with workflows that are naturally request-response — summaries, lookups, approvals, and guided actions work particularly well.Schedule
Add a schedule to a workflow to run it at cron times. You configure:- A cron expression for when to run.
- A timezone so “9am” means the local business hour, not UTC.
- A static input payload that the scheduled runs use, if any.
- Whether the schedule is enabled — disable temporarily without deleting the configuration.
Webhook
For workflows that should react to external events, enable the webhook trigger. MagOneAI gives you a URL to register with the upstream service; incoming requests are authenticated (via HMAC signature) and their payload becomes the workflow input. Use webhooks when an external system already knows how to push events — issue trackers, CRMs, payment providers, CI systems — so you don’t have to poll.Watching an execution live
While a workflow runs, Studio shows it live on the canvas.Node status
Each node shows whether it’s pending, running, completed, failed, skipped, or waiting for human input.
Current activity
The platform highlights which node is currently executing so you can follow progress on the canvas.
Timing
See how long the overall execution has been running, and how much time each activity took.
Intermediate data
Inspect the input and output of each completed activity — useful when something isn’t matching what you expected downstream.
Retry and error handling
Real-world tools fail occasionally — rate limits, timeouts, transient network issues. MagOneAI lets you set an error-handling strategy per activity, so important steps can be resilient without wrapping them in custom logic.Strategies
- Retry — Try the activity again, with a configurable number of attempts and backoff between them. Best for transient errors like rate limits or timeouts.
- Respond — Stop the workflow gracefully with a predefined response. Useful when you want a clean user-facing failure rather than a crash.
- Abort — Fail the execution immediately. Appropriate for errors that should not be silently retried, such as invalid input or authorization failures.
Conditional routing around errors
For more nuanced recovery, use a Condition node after the risky activity to route based on the outcome — success goes one way, failure goes to a fallback path that escalates to a human, tries an alternative, or records the failure for later review.Execution history
Every workflow keeps a history of its runs so you can audit, debug, and improve over time. From the use case’s Executions view you can:- Filter by status (running, completed, failed, waiting), by trigger type, by date range, or by fields in the input.
- Drill into any execution to see the timeline, the input/output of each activity, agent reasoning, and tool calls with their parameters and responses.
- Inspect the variable store at each step — what values
{{input.*}},{{system.*}}, and upstream activity outputs held when this activity ran. - See which version ran — useful when debugging a change: was this the new workflow, or the previously published one?
- Replay a failed run with the same input after fixing the underlying issue.
Good patterns
- Start simple, then add triggers. Get the workflow working with a manual run in Studio first. Expose it via API, chat, schedule, or webhook only once it’s trustworthy.
- Keep input schemas honest. The schema is your contract with every trigger source — narrow, well-described fields make API integration easier and help chat triggers extract the right parameters.
- Use retry for transience, not logic errors. Retrying a genuine validation failure just delays the problem.
- Pair with versions & publishing. Scheduled runs, chat triggers, and API callers all resolve to the published version, so iterating safely means publishing deliberately.
Next steps
Workflow overview
Back to activities, the canvas, and workflow basics
Versions & publishing
How the published version gets resolved at trigger time
Memory
How trigger input flows through the variable store
Human task node
Workflows that pause for human input