Triggers
When events occur in apps, like a new Slack message, a GitHub commit, or an incoming email, triggers send event data to your application as structured payloads.
There are two delivery types:
- Webhook triggers: Apps like GitHub and Slack push events to Composio in real time. When an event fires, Composio forwards the payload to your webhook endpoint.
- Polling triggers: For apps that don't support outgoing webhooks (e.g., Gmail), Composio polls for new data every minute. Expect small delays between the event and delivery.
Working with triggers
- Configure your webhook endpoint so Composio knows where to deliver events
- Discover available trigger types for a toolkit (e.g.,
GITHUB_COMMIT_EVENT) - Create an active trigger scoped to a user's connected account
- Receive events: Composio sends payloads to your endpoint
- Manage: enable, disable, or delete triggers as needed