Levain LabsLevain Labs

create_agent_trigger

Create a trigger that dispatches the agent on a provider event. For example, event_type 'github.pull_request', 'shopify.orders/create', or…

Create a trigger that dispatches the agent on a provider event.

For example, event_type 'github.pull_request', 'shopify.orders/create', or 'stripe.invoice.payment_failed'; the prefix must match the integration's provider.

Parameters

NameTypeRequiredDescription
agent_idstringyes
integration_idstringyes
event_typestringyes
agent_versionintegerno
enabledbooleanno

On this page