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/

Step 1 screenshot
2

Click on Apps

Step 2 screenshot
3

Click on Your apps

Step 3 screenshot
4

Click on create a new app

Step 4 screenshot
5

Type App Name ie 'Fini AI TEST'

Step 5 screenshot
6

Select LiveChat & omit the Infrastructure section

Step 6 screenshot
7

Click on create app

Step 7 screenshot

Authorization

1

Click on Blocks

Step 8 screenshot
2

Click on Add building block

Step 9 screenshot
3

Click on App Authorization

Step 10 screenshot
4

Click on Add block

Step 11 screenshot
5

Select server-side app

Step 12 screenshot
6

Click on Save

Step 13 screenshot
7

You've just successfully generated Client ID & Client Secret

Step 14 screenshot
8

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

Step 15 screenshot
9

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

Step 16 screenshot
10

Add callback URL

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

Click on Add

Step 18 screenshot
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 Step 25 screenshot
13

Click on Save changes

Step 26 screenshot

Chat Webhooks

1

Click on Blocks

Step 27 screenshot
2

Click on Add building block

Step 28 screenshot
3

Add Chat Webhooks

Step 29 screenshot
4

Add Fini AI URL

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

Generate Secret key 🔑

Step 32 screenshot
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

Step 36 screenshot
7

Click on Save

Step 37 screenshot
8

Click on Add webhook

Step 38 screenshot
9

Add Fini AI URL

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

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

Step 40 screenshot
11

In Webhook triggers, add incoming_event

Step 42 screenshot
12

Change the author type to customer

Step 43 screenshot
13

Click on Save

Step 44 screenshot
14

You've successfully built Chat Webhooks

Step 45 screenshot

Private Installation

1

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

Step 46 screenshot
2

And click on Install app

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