# Creating a workflow with AI

Describe the trigger, required inputs, ordered result, error behavior, and approval points; generate the draft, then inspect every node and mapping before testing.

![Creating a workflow with AI in Foxora v5.0.3](/docs/images/v5.0.3/automation/new-workflow.webp)

## Where this lives

Open **foxora → Workflows**.

A workflow is a reusable automation made of a trigger and ordered steps such as agent work, tool actions, conditions, delays, approvals, and delivery.

> **Safety:** Assume triggers and external data are untrusted. Validate inputs, limit credentials, prevent duplicate side effects, and require approval before irreversible operations.

## Steps

1. Open **foxora → Workflows**.
2. Describe the trigger, required inputs, ordered result, error behavior, and approval points; generate the draft.
3. Inspect every node and mapping before testing.
4. **Confirm the result.** Run the workflow with test data, inspect every step input and output, verify the final destination, and publish only the tested version.

## Choose the right path

- Use a task for exploratory work.
- Use a scheduled task for one prompt on a clock.
- Use a workflow for repeatable multi-step logic or event-driven automation.


## Confirm it worked

- Run the workflow with test data, inspect every step input and output, verify the final destination, and publish only the tested version.
- The screen, command, file, run, or destination named in this guide reflects the expected state.
