Manage Outgoing WebHooks for Conversations

Manage Outgoing WebHooks for Conversations

Last update: szerda, júl. 03, 2019

Introduction:

What are Xeno outgoing webhooks and how do they work?


"Test" Event

{
  "event": "test",
  "token": "a-unique-token"
}


"Created" Event

{
  "event": "new_conversation",
  "token": "a-unique-token",
  "payload": {
    "id": 12345,
    "started_at": "2018-12-06T15:20:11.000Z",
    "trigger": {
      "conversation_started_by_trigger": false,
      "trigger_id": null
    },
    "user_group": {
      "conversation_in_a_user_group": true,
      "user_group_id": 123
    },
    "contact": {
      "name": "Remi Delhaye",
      "email": "[email protected]",
      "language": "en-US",
      "last_visited_page": "https://get.slaask.com",
      "platform": "OS X (10.11.6)",
      "browser": "Chrome (52.0.2743.116)",
      "city": "San Francisco, CA",
      "country": "US",
      "referrer": "https://google.com",
      "pages_visited_count": 42,
      "custom_informations": {
        "user_id": 1234567,
        "firstname": "Rémi",
        "lastname": "Delhaye",
        "team_id": 1
      }
    }
  }
}


"Ended" Event

{
  "event": "end_conversation",
  "token": "a-unique-token",
  "payload": {
    "id": 12345,
    "started_at": "2018-12-06T15:20:11.000Z",
    "ended_at": "2018-12-06T15:21:11.000Z",
    "trigger": {
      "conversation_started_by_trigger": false,
      "trigger_id": null
    },
    "user_group": {
      "conversation_in_a_user_group": true,
      "user_group_id": 123
    },
    "contact": {
      "token": "5aeae6e6-6a76-46bf-b0fa-eea1ab8289f6",
      "name": "Remi Delhaye",
      "email": "[email protected]",
      "language": "en-US",
      "last_visited_page": "https://get.slaask.com",
      "platform": "OS X (10.11.6)",
      "browser": "Chrome (52.0.2743.116)",
      "city": "San Francisco, CA",
      "country": "US",
      "referrer": "https://google.com",
      "pages_visited_count": 42,
      "custom_informations": {
        "user_id": 1234567,
        "firstname": "Rémi",
        "lastname": "Delhaye",
        "team_id": 1
      }
    },
    "messages": {
      "count": 42,
      "url": "https://slaask.com/api/messages?token=5aeae6e6-6a76-46bf-b0fa-eea1ab8289f6&id=12345"
    },
    "conversation_recap": "Wanted some help to create new webhooks.",
    "status": "resolved"
  }
}


Outgoing WebHooks

4 article in this category.