trigger_type: event.
Three things that sound alike — keep them straight
The rule of thumb: Events and Event Sources trigger Crevio’s AI; webhooks notify your code. The two systems share an event vocabulary (e.g.
order.paid exists in both) but do different jobs — and you can use both for the same event.
Internal Events
GET /v1/events lists the events you can subscribe a Task to, each with a description, plus an external array describing third-party triggers available through Event Sources.
Triggering a Task from an event
Create a Task withtrigger_type: event and use event_conditions.event_type to say which event fires it.
approval_mode: supervised if you want to approve the agent’s actions before they take effect.
Narrowing which events actually run the agent
event_type takes exactly one event, and every occurrence of it starts a run. To react to a subset — orders over $100, email from one sender — add a condition_script: JavaScript evaluated before the run, with no LLM involved and no credits spent. The triggering payload is available as event ({ type, data }), and the run happens only when the script’s last expression is truthy.
Event Sources (third-party triggers)
Theexternal array in GET /v1/events is currently driven by Event Sources — connectors that let events from third-party apps trigger your Tasks. This is how activity outside Crevio (a new row in a sheet, a message in a channel, a payment in another tool) can put your AI workforce to work.
1. Connect the app
Event Sources sit on top of a connected app. Connect Gmail, Google Calendar, Sheets, or whatever else you’re triggering on at /integrations first — the trigger is deployed as that connected account. A team connection (available to everyone in the account) is the best fit for automations; a personal connection works too, and Crevio deploys the trigger under that member’s credential.2. Discover what you can connect
app is required — it’s the app slug (gmail, google_sheets, notion). Add &q= to search within it. Each result describes an id (the value you pass back as vendor_component_id) and the configurable_props that trigger accepts — labels, sheets, channels, filters.
3. Create the Event Source
event_name is yours to choose (lowercase, dot-separated). Only the trigger’s own settings go in configured_props — the connected account is filled in for you from the app you linked in step 1, so there’s no account id to look up. If the app isn’t connected, the call fails and tells you which one to connect.
4. Point a Task at it
External events are namespaced with anexternal. prefix — an event_name of gmail.new_email is subscribed to as external.gmail.new_email:
event.data, both in the condition script and in the agent’s context.
Manage event sources
Worked example: the same event, three ways
Say you want everything to happen whenorder.paid fires:
- Trigger the agent — an event-Task (
trigger_type: event,event_conditions: { "event": "order.paid" }) sends a personalized welcome and starts onboarding. - React in your own code — a webhook endpoint subscribed to
order.paidprovisions the buyer in your external system. - React to external activity — an Event Source lets a payment in a connected app trigger a Crevio task too.
Next steps
Tasks (your AI workforce)
Triggers, agents, autonomy modes, and responding to supervised runs.
Webhooks
Notify your own server when events happen — and verify signatures.
AI & Agents overview
How Events fit into Crevio’s broader agentic model.
MCP Server
Let an agent discover and create event sources in code.

