New: Add code steps to your automations

You can now add a code step directly inside an automation. It is a lightweight way to drop in a bit of custom logic exactly where you need it, and you can write it, preview it, and edit it without ever leaving the builder. Code steps are available now.

What is new

A code step lets you run custom code as part of an automation flow, alongside your actions, conditions, and model steps.

  • Built right into the flow. Add a code step like any other step, then write and edit its code in place. Select the step to see a preview of its code in the side panel.
  • Write code with help from AI. A built-in assistant lets you describe what you want in plain language and generates the code for you. You do not need coding experience to use a code step.
  • A full editor when you need it. For technical users, the editor includes syntax highlighting, live error checking, and the ability to add packages, so you can build more advanced logic with confidence.

A code step selected in the automation builder, with its code shown in the side panel

Why it matters

Most custom logic is only needed in a single automation. Until now, even a small piece of tailored logic meant building a separate, reusable custom action, which was often more than the situation called for. Code steps give you the same depth of flexibility in a lighter package: you keep the logic right where it is used, iterate on it quickly, and, thanks to the AI assistant, you do not need to be a developer to create one.

If you do want logic that can be reused across many automations, a custom action is still the right tool. See Build and use a Custom Action for that approach.

Getting started

Open an automation and add a code step where you want the custom logic to run, then either describe what you need to the AI assistant or write the code yourself. New to automations? Start with What are automations?.

0 comments

Please sign in to leave a comment.