Airtable
Generate images directly from Airtable using the Scripting extension
Introduction
The Orshot Airtable integration uses Airtable's Scripting extension to generate dynamic images directly from your table data. This integration allows you to create images using your existing Airtable records as data sources, perfect for automating image generation based on database content.
Video Tutorial
Actions Available
- Direct Image Generation: Generate images from Airtable records using Studio templates
- Table Data Integration: Use column values as template modifications
- Attachment Storage: Store generated images directly in Airtable attachment fields
- Batch Processing: Generate multiple images from multiple records
- Custom Scripting: Full JavaScript control over image generation logic
- Template Selection: Choose from available Studio templates within the script
How to Use
1. Create Table Structure
- Create two columns in your Airtable table:
- Orshot Image (Type: Attachment) - This stores the generated image
- Orshot Generate (Type: Button) - This triggers image generation
2. Install Scripting Extension
- Click on the "Extensions" tab in your Airtable base
- Search for "Scripting" and install the extension
- Once enabled, you'll see a scripting interface
3. Add the Script
- Copy the provided script code (see below)
- Paste it into the Scripting extension
- Update the
<TABLE_NAME>
with your actual table name - Update the
<OUTPUT_COLUMN_NAME>
with "Orshot Image" - Replace
os-sjPyrek4eygmq
with your actual Orshot API key
4. Configure Template and Modifications
- Set the
templateId
to your desired Studio template ID (e.g., 25) - Customize the modifications object to map your table columns:
5. Generate Images
- Save the script in the Scripting extension
- Click the "Orshot Generate" button in any table row
- The script will run and generate an image based on that record's data
- The generated image will be stored in the "Orshot Image" column
Sample Script Code
Need Help?
- Contact support at hi@orshot.com or use chat button in your Orshot dashboard for assistance