Trigger Registry — Reactive Event Triggers
Create and manage triggers that execute skills or routines in response to external events (webhooks, integrations).
When to Use
- User wants to create a webhook endpoint: "cria um webhook para quando tiver push no GitHub"
- User wants to react to events: "quando alguem abrir issue no Linear, notifica no Discord"
- User wants to list/manage triggers: "lista os triggers", "desativa o trigger de deploy"
- User wants to test a trigger: "testa o trigger #3"
API Reference
The dashboard backend exposes these endpoints:
| Method |
Endpoint |
Action |
| GET |
/api/triggers |
List triggers (query: ?type=webhook|event&source=github|stripe|...&enabled=true|false) |
| POST |
/api/triggers |
Create a new trigger |
| GET |
/api/triggers/<id> |
Get trigger details + last 20 executions |
| PUT |
/api/triggers/<id> |
Update trigger |
| DELETE |
/api/triggers/<id> |
Delete trigger + executions |
| POST |
/api/triggers/<id>/test |
Test trigger (simulate execution) |
| POST |
/api/triggers/<id>/regenerate-secret |
Regenerate webhook secret |
| GET |
/api/triggers/<id>/executions |
List executions with pagination |
| POST |
/api/triggers/webhook/<id> |
Webhook receiver (public, HMAC-validated) |
Trigger Types
| Type |
Description |
webhook |
Receives HTTP POST from external services (GitHub, Stripe, etc.) |
event |
Reacts to integration events (configured in YAML or UI) |
Sources & Event Examples
| Source |
Signature Header |
Example Events |
github |
X-Hub-Signature-256 |
push, pull_request, issues, release |
stripe |
Stripe-Signature |
charge.succeeded, customer.subscription.created, invoice.paid |
linear |
X-Linear-Signature |
Issue (create/update), Comment |
telegram |
Token-based |
message, callback_query |
discord |
Ed25519 |
message_create |
custom |
X-Webhook-Signature |
Any — user-defined |
Action Types
| Type |
Payload |
When to Use |
skill |
Skill name (e.g. discord-send-message Deploy detectado) |
Running a Claude skill |
prompt |
Free-form prompt text |
Running a raw Claude prompt |
script |
Script path relative to ADWs/routines/ |
Running an existing routine script |
Agents
| Agent ID |
Short Name |
clawdia-assistant |
@clawdia |
flux-financeiro |
@flux |
atlas-project |
@atlas |
kai-personal-assistant |
@kai |
pulse-community |
@pulse |
sage-strategy |
@sage |
pixel-social-media |
@pixel |
nex-comercial |
@nex |
mentor-courses |
@mentor |
Workflow
Creating a Trigger
Understand the request — extract what event, what action, which agent:
- Event source: GitHub, Stripe, Linear, Telegram, Discord, custom
- Event filter: which specific events to match (e.g., push to main, charge.succeeded)
- Action: what to do when triggered (skill, prompt, or script)
- Agent: which agent should handle the action
Confirm with user — show summary:
Criar trigger:
- Nome: Deploy Notification
- Tipo: webhook
- Source: github
- Filtro: event=push, branch=main, repo=EvolutionAPI/evolution-api
- Action: skill discord-send-message Deploy detectado na main
- Agent: @pulse
- Enabled: true
Confirma?
Create via API:
Use from dashboard.backend.sdk_client import evo — auto-handles URL + auth.
from dashboard.backend.sdk_client import evo
trigger = evo.post("/api/triggers", {
"name": "Deploy Notification",
"type": "webhook",
"source": "github",
"event_filter": {"event": "push", "branch": "main", "repo": "EvolutionAPI/evolution-api"},
"action_type": "skill",
"action_payload": "discord-send-message Deploy detectado na main",
"agent": "pulse-community",
"enabled": True,
})
Show result — display webhook URL and secret for configuration:
Trigger criado!
- ID: 1
- Webhook URL: http://localhost:8080/api/triggers/webhook/1
- Secret: abc123... (configure no GitHub webhook settings)
Listing Triggers
from dashboard.backend.sdk_client import evo
triggers = evo.get("/api/triggers")
Format as table: ID | Name | Type | Source | Status | Runs
Testing a Trigger
from dashboard.backend.sdk_client import evo
evo.post("/api/triggers/1/test")
Common Templates
When user selects a source, suggest pre-built event filters:
GitHub:
- Push to main:
{"event": "push", "branch": "main"}
- New PR:
{"event": "pull_request", "action": "opened"}
- Issue opened:
{"event": "issues", "action": "opened"}
- Release published:
{"event": "release", "action": "published"}
Stripe:
- Payment succeeded:
{"event_type": "charge.succeeded"}
- New subscription:
{"event_type": "customer.subscription.created"}
- Invoice paid:
{"event_type": "invoice.paid"}
Linear:
- Issue created:
{"event_type": "Issue", "action": "create"}
- Issue updated:
{"event_type": "Issue", "action": "update"}
1---2name: trigger-registry3description: Create, manage, and test reactive triggers (webhook & event-based). Triggers execute skills or routines in response to external events (GitHub push, Stripe payment, Linear issue, etc.). Use when user says 'create trigger', 'list triggers', 'novo trigger', 'webhook para', 'quando acontecer', 'trigger list', 'test trigger', or any reference to reactive event triggers.4---56# Trigger Registry — Reactive Event Triggers78Create and manage triggers that execute skills or routines in response to external events (webhooks, integrations).910## When to Use1112- User wants to create a webhook endpoint: "cria um webhook para quando tiver push no GitHub"13- User wants to react to events: "quando alguem abrir issue no Linear, notifica no Discord"14- User wants to list/manage triggers: "lista os triggers", "desativa o trigger de deploy"15- User wants to test a trigger: "testa o trigger #3"1617## API Reference1819The dashboard backend exposes these endpoints:2021| Method | Endpoint | Action |22|--------|----------|--------|23| GET | `/api/triggers` | List triggers (query: `?type=webhook\|event&source=github\|stripe\|...&enabled=true\|false`) |24| POST | `/api/triggers` | Create a new trigger |25| GET | `/api/triggers/<id>` | Get trigger details + last 20 executions |26| PUT | `/api/triggers/<id>` | Update trigger |27| DELETE | `/api/triggers/<id>` | Delete trigger + executions |28| POST | `/api/triggers/<id>/test` | Test trigger (simulate execution) |29| POST | `/api/triggers/<id>/regenerate-secret` | Regenerate webhook secret |30| GET | `/api/triggers/<id>/executions` | List executions with pagination |31| POST | `/api/triggers/webhook/<id>` | **Webhook receiver** (public, HMAC-validated) |3233## Trigger Types3435| Type | Description |36|------|-------------|37| `webhook` | Receives HTTP POST from external services (GitHub, Stripe, etc.) |38| `event` | Reacts to integration events (configured in YAML or UI) |3940## Sources & Event Examples4142| Source | Signature Header | Example Events |43|--------|-----------------|----------------|44| `github` | `X-Hub-Signature-256` | push, pull_request, issues, release |45| `stripe` | `Stripe-Signature` | charge.succeeded, customer.subscription.created, invoice.paid |46| `linear` | `X-Linear-Signature` | Issue (create/update), Comment |47| `telegram` | Token-based | message, callback_query |48| `discord` | Ed25519 | message_create |49| `custom` | `X-Webhook-Signature` | Any — user-defined |5051## Action Types5253| Type | Payload | When to Use |54|------|---------|-------------|55| `skill` | Skill name (e.g. `discord-send-message Deploy detectado`) | Running a Claude skill |56| `prompt` | Free-form prompt text | Running a raw Claude prompt |57| `script` | Script path relative to `ADWs/routines/` | Running an existing routine script |5859## Agents6061| Agent ID | Short Name |62|----------|------------|63| `clawdia-assistant` | @clawdia |64| `flux-financeiro` | @flux |65| `atlas-project` | @atlas |66| `kai-personal-assistant` | @kai |67| `pulse-community` | @pulse |68| `sage-strategy` | @sage |69| `pixel-social-media` | @pixel |70| `nex-comercial` | @nex |71| `mentor-courses` | @mentor |7273## Workflow7475### Creating a Trigger76771. **Understand the request** — extract what event, what action, which agent:78 - **Event source:** GitHub, Stripe, Linear, Telegram, Discord, custom79 - **Event filter:** which specific events to match (e.g., push to main, charge.succeeded)80 - **Action:** what to do when triggered (skill, prompt, or script)81 - **Agent:** which agent should handle the action82832. **Confirm with user** — show summary:84 ```85 Criar trigger:86 - Nome: Deploy Notification87 - Tipo: webhook88 - Source: github89 - Filtro: event=push, branch=main, repo=EvolutionAPI/evolution-api90 - Action: skill discord-send-message Deploy detectado na main91 - Agent: @pulse92 - Enabled: true9394 Confirma?95 ```96973. **Create via API:**9899 Use `from dashboard.backend.sdk_client import evo` — auto-handles URL + auth.100101 ```python102 from dashboard.backend.sdk_client import evo103 trigger = evo.post("/api/triggers", {104 "name": "Deploy Notification",105 "type": "webhook",106 "source": "github",107 "event_filter": {"event": "push", "branch": "main", "repo": "EvolutionAPI/evolution-api"},108 "action_type": "skill",109 "action_payload": "discord-send-message Deploy detectado na main",110 "agent": "pulse-community",111 "enabled": True,112 })113 ```1141154. **Show result** — display webhook URL and secret for configuration:116 ```117 Trigger criado!118 - ID: 1119 - Webhook URL: http://localhost:8080/api/triggers/webhook/1120 - Secret: abc123... (configure no GitHub webhook settings)121 ```122123### Listing Triggers124125```python126from dashboard.backend.sdk_client import evo127triggers = evo.get("/api/triggers")128```129130Format as table: ID | Name | Type | Source | Status | Runs131132### Testing a Trigger133134```python135from dashboard.backend.sdk_client import evo136evo.post("/api/triggers/1/test")137```138139### Common Templates140141When user selects a source, suggest pre-built event filters:142143**GitHub:**144- Push to main: `{"event": "push", "branch": "main"}`145- New PR: `{"event": "pull_request", "action": "opened"}`146- Issue opened: `{"event": "issues", "action": "opened"}`147- Release published: `{"event": "release", "action": "published"}`148149**Stripe:**150- Payment succeeded: `{"event_type": "charge.succeeded"}`151- New subscription: `{"event_type": "customer.subscription.created"}`152- Invoice paid: `{"event_type": "invoice.paid"}`153154**Linear:**155- Issue created: `{"event_type": "Issue", "action": "create"}`156- Issue updated: `{"event_type": "Issue", "action": "update"}`