Feedback-Submission Webhook
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).
To configure Feedback-Submission Webhooks, follow these steps:
Feedback-submission notifications are sent every 1000 feedback-form submissions or 30 seconds, whichever comes first.
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:
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.
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_address
date_of_birth
comment
message
created_at