Flow Framework
Status-driven workflow engine. Define multi-actor workflows with states, transitions and guards. Internal and external actors collaborate via a tamper-proof state machine.
Endpoints (11)
Create a flow definition with states, transitions and optional steps.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | ✓ Yes | |
slug |
string | ✓ Yes | |
initial_state |
string | ✓ Yes | |
states |
array | ✓ Yes | |
transitions |
array | ✓ Yes | |
steps |
array | No |
Get a flow definition by slug.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes |
List all flow definitions for this project.
No input parameters required.
Delete a flow definition. Only allowed if no active instances exist.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes |
Start a new flow instance from a definition.
| Field | Type | Required | Description |
|---|---|---|---|
definition_slug |
string | ✓ Yes | |
external_actor_email |
string | No | |
internal_actor_id |
integer | No | |
meta |
object | No |
List flow instances, optionally filtered by state or definition.
| Field | Type | Required | Description |
|---|---|---|---|
state |
string | No | |
definition_slug |
string | No | |
limit |
integer | No |
Get a flow instance with current state and available transitions.
| Field | Type | Required | Description |
|---|---|---|---|
instance_id |
integer | ✓ Yes |
Trigger a state transition on a flow instance. Guards are evaluated server-side before applying.
| Field | Type | Required | Description |
|---|---|---|---|
instance_id |
integer | ✓ Yes | |
trigger |
string | ✓ Yes | |
data |
object | No |
Save step data without triggering a transition.
| Field | Type | Required | Description |
|---|---|---|---|
instance_id |
integer | ✓ Yes | |
step_id |
string | ✓ Yes | |
data |
object | ✓ Yes |
Get the full audit trail for a flow instance.
| Field | Type | Required | Description |
|---|---|---|---|
instance_id |
integer | ✓ Yes |
Get all transitions the current actor can trigger from the current state.
| Field | Type | Required | Description |
|---|---|---|---|
instance_id |
integer | ✓ Yes | |
actor_type |
string | No |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| create_definition | flow_framework_create_definition |
| get_definition | flow_framework_get_definition |
| list_definitions | flow_framework_list_definitions |
| delete_definition | flow_framework_delete_definition |
| create_instance | flow_framework_create_instance |
| list_instances | flow_framework_list_instances |
| get_instance | flow_framework_get_instance |
| advance | flow_framework_advance |
| submit_step | flow_framework_submit_step |
| get_history | flow_framework_get_history |
| get_available_transitions | flow_framework_get_available_transitions |