Send NPS survey results to Google BigQuery

Published September 18, 2023
Modules
Difficulty
Powered by
OChK logo

Integrating Synerise with Google BigQuery enables you to easily export data from Synerise to BigQuery tables using the Upload Data to Table node. This connection can be used to export various types of data, such as NPS survey data.

By integrating with Google BigQuery, Synerise sends data to be directly uploaded into BigQuery tables, facilitating easy exportation and further analysis. The uploaded data can also be used in other Google tools, such as Google Analytics.

In this use case, we will create a workflow which sends information with NPS survey data to Google BigQuery using a dedicated node in our Automation.

Prerequisites


  • Implement a custom event for NPS survey data, which will be available in the customer profile. In this example, the event is called nps.send. Implement custom events in your mobile application or website Web. You can learn more about NPS survey in this use case.
  • Check the requirements you must meet to integrate Synerise with BigQuery.

Create a workflow


Create a workflow which sends information with NPS survey data to Google BigQuery. Every time the nps.send event is generated, the data from the event is sent automatically to BigQuery.

  1. Go to Automation icon Automation > Workflows > New workflow.
  2. Enter the name of the workflow.

Define the Profile Event trigger node


At this stage, we will configure conditions that launch the workflow. As a trigger, we will use the nps.send event.

  1. As the first node of the workflow, add Profile Event. In the configuration of the node:
    1. Enter the following title to the node: nps survey.
    2. From the Choose event dropdown menu, choose the nps.send event.
  2. Confirm by clicking Apply
Click here to see example event and its parameters for an example customer

  {
    "time": "2023-02-15T15:24:49Z",
    "action": "nps.sent",
    "label": "",
    "client": {
        "id": 5092159999,
        "email": "e0097757-d1e2-44ac-ba3c-d97979a354c1@anonymous.invalid",
        "uuid": "e0097757-d1e2-44ac-ba3c-d97979a354c1"
    },
    "params": {
        "eventCreateTime": "2023-02-15T15:25:08.861Z",
        "name": "John",
        "surname": "Doe",
        "location": "Warsaw",
        "age": "23",
        "feedback": "Great customer serviece and product selection."
    }
}

Configure the Upload Data to Table node


At this stage, we will configure the BigQuery node.

  1. As the next node, add Google BigQuery > Upload Data to Table.
  2. Click Select connection.
  3. From the dropdown list, select the connection.
  • If no connections are available or you want to create a new one, see Create a connection.
  • If you selected an existing connection, proceed to defining the integration settings.
  1. In the configuration of the node:
    1. In the Project ID field, enter the unique identifier of your project in Google BigQuery. You can learn how to find the project ID here.
    2. In the Dataset ID field, enter the unique identifier of the dataset in the BigQuery project.
    3. In the Table ID field, enter the unique identifier of the table in the dataset.
    4. In the Rows field, enter JSON that extracts name, surname, location and the contents of feedback from the event selected in the Profile Event node. The example body contains the Automation inserts that retrieve data from the event included in the Profile Event node.
Note: In this JSON you define only those parameters you want to send to BigQuery.
  [
    {
      "insertId": "{{ currentStep.actionId }}",
      "json": {
        "name": "{{ automationPathSteps['nps survey'].event.params.name }}",
        "surname": "{{ automationPathSteps['nps survey'].event.params.surname }}",
        "location": "{{ automationPathSteps['nps survey'].event.params.location }}",
        "feedback": "{{ automationPathSteps['nps survey'].event.params.feedback }}"
      }
    }
]

Add the finishing node


  1. Add the End node.
  2. In the upper right corner, click Save & Run.
The view of the workflow configuration
The workflow configuration

Check the use case set up on the Synerise Demo workspace


You can check the workflow configuration directly in Synerise Demo workspace.

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

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