"Publish Raw Message" node

Note: We recommend publishing data in Google Pub/Sub using the CloudEvents standard. To publish data using this standard, proceed with the “Publish Message” node.

Google Could Pub/Sub is a messaging service for exchanging event data among applications and services. It lets you create systems of event producers and consumers, called publishers and subscribers. Publishers communicate with subscribers asynchronously by broadcasting events to a topic, without regard to how or when these events are to be processed. Pub/Sub then delivers events to all the subscribers of that topic, and each subscriber has its own logic of reacting to the event.

The integration between Synerise and this tool opens up possibilities of exporting data collected in Synerise. With the Publish Raw Message node, you can push data from Synerise to Pub/Sub in the form of messages published to Pub/Sub queues in the CloudEvents standard. You can use this connection in various scenarios, such as exporting transactions, event data, customer information (such as marketing agreements), results of metrics, aggregates, expressions, reports, and many more to Google Cloud Pub/Sub. This lets you seamlessly integrate Synerise with third-party tools or other Google Tools such as Google Analytics, Google Ads, Google BigQuery, Google Sheets.

During the configuration of the node, you can use Jinjava inserts which let you dynamically refer to the profile attributes and event parameters in the workflow.

Important: This node is not optimized for batch operations that send large volumes of data (for example, updating all events for each profile). Use it to export changes within one event, profile attribute (for example, marketing agreement), analysis results, and so on.

Prerequisites


Node configuration


  1. Click Google Cloud Pub/Sub > Publish Raw Messages.
  2. Click Select connection.
  3. From the dropdown list, select the connection.

Create a connection

To allow the data exchange, establish a connection between Synerise and Google Cloud Pub/Sub.

  1. At the bottom of the Select connection dropdown list, click Add connection.
  2. On the pop-up, click Sign in with Google.
  3. Select a Google account which has:
    • Access to the project and topic in Google Cloud Pub/Sub that you want to use.
    • Permissions to publish messages in that project and topic.
  4. Follow the instructions on the interface.
  5. After successful authentication, click Next.
  6. In the Connection name field, enter the name of the connection.
    It’s used to find the connection on the list.
  7. Click Apply.
    Result: A connection is created and selected.

Define the integration settings

In this step, fill in the form that allows you to publish a message in Google Cloud Pub/Sub in CloudEvents standard.

Note: You can use Jinjava inserts when defining any field of this integration, for example Messages field to dynamically send data stored in Synerise. This way, Jinjava dynamically fills in values (for example, ID, email address, expression/aggregate result) for each profile/item.
  1. In the Project ID field, enter the unique identifier of your project in Google Cloud Console.
    You can learn how to find the project ID here.

  2. In the Topic ID field, enter the unique identifier of the topic (a named resource that represents a feed of messages).
    Learn more about creating and managing topics.

  3. In the Messages field, enter a JSON array with messages to be published. Learn more about building messages in Pub/Sub.

    • Each message object must contain the data or attributes parameter.
    • the data parameter of the message object must be encoded in Base64. You may use Jinjava filter to encode your data.
    Click here to see example of the Messages array

    [
        {
            "data": "{{ {"name": "John"}|tojson|base64Encode }}",
            "attributes": {
                "cardID": "XXX"
            }
        }
    ]
        

  4. Confirm the settings by clicking Apply.

Example of use


Refer to this use case to see how you can use this 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