What is Action Flow
How to define your app's behavior without code
2 min read
Action Flow is how Layerz defines your app's behavior. Without writing any code, you can build "when this happens, do this."
If the design is what your app looks like and data is what your app knows, then Action Flow is what your app does.
An Action Flow is a sequence of actions
A single Action Flow is several Actions chained together in order. Each Action does one small thing — navigate to another screen, change data, show an alert, call an API, and so on. The app runs by executing these actions from top to bottom. Which actions are available is covered in Types of Actions.
The behavior model: Event → Flow → Data → Design
An Action Flow doesn't run on its own. You have to connect it to an Event. A button tap, the moment a screen appears, a search button click — these are events.
The whole flow can be summed up in one sentence.
An event calls a flow, the flow changes data, and data updates the design.
For example, it works like "tap the Add button (event) → add an item to the to-do array (flow/data) → the List updates automatically (design)."
Next steps
- Connecting to Events — which events you can attach a flow to
- Types of Actions — every action you can use
- Conditions & Branching — behaving differently depending on the situation
- Action Flow Parameters — building reusable flows
Splitting things into several small, clear flows makes them easier to manage. Build frequently used behavior as a flow with parameters and reuse it in many places.