text
stringlengths
0
59.1k
</ExpandableCode>
</StepSection>
<StepSection stepNumber={7} title="Test End-to-End">
<video controls loop muted playsInline style={{width: '100%', height: 'auto'}}>
<source src="https://cdn.voltagent.dev/voltagent-recipes-guides/slack-5.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<br/>
<br/>
Now test the complete flow from Slack to your agent and back.
Add these environment variables to your `.env` file:
```bash
VOLTAGENT_PUBLIC_KEY=pk_...
VOLTAGENT_SECRET_KEY=sk_...
SLACK_CREDENTIAL_ID=cred_...
```
With the tunnel and server running:
1. Mention the bot or post a message in the channel
2. The trigger sends the event to your agent
3. The agent processes the message (calls `getWeather` if asked)
4. The agent replies via `sendSlackMessage`
View request/response logs in **Actions → Runs** in Console.
:::tip
- Shared Slack app Request URL: https://api.voltagent.dev/hooks/slack (or your host).
- Invite the bot to the channel (/invite @your-bot).
- Keep VOLTAGENT_PUBLIC_KEY, VOLTAGENT_SECRET_KEY, and SLACK_CREDENTIAL_ID in .env.
- Use Volt Tunnel locally; switch to your deployed URL later.
:::
</StepSection>
## Related Documentation
- [Triggers Usage](/actions-triggers-docs/triggers/usage) - Trigger configuration reference
- [Tools](/docs/agents/tools) - Creating agent tools
<|endoftext|>
# source: VoltAgent__voltagent/website/recipes/airtable-agent.md type: docs
---
id: airtable-agent
title: Airtable Agent
description: Listen to Airtable record events, enrich rows, and write back via VoltOps.
hide_table_of_contents: true
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import ApiKeyButton from '@site/src/components/docs-widgets/ApiKeyButton';
import StepSection from '@site/src/components/docs-widgets/StepSection';
import SectionDivider from '@site/src/components/docs-widgets/SectionDivider';
import ExpandableCode from '@site/src/components/docs-widgets/ExpandableCode';
# Airtable Agent
This guide shows how to build event-driven AI agents with VoltAgent and Airtable using [Triggers](/actions-triggers-docs/triggers/usage) and [Actions](/actions-triggers-docs/actions/overview).
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.
:::info
Follow the steps with your own base, table, and credential. You can get the agent source code [here](https://github.com/voltagent/voltagent/tree/main/examples/with-airtable).
:::
<br/>
<video controls loop muted playsInline style={{width: '100%', height: 'auto'}}>
<source src="https://cdn.voltagent.dev/voltagent-recipes-guides/airtable-5.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<br/>
<br/>
<StepSection stepNumber={1} title="Create the Project">
Run the CLI to scaffold a new project:
```bash
npm create voltagent-app@latest
```
</StepSection>
<StepSection stepNumber={2} title="Configure and Start">
If you skipped API key entry during setup, create or edit the `.env` file in your project root: