- Perform complex calculations
- Manipulate data and variables (see variables in code)
- Call external APIs
- Add guardrails such as custom error handling, rate limits, permission checks, and fallbacks
Execute Code Cards allow you to generate one-time code snippets at specific points in your Workflow. For reusable code snippets, use Actions.
Generate code using AI
The Execute Code card allows you to generate code using AI, so you don’t have to write it all from scratch:
Review AI-generated code before production. Store secrets in configuration variables (use
env in code), and handle slow or failed requests with try/catch, timeouts, or fallback flows.