Start work from connected-app events
Create a named Event Trigger that starts a fresh Run when one exact supported event occurs on an active connected account. Crewhelm owns provider delivery and recovery; you do not configure a webhook URL or bearer token.
Prerequisites
Section titled “Prerequisites”- Full control access.
- An active Composio Connection.
- An active Agent returned by Crewhelm.
- Capacity in the Agent’s eight shared recurring-start slots for Event Triggers and Schedules.
- A clear event, supported filters, and bounded instruction for each occurrence.
- Any exact Brief revisions the recurring responsibility needs.
Authority and custody
Section titled “Authority and custody”An Event Trigger freezes the Agent revision, instruction, Connection, provider account, auth configuration, event slug and version, delivery kind, filters, optional output contract, optional exact Brief revisions, and limits. The source payload is untrusted context and cannot grant authority or choose Brief context.
Crewhelm verifies signed provider delivery before owner routing, deduplicates stable event identities, bounds pending payloads, and gives each occurrence one deterministic Run admission identity.
Discover and create the Event Trigger
Section titled “Discover and create the Event Trigger”- Call
crewhelm_inspect_automationswithoperation.kind: "event_sources"and the active Connection object. - Review the returned event slug, event version, delivery kind, and supported filters.
- Call
crewhelm_change_automationswithoperation.kind: "create_event_trigger", the returned Agent object, and an Event Trigger definition using those source fields. - Write the instruction as the Agent’s responsibility for each matching event.
- Omit the output contract for Markdown, or freeze one bounded JSON contract for every event Run.
- Add only the returned Brief objects needed for every matching event. Crewhelm keeps their exact immutable revisions internally.
- Keep the returned Event Trigger object unchanged.
Verify delivery
Section titled “Verify delivery”- Call
crewhelm_inspect_automationswithoperation.kind: "inspect_event_trigger"and the returned Event Trigger object. - Confirm the Connection, source identity, filters, frozen Agent revision, and lifecycle state.
- Call the same tool with
operation.kind: "event_history"and that Event Trigger to review bounded pending, dispatched, and skipped occurrences. - Inspect the Run ID recorded for a dispatched occurrence.
Crewhelm retains the latest 100 terminal occurrences per Event Trigger. It bounds each trigger to 20 pending events and 128 KiB of pending event data; overflow is recorded as skipped rather than silently accepted.
Pause, resume, update, or delete
Section titled “Pause, resume, update, or delete”- Call
crewhelm_change_automationswith the matchingpause_event_trigger,resume_event_trigger,update_event_trigger, ordelete_event_triggeroperation and the returned Event Trigger object. - Update only with source values returned for the intended active Connection.
- Delete only after confirming no future event should start work. Deletion removes the provider trigger, redacts prior definitions, retains an auditable tombstone, and releases the shared slot.
Recover safely
Section titled “Recover safely”event_trigger_busymeans one exact occurrence is still being admitted or recovered. Inspect history and retry the lifecycle change after it settles.- If a provider lifecycle operation is unknown, inspect the exact Event Trigger and follow its recovery state. Do not create a duplicate trigger.
- A stale Agent revision pauses or skips the trigger rather than retargeting it.
- Update the Event Trigger without the Brief, or complete Event Trigger deletion, to release the recurring reference. Deleting the Brief still fails closed while any admitted Run or Workflow retains the exact revision; inspect that resource and follow its retention lifecycle.
- An authenticated but unmatched stale delivery is acknowledged without starting work.
- Pausing or deleting cannot undo an external effect from an already-started Run.
Next action
Section titled “Next action”Review diagnosis and recovery before leaving an autonomous integration with standing authority.