Create and attach an action
Open Actions and create a workflow with a recognizable ID. Choose supported operations such as Set state, Increase number, Append to list, Navigate to screen, Show dialog or Request API. Review each target and value before saving.
- Choose an outcome such as adding a local message.
- Ensure state and destination screens exist.
- Configure steps in the intended order.
- Select the triggering button in Design.
- Attach the action in Inspector.
- Try the complete flow in Preview.
Reuse a workflow only when controls represent the same behavior. Check references before deleting an action.
Append a message and clear the composer
The messaging kit uses text state draft and list state messages. The send_message flow first appends the draft, then clears it. Reversing that order discards the value before adding it.
Action: send_message
1. Append {{draft}} to messages
2. Set draft to an empty stringInspect Send locally's action link. In Preview, type a fictional message and verify that the list updates and the input clears. This is local interaction, not real delivery. Practice in the first-app exercise.
Use compatible targets and conditions
Number updates need number state; appends need list state. Conditional workflows use supported boolean state. Resolve missing targets and type mismatches before export.
For consent, bind a checkbox to a boolean and configure the supported condition. Test unchecked and checked cases. The transition should occur only in the intended branch. Review Project checks after renaming definitions used by multiple screens.
Trace the order and visible result
Test one step at a time when a longer action behaves unexpectedly. Verify the input binding, action target and new state, then check navigation. A valid action may display its result on a different screen than expected.
Use API scenarios before adding a public GET request. Keep service secrets and production authentication in a backend integration. Download a backup before replacing shared behavior and compare source when continuing outside the visual model.
After AI changes, repeat the main flow, an empty input and repeated taps. Confirm that the proposal preserved important action IDs; an attractive screen with a disconnected button still needs implementation.
Keep action checks repeatable
Write down the starting screen, input value, triggering control and expected result before changing a workflow. For send_message, the expected result is an appended list item and an empty composer. For a quantity action, it is the changed number and recalculated display. Repeat the same small test after each change.
Do not use the name of an action as proof of its implementation. Inspect its steps and targets. A Show dialog operation can explain a local result, but it cannot stand in for an unimplemented payment, booking or server request.