POST
/
webhooks
/
on-response
curl --request POST \
  --url https://yourdomain.com/webhooks/on-response \
  --header 'Content-Type: application/json' \
  --data '{
  "country_code": "+57",
  "cellphone": "3161234567",
  "session_id": "1234",
  "conversation_id": "5678",
  "question": {
    "type": "closed",
    "text": "conversation-question-text",
    "answers": [
      {
        "text": "answer-text"
      }
    ]
  },
  "sent_at": "2019-01-01 00:00:00",
  "responded_at": "2019-01-01 00:00:00",
  "sent_text": "text-sent-to-user",
  "actual_response": "Si necesito",
  "classified_answer": {
    "text": "answer-text"
  },
  "user_session_keys": [
    {
      "key": "name",
      "value": "Juan",
      "type": null
    },
    {
      "key": "user_id",
      "value": "12345",
      "type": null
    },
    {
      "key": "loc",
      "value": "{\"latitude\": 4.5935443, \"longitude\": -72.0345404, \"address\": \"Carrera 7 #100-06\"}",
      "type": "location"
    }
  ]
}'
{}

Body

application/json

Information about the response event

Evento que se dispara cuando un usuario responde a una pregunta en la conversación

Response

200 - application/json

Response to update or add information to the session

JSON object with new information that will be replaced or added to the session for future use. The service must respond within 10 seconds.