Documentation Index
Fetch the complete documentation index at: https://docs.openhands.dev/llms.txt
Use this file to discover all available pages before exploring further.
Beta Feature: Event-based automations are in beta for OpenHands Cloud and OpenHands Enterprise users.
Built-In vs. Custom Integrations
| Type | Setup | Best For |
|---|---|---|
| Built-in (GitHub) | None—just create the automation | PR reviews, issue triage, push-triggered tasks |
| Custom Webhooks | Register webhook first, then create automation | Linear, Stripe, Slack, and other services |
GitHub Events (Built-In)
GitHub is a built-in integration. Create automations that respond to GitHub events without any webhook setup.Example: Auto-Review PRs with a Specific Label
When a PR is labeled withopenhands, automatically review it:
- Trigger type:
event - Source:
github - Event:
pull_request.labeled - Filter: Matches PRs labeled
openhands
Example: Respond to @openhands Mentions
Available GitHub Events
| Event | Common Actions | Use Case |
|---|---|---|
pull_request | opened, labeled, synchronize, ready_for_review | PR automation |
issues | opened, labeled, assigned | Issue triage |
issue_comment | created | Mention responses |
push | — | Branch-based triggers |
release | published | Release workflows |
pull_request.* to match all actions for an event type.
Filtering Events
Filters let you narrow which events trigger your automation. They use JMESPath expressions to match fields in the event payload—so you can trigger only on specific labels, users, branches, or other conditions. Common filter patterns:Custom Webhooks
For services beyond GitHub—like Linear, Stripe, or Slack—register a custom webhook first, then create automations that use it.Two-phase workflow for custom webhooks:
- Webhook registration (one-time setup): You execute the curl command yourself to register the webhook. This keeps your signing secrets secure—the agent provides the command but never handles your credentials directly.
- Automation creation (repeatable): Once the webhook is registered, the agent can create, update, and manage automations for that webhook source conversationally—no manual curl commands needed.
Walkthrough: Linear Integration
This example walks through setting up a Linear webhook to auto-triage new issues.Step 1: Get Your Webhook Secret from Linear
Linear provides the webhook signing secret—you cannot configure your own.- Go to Linear Settings → API → Webhooks
- Click New webhook
- Copy the signing secret that Linear displays (you’ll need this in the next step)
- Leave the webhook URL blank for now—you’ll get it from OpenHands
Step 2: Register the Webhook with OpenHands
First, set up your environment variables:- Create an OpenHands API key at app.all-hands.dev/settings/api-keys
- Export the API key and the webhook secret from Step 1:
webhook_url that you’ll configure in Linear.
Understanding event_key_expr
Understanding event_key_expr
The With
event_key_expr is a JMESPath expression that extracts the event type from incoming webhook payloads. This extracted value is what you match against in the automation’s on field.For example, Linear sends payloads like:event_key_expr: "type", the system extracts "Issue" as the event type. Then in your automation, you set on: "Issue" to match it.Step 3: Complete the Linear Webhook Configuration
- Return to the Linear webhook you started in Step 1
- Paste the
webhook_urlfrom the previous step - Select which events to send (e.g., Issues, Comments)
- Save the webhook
Step 4: Create the Automation
Now the webhook is registered, the agent can create automations for you end-to-end. Just describe what you want:- Source:
linear(your registered webhook) - Event:
Issue(Linear’s event type) - Filter:
action == 'create'
Custom Webhook Parameters
When registering any custom webhook, these parameters define how OpenHands processes incoming events:| Parameter | Required | Description |
|---|---|---|
name | Yes | Human-readable name |
source | Yes | Unique identifier (lowercase, alphanumeric with hyphens) |
event_key_expr | No | JMESPath to extract event type (default: type) |
signature_header | No | Header containing HMAC signature (default: X-Signature-256) |
webhook_secret | No | Signing secret—provide yours or let the system generate one |
Common Services
These are example configurations for popular services. Always verify with each service’s webhook documentation, as signature headers and payload formats may change.| Service | Signature Header | Event Key |
|---|---|---|
| Linear | Linear-Signature | type |
| Stripe | Stripe-Signature | type |
| Slack | X-Slack-Signature | type |
| Twilio | X-Twilio-Signature | type |
Next Steps
New to automations? Start with the Automations Overview for the bigger picture, including cron-based scheduling and general concepts.- Automations Overview — Cron-based automations and general concepts
- Managing Automations — Update, disable, or delete automations

