Structure
- Action.py — Implementation.
- README — Purpose, I/O, examples.
- requirements.txt — Pure‑Python dependencies (no binary installs).
Contract
- Inputs — Typed, minimal, documented.
- Outputs — Deterministic structure; document edge cases.
Workflow
- Define input/output and write
Action.py. - Pin dependencies in
requirements.txt. - Test with small Payloads via Execute.
- Reuse across Flows and as Agent tools.
Loop Support
Actions now support iterative execution with loops:- For loops — Iterate over collections and lists
- While loops — Continue until a condition is met
- Loop state management — Proper handling of iteration context and variables
OAuth Integration
Actions can access OAuth credentials for third-party API integrations:- Automatic token refresh before expiration
- Secure credential injection at runtime
- Multi-provider support (Google, GitHub, Slack, Microsoft, etc.)
- Token management handled by the platform
File Storage
Actions can save and retrieve files using the Storage system:save_file(filename, content, content_type)— Store a fileget_file(path)— Retrieve a file’s content
warning: Dependencies — Only packages that do not require binary installs in the build image are supported.