home / skills / windmill-labs / windmill / triggers
This skill helps you configure and manage external event triggers for Windmill, enabling seamless automation of scripts and flows.
npx playbooks add skill windmill-labs/windmill --skill triggersReview the files below or copy the command above to add this skill to your agents.
---
name: triggers
description: MUST use when configuring triggers.
---
# Windmill Triggers
Triggers allow external events to invoke your scripts and flows.
## File Naming
Trigger configuration files use the pattern: `{path}.{trigger_type}_trigger.yaml`
Examples:
- `u/user/webhook.http_trigger.yaml`
- `f/data/kafka_consumer.kafka_trigger.yaml`
- `f/sync/postgres_cdc.postgres_trigger.yaml`
## CLI Commands
```bash
# Push trigger configuration
wmill sync push
# Pull triggers from Windmill
wmill sync pull
```
This skill documents how to configure and manage Windmill triggers that let external events invoke your scripts and flows. It explains filename conventions and the CLI commands used to push and pull trigger configurations. Use it to standardize trigger files and automate deployments in self-hosted or team environments.
Triggers are defined as YAML files named with a path and trigger type suffix (for example, .http_trigger.yaml). The runtime watches these files; when synced, Windmill registers them so external systems (HTTP, Kafka, Postgres CDC, etc.) can invoke scripts or flows. Use the CLI to push local trigger configs to the platform or pull existing configs for local editing.
What filename pattern should I use for trigger files?
Use {path}.{trigger_type}_trigger.yaml (for example, u/user/webhook.http_trigger.yaml). The suffix indicates the trigger type.
How do I deploy trigger configurations to Windmill?
Use the CLI: wmill sync push uploads local trigger files to the platform. Use wmill sync pull to download triggers from Windmill to your repo.