Skip to main content
Events make your Tasks reactive: instead of running on a clock, an event-triggered task fires the moment something happens. A buyer pays, a form is submitted, a connected app reports a change — and the agent goes to work. Crevio recognizes two kinds of triggers: internal Events (things that happen inside your Crevio account) and Event Sources (things that happen in third-party apps you connect). Both drive Tasks with 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.
The subscribable internal events:

Triggering a Task from an event

Create a Task with trigger_type: event and use event_conditions.event_type to say which event fires it.
Every time an order is paid in your account, a new Task Run starts, the agent receives that order’s payload as the triggering event (so it never has to guess which record it was), and it carries out the prompt. Use approval_mode: supervised if you want to approve the agent’s actions before they take effect.
Combine event triggers with autonomy: an autonomous event-task is a hands-off automation, while a supervised one is an assistant that drafts the response and waits for your go-ahead.

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.
Filtering here rather than in the prompt is what keeps a chatty event cheap: a run that the agent would only have dismissed never starts.

Event Sources (third-party triggers)

The external 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 an external. prefix — an event_name of gmail.new_email is subscribed to as external.gmail.new_email:
External activity now drives your agent the same way internal events do — the third-party payload arrives as 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 when order.paid fires:
  1. Trigger the agent — an event-Task (trigger_type: event, event_conditions: { "event": "order.paid" }) sends a personalized welcome and starts onboarding.
  2. React in your own code — a webhook endpoint subscribed to order.paid provisions the buyer in your external system.
  3. React to external activity — an Event Source lets a payment in a connected app trigger a Crevio task too.
Events and webhooks are independent and complementary: use Events to put Crevio’s AI to work, and webhooks to keep your own systems in sync.

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.