About this piece

This user guide was written for our technical and non-technical customers to introduce webhooks and explain the set up process. The goal was to provide a starting point for customers interested in extending their product's functionality, which is why conceptual information and use cases were included. But shouldn't articles do one thing only?

Webhooks are used to extend the functionality of Customer Help and Live Support through interaction with an external service. You can register your own webhook URL, allowing you to integrate your systems with Support and customize the webhook’s actions.

Use webhooks to:

  • Manage ticket data in an external database, such as reporting software.
  • Get real-time notifications and collect data around user activity
  • Integrate services that manage agents’ work processes, such as timetables.
  • Retrieve and update user information, such as contact details, across you entire system.

How do webhooks work?

A webhook is an HTTPS request to an external system. When triggered, the webhook sends data to the external system, which can store it, process it, or respond with new data based on the received information. The data being sent and received is called a Payload.

A webhook occurs when an event happens — a ticket is assigned, a message is sent, or a ticket is moved to a new queue.

Setting up a webhook requires technical information from the external system. You can find Nilquist’s technical requirements for webhooks in our Docs page:

Important: Nilquist API is for advanced use. If you need more assistance, consult your technical team.


Configure a webhook

To manage webhooks for Customer Help and Live Support:

  1. Click the Settings icon in the top navigation menu.
    Navigation menu, indicating that the Settings icon be selected.
  2. Select Automation > Webhooks from the left-hand menu.
    Settings menu, indicating that the Webhooks option under Miscellaneous Settings be selected.

In Customer Help, you can create two types of webhooks:

  • Customer Help webhooks are triggered by events related to tickets, such as creating a ticket.

  • Live Support webhooks are triggered by events related to Live Support, such as joining a chat.

Select an option below to learn how to add a Customer Help or Live Support webhook.

Add a Customer Help webhook

Customer Help webhooks connect your instance to an external service. Events that can trigger a webhook include:

  • Creating a ticket
  • Closing a ticket
  • Answering a ticket
  • Receiving a ticket reply
  • Classifying a ticket
  • Changing the ticket's queue

To add a global webhook:

  1. Go to the Customer Helpsection and select Add webhook
    The Webhooks configuration screen, indicating you should select the Add Webhook button in the Global section.
  2. The Add Webhook page will open. You must enter the following information to configure the webhook:
    • URL: Enter the external service URL to be called when the webhook is triggered.
    • API secret key: Enter the token to validate received payloads.
    • Set this webhook to private: Private webhooks are secure and accessible only through secure channels. Public webhooks allow broader access and can be simpler to work with.
    • Events: Select one or more events which will trigger the webhook.
  3. Select Save to finish and create the webhook.

There are technical requirements to set up webhooks for Customer Help. Consult with your technical team, and refer to the Developer's Portal for more information.

Add an Live Support webhook

Live Support lets agents have real-time chat conversations with users. Webhooks specific to Live Support can customize this experience. Events that can trigger a webhook include:

  • Creating or closing a chat
  • Assigning a chat to an agent
  • Joining or leaving a chat
  • Sending or receiving a chat message
  • Receiving, accepting or rejecting a chat invitation
  • No agents being available to be assigned to a chat
  • A user or system action occurring, such as typing

To add a Live Support webhook:

  1. Go to the Live Supportsection and select Add Webhook
    The Webhooks configuration screen, indicating you should select the Add Webhook button in the Live Chat specific section.
  2. The Add Agent Chat Webhook page will open. You must enter the following information to configure the webhook: 
    • URL: Enter the external service URL to be called when the webhook is triggered. 
    • Set this webhook to private: Private webhooks are secure and accessible only through secure channels. Public webhooks allow broader access and can be simpler to work with.
    • Events: Select one or more events which will trigger the webhook.
    • Sources: Select one or more Live Support sources to apply the webhook to. The webhook will only trigger when an event occurs for chats from the selected sources.
  3. Select Save to finish and create the webhook.

Important: Do not set up more than one webhook for the same event or source. If there is a conflict, only one webhook is used and others are ignored.

There are technical requirements to set up webhooks for Live Support. Consult with your technical team, and refer to the Developer's Portal for more information.

Examples

Since webhooks allow you to tie in an external system, you can use them to do nearly anything. Select an example below.

Customer calling an agent

Assign chats using an external algorithm

You want to set up a smart system that assigns Live Support chats to agents based on their qualifications and certificates. You configure an Agent Chat webhook for the Assign chat event.

  1. Webhook is triggered. Whenever a chat needs an agent, the Assign chat event triggers the webhook.
  2. Call the external service. The webhook sends a request to your external service with data about the chat request and available agents.
  3. System selects an agent. Your external system processes the data and picks the best agent for the job based on region and topic.
  4. System responds. The external service sends back the chosen agent's ID.

Analyst gathers data using webhook

Integrate Customer Help with a Business Intelligence (BI) system

You want to keep all your ticket-related data in an external BI system for better analysis. You can set up a webhook to send this data automatically.

  1. Event is triggered. Configure Global webhooks to trigger for the Create ticket and Reply ticket events.
  2. Send data to external service. The webhook sends the ticket and user data to your BI system's endpoint.
  3. Data storage. The BI system receives this data and stores it, ready for you to analyze and generate reports.