Generating Client ID, Client secret & Secret key for LiveChat account

This document provides a comprehensive guide to generate 3 different IDs in order to deploy your Fini agent in LiveChat. This guide is divided in four sections:

  1. App Creation
  2. Authorization
  3. Chat Webhooks
  4. Private Installation

Make sure to follow this guide thoroughly to ensure the optimal performance of Fini within your Livechat environment. For any additional configurations or queries, refer to the detailed steps provided.

App Creation

1

To get the above ids go to: https://platform.text.com/console/

2

Click on Apps

3

Click on Your apps

4

Click on create a new app

5

Type App Name ie 'Fini AI TEST'

6

Select LiveChat & omit the Infrastructure section

7

Click on create app

Authorization

1

Click on Blocks

2

Click on Add building block

3

Click on App Authorization

4

Click on Add block

5

Select server-side app

6

Click on Save

7

You've just successfully generated Client ID & Client Secret

8

Copy Client ID and save it somewhere Make sure you'll be able to access this number later

9

Same with Client Secret - Copy the number and save it somewhere Make sure you'll be able to access this number later

10

Add callback URL

In redirect URI whitelist paste “https://api-prod.usefini.com/v2/integrations/livechat/auth/callback” into input

11

Click on Add

12

Scroll to App scopes and API access

Click on Select scopes, and add all four of the below scopes:

  1. agents—all:ro
  2. chats—all:rw
  3. groups—all:ro
  4. tags—all:rw
13

Click on Save changes

Chat Webhooks

1

Click on Blocks

2

Click on Add building block

3

Add Chat Webhooks

4

Add Fini AI URL

In the Webhook URL field paste “https://api-prod.usefini.com/v2/integrations/livechat/ask-question” into input

5

Generate Secret key 🔑

Copy the Secret key and store it together with Client ID and Client Secret. You won’t be able to access the code after you refresh the page.

6

Go to Webhook triggers and add incoming_chat

7

Click on Save

8

Click on Add webhook

9

Add Fini AI URL

In the Webhook URL add the same URL as previously: “https://api-prod.usefini.com/v2/integrations/livechat/ask-question

10

Paste the same Secret key you've generated a moment ago:

11

In Webhook triggers, add incoming_event

12

Change the author type to customer

13

Click on Save

14

You've successfully built Chat Webhooks

Private Installation

1

In order to finish the whole process - click on Private installation

2

And click on Install app

You’ve successfully generated Client ID, Client secret & Secret key. You can proceed to deploying Fini agent in your LiveChat account