Zapier Integration
Connect your Hatcher agents to 6,000+ apps using Zapier . Automate workflows like forwarding emails to your agent, posting agent responses to Slack, or triggering actions when an agent starts or stops.
Authentication
All Zapier triggers and actions authenticate with your Hatcher API key.
- Go to Dashboard > Settings > API Keys and generate a key (starts with
hk_). - When adding the Hatcher app in Zapier, paste your API key when prompted.
- Zapier will verify the key by calling the Hatcher API. If it fails, double-check the key has not been revoked.
Search for Hatcher in Zapier’s app directory, or use the invite link provided in your dashboard.
Available Triggers
Triggers fire automatically when something happens with your agents.
| Trigger | Description |
|---|---|
| Agent Message | Fires when an agent receives a new message and responds. Includes the user message, agent response, source platform, and timestamp. |
| Agent Started | Fires when an agent’s container starts running. |
| Agent Stopped | Fires when an agent’s container stops (manual stop or auto-sleep). |
| Agent Error | Fires when an agent encounters an error (container crash, LLM failure, etc.). |
Trigger data fields
The Agent Message trigger provides:
event— Event type (e.g.,message)agentId— The agent’s unique IDagentName— The agent’s display namemessage— The user’s messageresponse— The agent’s replyuserId— ID of the user who sent the messageplatform— Source platform (api,telegram,discord,web)timestamp— When the event occurred
Available Actions
Actions let you control your agents from any Zapier workflow.
| Action | Description |
|---|---|
| Send Message | Send a message to an agent and receive its response. Requires agentId and message. |
| Create Agent | Create a new agent. Requires name and framework. Optionally set description and config. |
| Start Agent | Start an agent’s container. Requires agentId. |
| Stop Agent | Stop an agent’s container. Requires agentId. |
Searches
| Search | Description |
|---|---|
| Find Agent | Look up an agent by ID. Returns agent details including name, framework, status, and message count. |
Example Zaps
Forward emails to your agent
- Trigger: Gmail — New Email
- Action: Hatcher — Send Message
- Agent ID: your agent’s ID
- Message:
{{email_body}}
- Action: Gmail — Send Email (reply with the agent’s response)
Post agent responses to Slack
- Trigger: Hatcher — Agent Message
- Filter: Only continue if platform = “telegram” (or any platform)
- Action: Slack — Send Channel Message
- Channel:
#agent-activity - Message:
Agent {{agentName}} replied: {{response}}
- Channel:
Alert on agent errors
- Trigger: Hatcher — Agent Error
- Action: Slack — Send Direct Message
- Message:
Agent {{agentName}} ({{agentId}}) encountered an error. Check the dashboard.
- Message:
Auto-restart stopped agents
- Trigger: Hatcher — Agent Stopped
- Delay: Wait 30 seconds
- Action: Hatcher — Start Agent
- Agent ID:
{{agentId}}
- Agent ID:
Create agents from a Google Sheet
- Trigger: Google Sheets — New Row
- Action: Hatcher — Create Agent
- Name:
{{column_A}} - Framework:
{{column_B}} - Description:
{{column_C}}
- Name:
- Action: Hatcher — Start Agent
Setting Up Webhooks
The message and lifecycle triggers use webhooks. When you create a Zap with a Hatcher trigger:
- Zapier generates a unique webhook URL.
- Hatcher registers that URL against your agent.
- Events are sent to Zapier in real-time as they happen.
No manual webhook configuration is needed — Zapier handles the setup automatically when you connect your account.
Tips
- Use Zapier’s Filter step to narrow triggers (e.g., only messages from Telegram, or only specific agents).
- The Send Message action returns the agent’s response, so you can chain it into further steps.
- Agent IDs are available in the dashboard URL:
https://hatcher.host/dashboard/agents/{agent-id}. - Hosted LLM usage spends AI Credits; BYOK usage is metered only by your provider.