Open your base and select Automations.
This opens the automations editor.
Change the trigger to When Record Updated.
Next, select the Run Script action. (Ignore the table required warning. It's stupid.)
Run Script takes you to the script editor.
Paste your script into the window. Wheeeee!
Airtable's only input mechanism for automation scripts is Input Variables.
You set them from the script editor:
There are two pprimary types of input:
- Static text
- Context-sensitive values, such as the current record and its fields.
We use both.
For GetCurrentRank.js set the following:
- Current keyword as keyword
- Client web domain as site
- Data For SEO username as username
- Data for SEO password as password
- Current recordId as recordid
These values are called out in the script to make them obvious.
For GetVolume.js:
- Current keyword as keyword
- Current recordId as recordid
- Keywords everywhere API Token as apitoken