▶️Build Your Own Directory Website with Airtable
Build a directory website in Webstudio using Airtable as a CMS.
In this video, Alex guides you through creating your own directory website using Webstudio and Airtable! Whether you're a beginner or have some experience, this tutorial is designed to provide you with a clear, step-by-step process to build a functional and visually appealing directory website.
Clonable Link: https://wstd.us/template/directory
Overview
This tutorial covers building a fully automated directory in four steps:
Project Setup: Clone the template to your Webstudio account
Database Creation: Set up Airtable with the necessary tables
Database Integration: Connect Webstudio to Airtable API
Automation: Configure forms to automatically populate your database
Database Structure
Create these tables in Airtable:
Directory Items Table
Name
Single line text
Description
Long text
Featured Image
Attachment
URL
URL
Pretty URL
Single line text
Directory Submissions Table
For user-submitted resource requests.
Subscribers Table
For newsletter/email collection.
API Integration
1. Create Airtable API Token
Go to Airtable → Profile → Developer Hub
Create new token with scopes:
data.records:read,schema.bases:readGrant access to your directory base
Save the token — it won't be shown again
2. Get API URL
In your base, click Help → API Documentation
Copy the curl command URL for your table
3. Create Resource Variable in Webstudio
Select your Collection's parent element
Settings → Add Variable → Type: Resource
Paste the API URL
Add Header:
Authorization=Bearer YOUR_API_TOKEN
4. Bind Collection Data
Collection data path:
airtable.data.recordsField bindings use:
collectionItem.fields.fieldnameFor images:
collectionItem.fields.featured_image[0].url
Form Automation
Connect Forms to Airtable
In Airtable Automations, create new automation
Trigger: "When webhook received" — copy the webhook URL
In Webstudio, select your Form → Action → paste webhook URL
Action: "Create record" in your target table
Map form fields to table columns
Enable the automation
Test by publishing and submitting the form.
Related
Airtable Integration – Detailed guide on connecting Airtable to Webstudio
CMS – Create dynamic content-driven pages
Collection – Display and loop through data records
Form – Capture user submissions
Using Filters to Dynamically Display Content – Add search and filtering to your directory
Last updated
Was this helpful?
