Skip to main content

Airtable Automation Setup

Now that we have our document template ready, let's see how we can automate it whenever a record gets created in Airtable and store the resulting document in an Attachment field.

Video

The contents of this tutorial are in video format as well. You can watch it from here

Automation Script

Open the document template in editor and click on the Automation code icon in the toolbar (the right most button, after save). It will open Automation Script popup. Select the attachment field you want in the dropdown and copy the code shown in the popup.

Components Library

Image Selection

Setup Airtable Automation

  1. Open the automations tab in the desired base and create a new automation.
  2. In this example I'm setting the trigger as "When record gets created".
  3. Add a "Run Script" action after this trigger and paste the code you copied from the Automation Script popup
  4. Add input variable with name as "RECORD_ID" and choose value as data from record created "Airtable record id"

Click on "Finish Editing" and test your automation. You will see that the generated pdf will get stored in the selected Attachment field.

Image Selection