# Workflow node

![](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LB0RTB-jl8RVmWX9aeE-887967055%2Fuploads%2Flw0xR5NYWiPrgBGKXWgv%2Fletsflow.png?alt=media\&token=0b6255d6-ea5f-4be8-87b3-5cc6d33b5ace)

[LetsFlow is a workflow engine](https://letsflow.io) for running processes, described in YAML or JSON.

{% tabs %}
{% tab title="YAML" %}

```yaml
schema: "https://specs.letsflow.io/v0.3.0/scenario#"
title: My first scenario

actors:
  user:
    title: The user

actions:
  complete:
    title: Complete the process

states:
  initial:
    on: complete
    goto: (success)
```

{% endtab %}

{% tab title="JSON" %}

```javascript
{
    "schema": "https://specs.letsflow.io/v0.3.0/scenario#",
    "title": "My first scenario",
    "actors": {
        "user": {
            "title": "user"
        }
    },
    "actions": {
        "complete": {
            "title": "Complete the process"
        }
    },
    "states": {
        "initial": {
            "action": "complete",
            "transition": "(success)"
        }
    }
}
```

{% endtab %}

{% tab title="JSON (full)" %}

```javascript
{
    "$schema": "https://specs.letsflow.io/v0.3.0/scenario#",
    "title": "My first scenario",
    "actors": {
        "user": {
            "$schema": "https://specs.letsflow.io/v0.3.0/actor#",
            "title": "user"
        }
    },
    "actions": {
        "complete": {
            "title": "Complete the process",
            "responses": {
                "ok": {
                    "title": null,
                    "display": "always"
                    "update": [ ]
                }
            }
        }
    },
    "states": {
        "initial": {
            "actions": [
                "complete"
            ],
            "transitions": [
                {
                    "on": "*.*"
                    "goto": "(success)"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}
