Events

Listen to webhook events from the Swiftsell platform.

This feature is part of the 'Enterprise' plan

Enabling the events will give you access to define your webhook endpoint which will receive all the subscribed events.

List of events

Conversation Creation

When a new conversation is created.

Message exchange

When exchanges of messages are made between bots/agents and visitors.

Status change

When the conversation status changes i.e. chat changes to open or closed.

Assignee exchange

When the assignee of the chat changes from bot to agent or amongst agents.

Variable

Creation or updation of the value stored in the variable.

Label

Creation or attachment of a label to a chat.

Note

When a note has been added to a chat.


Subscribing to events

To subscribe to events, follow the below steps:

Step 1: Enable the events feature

Turn on the feature, and enter your webhook endpoint and a token that will be passed when the event is published.

Step 2: Select events

Select the events that you want to listen to and save.

Refer to the payload as shown in the above events.

Step 3: Test the webhook

Upon saving, we'll send an HTTP POST request to the provided endpoint along with the token. We will expect the same token provided as a response with 200 OK.

Expected response when endpoint is invoked

Last updated