Core Concepts
Agent Webhooks
Launch agents in response to emails
Agent webhooks are designed to allow you to launch an agent in response to a message from a platform like email, slack, etc.
Not to be confused with webhooks, which allows you to receive a notification when an approval or human contact is completed, Agent webhooks are specifically designed for kicking off new tasks and workflows
Agent webhooks are currently in beta. If you’d like to help us test and improve the feature, please reach out to us at contact@humanlayer.dev
Use cases
Agent webhooks are useful for:
- Forwarding an email to an agent to handle
- Launching an agent workflow in response to a message in Slack
Overview
To get started with agent webhooks, you’ll need to:
- Implement an AI Agent in your language and/or framework of choice
- Create a publically reachable URL that can receive webhooks from HumanLayer (we recommend ngrok to catch webhooks while you’re developing locally)
- Create a new agent webhook in the HumanLayer dashboard, setting the callback URL to your webhook endpoint
- Test the webhook in the HumanLayer dashboard
- Test the webhook by sending an email to the channel (slack support coming soon)
Using Ngrok for local development
- Start your local API server and note the port it’s running on
- Install ngrok and run
ngrok http <port>
- Copy the ngrok URL and use it as the callback URL in the HumanLayer dashboard