Skip to main content

Testing — Listen for Trigger

Purpose​

Test trigger-based workflows safely before enabling them in production. Each trigger type provides a dedicated test-listen mode that captures a real event and runs the downstream workflow so you can inspect every node's output in one pass.

Workflow does not need to be enabled. All test-listen modes work on both enabled and disabled workflows.

Modifier role required. Starting a listen session, reading its capture, and running Test workflow or Test step all require the modifier role. Viewer-only users and MCP agents get 403 Insufficient permissions.


HTTP Trigger — Listen for a request​

Use this when your workflow starts with http_trigger.

Flow​

Steps​

  1. Click Listen for a request next to Test workflow at the bottom of the canvas (or open the http_trigger step and use the listen panel in its Input column).
  2. The canvas shows Waiting for a request… with the test URL and a copy button.
  3. Copy the generated test URL.
  4. Send an HTTP request to that URL (curl, Postman, or any HTTP client).
  5. The editor captures the request payload and runs the downstream workflow; the canvas shows the result.
  6. Click any step to inspect its input and output.

Validation checks​

  • Path, query, header, and body fields captured correctly.
  • Conditional branches execute expected path.
  • Response node returns expected status and payload.

Common issues​

  • Test URL expired before request was sent — restart the session.
  • The test URL accepts any method, but live traffic is limited to the proxy's allowed methods. A method that works here gets 405 through the gateway until you add it to the proxy.
  • Expression references wrong node identifier.
  • Session already has an active listener — stop and restart.

IMAP Trigger — Listen for an email​

Use this when your workflow starts with imap_trigger.

Flow​

Steps​

  1. Select the imap_trigger node and ensure credentials_id and mailbox are configured.
  2. Click Listen for an email next to Test workflow (or in the trigger's step editor).
  3. Send a test email to the configured IMAP account (or ensure an unseen email already exists).
  4. The editor captures the first unseen email and runs the downstream workflow.
  5. Click any step to inspect its input and output.

At-most-once: listen-for-email is read-only and does not mark messages as \Seen, so the same email can be captured again in subsequent test sessions.

What is captured​

FieldDescription
subjectEmail subject line
fromSender address
toFirst recipient address
dateDate header (RFC3339)
body_textPlain-text body
body_htmlHTML body (empty string if absent)
uidIMAP UID of the message
mailboxMailbox folder

Common issues​

  • No unseen email found — the session returns a timeout after ~2 minutes; send a test email and retry.
  • Wrong credentials ID — validate the credential first in Settings → Credentials → Validate Connection.
  • Wrong mailbox name — use the exact folder name the server exposes (case-sensitive on some servers).
  • Firewall blocking outbound IMAP (port 993) from the backend host.

Cron, Kafka, and Manual Triggers — Test workflow​

For these trigger types, there is no external event to capture. Use Test workflow at the bottom of the canvas (or Ctrl/Cmd + Enter), which injects mock trigger data and runs the full graph:

TriggerMock data injected
cron_triggertriggered_at (current time), trigger, schedule, timezone, run_id
kafka_consumertopic, partition, offset, key, message, headers, run_id
manual_triggertriggered_at (current time), trigger

Session and stream caveats​

  • Listen sessions are short-lived (≈10 minutes max) and intended for test windows, not persistent ingestion.
  • If the UI stream stops updating, create a fresh session and resend or resend the email.
  • One active listener per workflow at a time — starting a new session cancels the previous one.

Security notes​

  • Generated listen URLs are temporary test endpoints, not production webhooks — treat them accordingly.
  • Share listen URLs only with the tester during the active session window.
  • Keep test payloads sanitized; do not use production secrets or PII in listen-mode tests.