Skip to content

Inject Event

Inject Event is a Plugin that allows you to add an event to the payload by providing the event id. The event is directly loaded into the payload, augmenting the data as it passes through the workflow.


The version of the plugin used for this documentation is


The Inject Event plugin enables you to add an event into the payload (the data structure that carries content for the workflow). When the plugin is run, it loads the event associated with the provided event id into the current payload. If the event is not found, a warning is logged. The modified payload, containing the newly added event, is then returned.

The plugin operates in two phases:

  1. First, during the set_up method, it validates and stores the configuration.
  2. In the run method, it accesses the event database ("event_db"), retrieves the event associated with the provided "event_id", and adds this specified event into the payload.

Please note that Inject Event can start the workflow.

Inputs and Outputs

The plugin accepts one input - a payload:


  "payload": {
    "data": "Any data you need to pass to the plugin"
The plugin also outputs the modified payload:


  "payload": {
    "data": "Any data you need to pass to the next plugin",
    "event": "Loaded event data"
The payload output is the input payload enriched with the event data related to the provided id.


The plugin has one configuration parameter: - event_id: This required parameter specifies the id of the event you want to add to the payload.

JSON Configuration

Here is an example of the JSON configuration:

  "event_id": "123456"
Please replace "123456" with the actual id of the event you want to inject into your workflow.

Required resources

This plugin does not require external resources to be configured.


If the specified "event_id" does not exist in the event database, the following warning will be logged: "Event id {} does not exist." where {} will be replaced by the provided event_id. In this case the plugin continues executing and returns the input payload unchanged.