Feedback-Submission Webhook

Overview

Megaphone's Feedback-Submission Webhook is a notification sent by Megaphone when users submit feedback using either a custom form in an Offer or a form at the end of the playlist, such as a quiz-winner form.

Notifications are sent via an HTTP post, where the body is a batch of feedback form submissions, in JSON format, as an array of objects (see Feedback Form Submission Example Payload, below).

Configuration

To configure Feedback-Submission Webhooks, follow these steps:

  1. Log in to Megaphone Studio at studio.megaphonetv.com.
  2. Under Account Settings > Profile, ensure the current user has the Owner role for the entire account. Users without the Owner role cannot modify Webhooks configurations.
  3. In Studio, select Create > Settings.
  4. In Settings, select Developer > Webhooks.
  5. On the Webhooks tab, for Feedback Form Submission, enter the desired webhook URL.
  6. If your URL requires authentication, select New Header, and provide the appropriate authentication header.

Notification Timing

Feedback-submission notifications are sent every 1000 feedback-form submissions or 30 seconds, whichever comes first.

Retry Policy

If a feedback-submission webhook call fails, Megaphone will attempt to send the notification again approximately every 2.5 minutes a maximum of five times.

Retry Example:

Payload Size

Feedback Form Submission Example Payload

The HTTP POST body for a Feedback-Submission Webhook notification is a JSON array of submission objects, as demonstrated in Example 1, below. Note that the properties of feedback-submission objects vary by project.

Example 1: Two feedback-form submissions in a Webhook HTTP POST body.

{

  "feedbackSubmissions": [

    {

      "name": "Jane Doe",

      "address": "3603 Some Street Pampanga Philippines 2009",

      "phone": "095551212",

      "email": "jdoe@email.com",

      "age": 30,

      "controller_key": "abd2490ee99f7s8r85903e62ec764a72782ddd88e4795d8b65b4c50c3bfb9b161a6d8c850cc3fa88bd0121383f6301364bed9d47bc27",

      "run_id": "8513b5646d14e0b1be64a40a70691fb7d8e297dd_1632978501461",

      "updated_at": "2021-09-30T06:39:08.414Z",

      "created_at": "2021-09-30T06:39:08.414Z"

    },

    {

      "name": "John Doe",

      "address": "7B Some Avenue, Tampa, Florida",

      "phone": "0925551212",

      "email": "johnd@yahoo.com",

      "age": 21,

      "controller_key": "29c4a4bc7d1ffee792dae810499aa94cc97bc580ec9659a834935451db4a438ede7f70bbe1c0ea25c2bf8584da48d151c0f538d89ea72f1583474859b2",

      "run_id": "8513b5646d14e0b1be64a40a70691fb7d8e297dd_1632978501461",

      "updated_at": "2021-09-30T06:39:10.205Z",

      "created_at": "2021-09-30T06:39:10.205Z"

    }

  ]

}

In Example 1, controller_key is a unique identifier that is issued to the end user at connection time, stored in the browser's local storage, and reused if the user submits feedback again from the same browser on the same device. The run_id identifies the Megaphone run, which typically corresponds to a specific show or sequence of polls. A new run is started when Present is opened in Megaphone Studio, and ends when the playlist in Present advances to intermission, or when the human operator selects Go to Feedback or Restart. Each run generates an independent entry in Megaphone Studio's Analytics dashboard.

Known Fields

Although all fields are configurable in Megaphone forms, the following field names are recommended, and are treated specially throughout Megaphone's services. For example, in .csv files generated by Megaphone Analytics, known field names are guaranteed to appear in a predictable column order. Likewise, when known field names are used to submit UGC, then UGC scenes added to playlists automatically include user names and user comments.

controller_key

first_name

last_name

name

age

address

street_address

city

state_province

postal_zip_code

phone

phone_number

number

email

email_address

date_of_birth

comment

message

created_at