Skip to main content

LiveChat

With LiveChat modules in Make, you can watch incoming chats and when chats are deactivated, watch users added or removed from chats, watch when threads are tagged or untagged in your LiveChat account.

To use the LiveChat modules, you must have a LiveChat account. You can create an account at accounts.livechat.com/.

Refer to the LiveChat API documentation for a list of available endpoints.

Getting Started with LiveChat

Prerequisites

The module dialog fields that are displayed in bold (in the Make scenario, not in this documentation article) are mandatory!

Connecting LiveChat to Make

To establish the connection, you must:

Create a Custom Application in LiveChat

To create a LiveChat custom application and retrieve your client credentials:

  1. Go to https://developers.livechat.com/ and log in with your LiveChat credentials.

  2. Click Build App.

  3. Fill in an App name.

  4. For Product, choose LiveChat.

  5. Choose your Infrastructure. You must choose Repository to use Deployment as well.

  6. Choose your hosting service for Repository and, if necessary, for your deployment service.

  7. Click Create App.

  8. Within the app, in the left navigation, click App Authorization.

  9. Copy your Client ID and Client Secret values and store them in a safe place.

  10. Add the following for Redirect URI whitelist: https://www.integromat.com/oauth/cb/app

  11. For Access scopes, add the scopes you will need. The following scopes should cover any needs you may have, though your use may vary.

    livechat_scopes.png

You will use these values in the <Client ID > and <Client Secret > fields in Make.

Establish the connection with LiveChat in Make

To establish the connection in Make:

  1. Log in to your Make account, add a LiveChat module to your scenario, and click Create a webhook.

  2. Optional: Enter a name for the webhook in the Webhook name field.

  3. Click Create a connection.

  4. Optional: In the Connection name field, enter a name for the connection.

  5. In the Client ID and Client Secret fields, center the values copied above.

  6. Click Save.

  7. If prompted, authenticate your account and confirm access.

You have successfully established the connection. You can now edit your scenario and add more LiveChat modules. If your connection requires reauthorization at any point, follow the connection renewal steps here.

Chats

Make automatically creates a webhook in LiveChat once you add an instant trigger to your scenario.

Triggers when a chat is coming with a new thread.

Webhook

Enter a name for the webhook.

Connection

Establish a connection to your LiveChat account.

Triggers when a chat is deactivated by closing the currently open thread.

Webhook

Enter a name for the webhook.

Connection

Establish a connection to your LiveChat account.

Chat Users

Make automatically creates a webhook in LiveChat once you add an instant trigger to your scenario.

Triggers when a user (customer or agent) is added to a chat.

Webhook

Enter a name for the webhook.

Connection

Establish a connection to your LiveChat account.

Triggers when a user (customer or agent) is removed from a chat.

Webhook

Enter a name for the webhook.

Connection

Establish a connection to your LiveChat account.

Others

Performs an arbitrary authorized API call.

Connection

Establish a connection to your LiveChat account.

URL

Enter a path relative to https://api.livechatinc.com For example: /v3.3/configuration/action/list_webhooks

For the list of available endpoints, refer to the LiveChat API Documentation.

Method

Select the HTTP method you want to use:

GET to retrieve information for an entry.

POST to create a new entry.

PUT to update/replace an existing entry.

PATCH to make a partial entry update.

DELETE to delete an entry.

Headers

Enter the desired request headers. You don't have to add authorization headers; we already did that for you.

Query String

Enter the request query string.

Body

Enter the body content for your API call.

The following API call returns all the webhooks from your LiveChat account:

URL: /v3.3/configurations/action/list_webhooks

Method: POST

Body: {"owner_client_id": "<client_id>"}

61f2728aac2b0.png

Matches of the search can be found in the module's Output under Bundle > Body. In our example, 12 webhooks were returned:

61f2728bc63c8.png