If you have a sequence with a satisfaction survey step, you can define a webhook to receive data each time a person filled a form.

Where to define the webhook

In the sequence where you want to define yout webhook, select the step "Satisfaction Survey".
Then you can define the URL where you want the data to be send each time a person has filled a a form.

How we send the filled form data

Each time a person has filled the form define in this step, InputKit will make a POST request to the webhook URL with the data in JSON format.

Data Format

{
  "customer": {
    "email": "[email protected]",
    "first_name": "John",
    "last_name": "Doe",
    "id": 90944,
    "location_id": 2809,
    "full_name": "John Doe",
    "phone": "",
    "name": "john Doe",
    "nps": 9
  },
  "date_created": "2020-03-05T19:31:20.000Z",
  "questions_answers": [
    {
      "question": "Question 1",
      "answers": [
        {
          "answer": "Answer 1",
          "explanation": null,
          "is_alert": 0
        }
      ],
      "questionType": 0
    },
    {
      "question": "Question 2",
      "answers": [
        {
          "answer": "5",
          "explanation": "explanation question 2",
          "is_alert": 0
        }
      ],
      "nb_scales": 5,
      "questionType": 6
    },
    {
      "question": "NPS",
      "answers": [
        {
          "answer": 9,
          "explanation": "reason NPS"
        }
      ],
      "questionType": 3
    },
    {
      "question": "question multiple answers",
      "answers": [
        {
          "answer": "option 1",
          "explanation": null,
          "is_alert": 0
        },
        {
          "answer": "option 2",
          "explanation": null,
          "is_alert": 0
        }
      ],
      "questionType": 2
    }
  ],
  "employees": [
    {
      "id": 311,
      "name": "Employee 1",
      "type": "Default"
    },
    {
      "id": 312,
      "name": "Employee 2",
      "type": "Default"
    }
  ],
  "Custom Field 1": "value 1",
  "Custom Field 2": "value 2"
}

Customer 

Contains all the details about the person who filled the form with its most recent NPS score. If the form contains a NPS question, you'll find the score here and also in question_answers

date_created 

The date when the form has been filled.

question_answers

An array that contains all the questions and answers of the filled form.

employees

In case the sequence sent to the person had employees linked to it, you'll find them here

Custom fields

You'll also find all the custom fields values linked to the sending in the data at the root level of the payload.

Did this answer your question?