How to Run a Script in Airtable, Create Automation Easily 2026
By Impran M N
For workflows that go beyond Airtable's standard automation actions, the Run a Script step lets you write custom JavaScript that operates directly on your record data. This guide covers setting up the trigger, passing input variables into your code, and using the live test feature to debug before going live.
01Open the Automations tab
Navigate to the Automations directory within your Airtable base.
02Create a new automation and trigger
Start a new automation and define your initial trigger event, such as a record being created or updated.
03Add the Run a Script action
Add a new action component and select the 'Run a script' developer tool from the list of available actions.
04Configure input variables
Define input variables to pass dynamic data, like active record IDs, directly into your scripting environment.
05Write your JavaScript logic
Type your custom JavaScript code into the integrated code editor, using the input variables you configured.
06Test and activate
Click the Test button to debug errors and confirm output success, then toggle the automation on to run it live.
Frequently asked questions
Do I need coding experience to use the Run a Script action?
Yes, this action requires writing JavaScript, so some coding familiarity is needed compared to Airtable's no-code automation steps.
Can scripts read and write data to my Airtable base?
Yes, the scripting environment provides access to your base's tables and records so scripts can read, create, or update data.
How do I pass data into my script?
You define input variables in the action's configuration, which map dynamic values like record IDs into your script's runtime.
What happens if my script has an error?
The Test feature will surface errors so you can debug your code before turning the automation on for live use.
Watch the full walkthrough
The same steps, demonstrated on screen from start to finish.



