Business Event node

The Business Event is a node that receives information from external systems, such as the product storage changes, price changes, and so on. This way you can automate your business activities and build integrations between them. The node can receive multiple requests at a time, each trigger launches a separate workflow instance, however, it has a maximum capacity of 50 requests per second (when this limit is exceeded, the HTTP 429 error is returned).

By using the Business Event node as a trigger, the workflow is automatically categorized as a business workflow. This means that:

  • the customer context is not incorporated into the workflow
  • you can’t use the {{ customer.attribute }} and {% customer attribute %} inserts.
  • you can’t use the customer-oriented nodes in a workflow.

If the data sent to Synerise contains a customer ID, you can use the Outgoing Integration node to produce the event on the profile card of the customer.

Prerequisites


Prepare the Incoming integration.

How it works


  1. To create a workflow that is triggered by the Business Event node, go to Automation > Workflows > New workflow.
  2. On the canvas, select Business Event.
  3. To open the settings of the node, click it
    Result: A pop-up opens.
  4. From the Choose dropdown, select the incoming integration you have prepared before.
  5. Confirm by clicking Apply.

Example of use


Example of use
Example of a workflow
Tip: You can check how the Business Event node is used in the use case concerning integration of Microsoft Azure Forms with Synerise.

The aim of the workflow is to receive data that contains indirect customer information and then to process and to transform the data in such a way that further actions become customer oriented.

  1. Add a Business Event trigger node.

  2. Use the incoming webhook integration by means of which the system receives data about products in the cart and the email as the identifier.

  3. Connect the Business Event trigger node with the Outgoing Integration node. In the Outgoing integration node, we will send a request to Synerise API to generate a profile event. All data from the incoming webhook can be transferred to the Outgoing integration node using Jinjava described below. In this example, the Outgoing integration uses the endpoint documented here. To pass further the values received through the Incoming integration, you can use Jinja.

    {{request.body.paramName}} for the parameters in the request body
    {{request.headers.headerName}} for the parameters in the request headers

    Below you can find an example of data received from the external service to an endpoint indicated in the Incoming integration settings.

    {
        "body": {
        "parameter1": "value1"
    },
    "businessProfileId": 611,
    "endpointId": "XXXX-XXXX-XXXX-XXXX-XXXXXXXXXX",
    "eventId": "XXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
    "headers": {
    "X-Request-ID": "XXXXXXXXXXXXXXXXXXX",
    "X-Forwarded-Host": "example host",
        },
    "method": "POST",
    "time": 1583206296408
    }
    • To pass the value of parameter1, in the body of the Outgoing Integration enter:
      {{request.body.parameter1}}
    • To pass the value of the X-Request-ID header, in the body of the Outgoing Integration enter:
      {{request.headers["X-Request-ID"]}}
      Result: A new event appears on the activity list on the customer card.
  4. Connect the Outgoing Integration with the End node.

πŸ˜•

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

πŸ˜‰

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker