Image Generation with Airtable Extension
Airtable is a no-code platform for building collaborative apps, customize your workflow, collaborate, and achieve ambitious outcomes. Besides its main feature, which is a spreadsheet-like data management, Airtable offers many integrations and scripts which can help you automate your workflows.
The following article will show you how to automate image generation using Airtable. Automation of image generation is a great solution when you have to create multiple images with similar content, based on a template. Instead of editing each image manually, you can create them automatically in bulk, with RenderForm and Airtable.
If you know how to code you may also want to use our Airtable Script to get a full control over image and PDF rendering process. Get a sample data set for RenderForm and Airtable to test your image or PDF rendering workflow here: Airtable Image Generation Data Set.
Create image template
Before we start with Airtable configuration, prepare your image template in RenderForm. Remember that one element in your image template, for example text, is one component that can be edited via Airtable automation.
Step 1: Add Extension
In Airtable, open 'Extensions' tab in the top-right corner and click 'Add an extension' button. Search for 'RenderForm' in the popup, click 'Add' button and confirm that you want to add a new app to your Airtable base.
You can close the initial full-screen popup window and continue with the configuration.
Step 2: Configure Airtable extension
After adding the extension, you will need to copy your API Key from RenderForm. You can find it in the 'API Keys' tab in RenderForm.
Click a small cog button, paste your API Key and click 'Done' button.
Now, you can choose:
- Image Template used for image generation,
- Table from which you want to take data,
- Output Field where you want to save images.
Changes section allows you to choose which fields you want to update in your image template.
Step 3: Run script to generate images
Once you have your data, you can start the script! Click 'Render' and see how your images are generated! The links to the images will appear in the selected column of your spreadsheet.
You can now create a 'Gallery' view to see all generated images in a larger format.
Troubleshooting
If you encounter any issues with the script, you can check the console logs in the script editor. The script logs information about each rendered image, and in case of an error, it will be displayed in the console.
- The most common issue is having not enough credits on your RenderForm account. You can check your credits in the RenderForm console.
- The second most common issue is a wrong API Key. Make sure you copied the correct values from RenderForm.
- Occasionally, the extension may fail due to incorrect data in your table. If you encounter any issues, you can try to exclude field by field to find the problematic one and fix it.