Airtable Agent
This guide shows how to build event-driven AI agents with VoltAgent and Airtable using Triggers and Actions.
You'll create an agent that uses Triggers to receive new record events, summarizes them, and uses Actions to write status/next steps back into the same row.
Follow the steps with your own base, table, and credential. You can get the agent source code here.
Create the Project
Run the CLI to scaffold a new project:
npm create voltagent-app@latest
Configure and Start
If you skipped API key entry during setup, create or edit the .env file in your project root:
- OpenAI
- Anthropic
- Google Gemini
- Groq
- Mistral
OPENAI_API_KEY=your-api-key-here
ANTHROPIC_API_KEY=your-api-key-here
GOOGLE_GENERATIVE_AI_API_KEY=your-api-key-here
GROQ_API_KEY=your-api-key-here
MISTRAL_API_KEY=your-api-key-here
Start the development server:
- npm
- yarn
- pnpm
npm run dev
yarn dev
pnpm dev
You should see the VoltAgent server startup message:
═══════════════════════════════════════════════════
VOLTAGENT SERVER STARTED SUCCESSFULLY
═══════════════════════════════════════════════════
✓ HTTP Server: http://localhost:3141
↪ Share it: pnpm volt tunnel 3141 (secure HTTPS tunnel for teammates)
Docs: https://voltagent.dev/docs/deployment/local-tunnel/
✓ Swagger UI: http://localhost:3141/ui
Test your agents with VoltOps Console: https://console.voltagent.dev
══════════════ ═════════════════════════════════════
Set Up the Airtable Trigger in Console
Open VoltAgent Console and go to Triggers → Create Trigger.
- Select Airtable → Record created
- Select your base and table
- Save the trigger
Expose Your Local Agent with Volt Tunnel
Volt Tunnel exposes your local server to the internet so triggers can reach it.
Run the tunnel command:
pnpm volt tunnel 3141
Copy the tunnel URL (e.g., https://your-tunnel.tunnel.voltagent.dev) and set it as the Endpoint URL in the trigger configuration.
The project is set up and the Airtable trigger is configured. The following steps cover wiring the trigger to your agent and adding the update action.
Wire the Airtable Trigger to Your Agent
This code sets up a trigger handler that receives new Airtable rows and generates field suggestions. The write-back tool is added in the next step.
Your Airtable table must include columns named Summary, Priority, Status, and Next steps. Adjust the prompt if your schema differs.
Add the Airtable Action and Update Tool
Open VoltAgent Console and go to Actions → Create Action.
- Select Airtable and the same credential
- Select Update record, base, and table
- Save the action
Add the VoltOps client and updateAirtableRecord tool to your code:
Test End-to-End
Now test the complete flow from Airtable to your agent and back.
Add these environment variables to your .env file:
VOLTAGENT_PUBLIC_KEY=pk_...
VOLTAGENT_SECRET_KEY=sk_...
AIRTABLE_CREDENTIAL_ID=cred_...
With the tunnel and server running:
- Insert a new row in your Airtable table (fill in
Title,Description, etc.) - The trigger sends the event to your agent
- The agent generates summary/priority/status/next steps
- VoltOps writes the fields back to the record
View request/response logs in Actions → Runs in Console.
Related Documentation
- Triggers Usage - Trigger configuration reference
- Airtable Actions - Airtable action types
- Tools - Creating agent tools