๐Ÿ‡ฌ๐Ÿ‡ง EN
๐Ÿ‡ฎ๐Ÿ‡น IT

๐Ÿ“ก Emit Event

Emits a named event that can trigger other workflows configured with an Event Trigger node. Use Emit Event to create event-driven pipelines where one workflow hands off work to another, enabling modular, loosely-coupled workflow architectures.

Category: Notifications & Messaging  ยท  Type identifier: emit_event

Overview

Emit Event implements a publish-subscribe pattern entirely within Flusso. When this node runs, it publishes a named event to Flusso's internal event bus. Any workflow whose trigger is an Event Trigger listening for the same event name is started automatically, receiving the payload you define.

This allows you to decouple workflows from each other. The emitting workflow does not need to know how many listeners exist โ€” you can add or remove listening workflows at any time without touching the emitter. All matching listeners run in parallel when the event fires.

Configuration

FieldStatusDescription
Event Name Required The name of the event to emit, e.g. order.completed or user.registered. This must match the Event Name configured on the receiving workflow's Event Trigger node. Supports {{ variable }} references.
Payload Optional A JSON object to pass as data to the triggered workflow. The receiving workflow can access this data via its trigger output. Supports {{ variable }} references.
Wait for Completion Optional Toggle. When off (default), the event is emitted and the current step completes immediately without waiting for triggered workflows to finish. When on, the step waits for all triggered workflow runs to complete before continuing.

Output Data

After the event is emitted, the following fields are available on the step output:

FieldTypeDescription
event_namestringThe name of the event that was emitted.
triggered_runsarrayIDs of the workflow runs that were started by this event.
triggered_countnumberNumber of workflow runs triggered.
{{ step_key.output.event_name }} {{ step_key.output.triggered_runs }} {{ step_key.output.triggered_count }}

Example Usage

  1. Workflow A processes an order and, at the end, adds an Emit Event node. Set Event Name to order.completed and Payload to:
    { "order_id": "{{ process_order.output.order_id }}", "customer_email": "{{ process_order.output.customer_email }}", "total": "{{ process_order.output.total }}" }
  2. Workflow B uses an Event Trigger set to listen for order.completed. It sends a confirmation email using {{ trigger.output.payload.customer_email }}.
  3. Workflow C also uses an Event Trigger on order.completed and sends a Slack notification to the sales team. Both Workflow B and C are started simultaneously when Workflow A emits the event.

Tips & Notes

Related Nodes