← All blog posts

How (and why) to use output.set in Airtable Automations

Output.set is a must-know function for anyone setting up workflows in Airtable Automations. It allows us to reuse variables in automation steps that we get from JSON responses.

October 15, 2022

Why use Airtable Automations?

Airtable Automations is a great alternative to tools like Zapier or make.com. The only downside at the moment is that Airtable Automations doesn't have a lot of native integrations with tools that you might want to integrate with.

That is where using Airtable scripts inside of automation comes into play.

‍

How it works and use cases

Adding your script between your trigger and native Airtable action steps

Setting up your workflows inside of Airtable Automations will be familiar to anyone who has set up a workflow before. You simply define your trigger like "When a record is created", "When a record matches a condition" or whatever else is more suitable to your use case.

From there you can add as many action steps as as you want including our scripting step. You can also add native integrations that available in Airtable like "Posting a tweet" or "Sending an email".

How to store API responses for future steps

If you do end up making an API call with the scripting step, you might want to use reuse variables that you can from an API response. For example, if you create a Webflow item, you might want to store the Webflow ID and Slug in your Airtable base. In order to do that you will need to use the output.set to define each variable you want to store.

‍

To try this out yourself, simply copy and paste the code snippet below after you run your API call in Webflow.

Use the code


output.set('Your Variable', yourResponse.value)
Copy

Dive Deeper with Webflow CMS scripting series

Learn how to create, update and delete Webflow CMS items individually or in bulk using Airtable Scripts.

Learn more →
Subscribe to the newsletter!

Get notified when I publish my next video or blog

😘 Got it!
Oops! Something went wrong while submitting the form.
ChatGPT 🀝 No-Code - How to create and schedule social posts with AI

ChatGPT 🀝 No-Code - How to create and schedule social posts with AI

As part of the booknotes.ai series, I will show you how to build a workflow for creating and scheduling social media marketing posts. For this example, I will be using Instagram, but you can set up this workflow for whatever other social media platform you want to use, like Twitter, LinkedIn, etc. In the first part of this series, I showed you how I created booknotes.ai, a book recommendation service created with AI.

How to build a book recommendation site with AI

How to build a book recommendation site with AI

I will show you how I used ChatGPT by OpenAI to create a book recommendation site in Webflow. I will take you behind the scenes and show you what tools I used, what processes I followed and what my thoughts are on using AI to generate these types of sites.

How to use Whalesync for two-way syncing between Airtable and Webflow

How to use Whalesync for two-way syncing between Airtable and Webflow

I checked out Whalesync, a tool for two-way syncing between tools like Airtable, Webflow, Bubble, Noton and more, to see how useful two-syncing is.

How to build a dynamic testimonial section with the Webflow CMS

How to build a dynamic testimonial section with the Webflow CMS

Learn how to create a dynamic section in the Webflow CMS for product reviews, testimonials, and more. Watch the step-by-step process of designing, building, and automating a brand-new section on my profile page.

How to allow clients to manage your no-code builds with Airtable Interfaces

How to allow clients to manage your no-code builds with Airtable Interfaces

I help a lot of people set up bases for their marketplaces or sometimes even for clients, and a question that keeps coming up is how can you allow your clients to safely manage their Airtable base without overwhelming them with the complex setup?

How to instantly trigger Airtable workflows in make.com using webhooks

How to instantly trigger Airtable workflows in make.com using webhooks

If you want to run a make.com workflow that triggers when something happens in Airtable, you typically have to wait for 5 - 15 minutes depending on how you set your schedule - unless you use a webhook fired from inside Airtable Automations.