Events let your agent or app react to changes in external apps — a new contact created in HubSpot, a message posted in Slack, a file uploaded to Google Drive. Membrane subscribes to these changes and delivers them to your application. See External Events API Reference for the full API.Documentation Index
Fetch the complete documentation index at: https://docs.getmembrane.com/llms.txt
Use this file to discover all available pages before exploring further.
Subscribing to Events
Event subscriptions are created through Flows. A flow is a multi-step workflow triggered by an event — in the simplest form, it just sends a webhook to your app.- Create a Flow in your Membrane workspace (via Console, CLI, or API).
- Set the trigger to an event type (see below).
- Add steps to process the event — the simplest setup is a single
api-request-to-your-appnode that sends the event data to your backend.
Event Types
Internal Events
Custom events defined by the connector — not tied to a specific data collection. Examples:form-submitted, payment-received, message-posted.
Use a connector-event-trigger or app-event-trigger in your flow.
Stand-alone External Event Types (experimental)
If you want to subscribe to an external event without modifying a connector, you can define an External Event Type directly in your workspace. The type owns its ownsubscribe / handle / unsubscribe JavaScript and can
be scoped universally, to a single integration, or to a single connection. Use the same
connector-event-trigger in your flow — Membrane routes through the workspace-level definition
when one is present.
Data Collection Events
Triggered by changes to records in a specific data collection (contacts, deals, messages, etc.):data-record-created— a new record appears in the external appdata-record-updated— an existing record changesdata-record-deleted— a record is removed
data-record-created-trigger, data-record-updated-trigger, or data-record-deleted-trigger in your flow.
Polling Intervals
For data collection events, Membrane detects changes via webhooks or polling. You can configure the polling interval:- Pull-based: default 300 seconds (5 minutes)
- Full scan: default 10,800 seconds (3 hours)
Logging
Membrane provides detailed logging for every step of the event pipeline:- External Webhooks — raw incoming webhook payloads from external apps
- External Event Pulls — records of each polling cycle
- External Events — processed events with their payload and status
- Flow Runs — execution logs for each flow triggered by an event