Livechat connection
Learn how to generate Client ID, Client secret & Secret key for LiveChat account
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:
- App Creation
- Authorization
- Chat Webhooks
- 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
To get the above ids go to: https://platform.text.com/console/
Click on Apps
Click on Your apps
Click on create a new app
Type App Name ie 'Fini AI TEST'
Select LiveChat & omit the Infrastructure section
Click on create app
Authorization
Click on Blocks
Click on Add building block
Click on App Authorization
Click on Add block
Select server-side app
Click on Save
You've just successfully generated Client ID & Client Secret
Copy Client ID and save it somewhere Make sure you'll be able to access this number later
Same with Client Secret - Copy the number and save it somewhere Make sure you'll be able to access this number later
Add callback URL
In redirect URI whitelist paste “https://api-prod.usefini.com/v2/integrations/livechat/auth/callback” into input
Click on Add
Scroll to App scopes and API access
Click on Select scopes, and add all four of the below scopes:
- agents—all:ro
- chats—all:rw
- groups—all:ro
- tags—all:rw
Click on Save changes
Chat Webhooks
Click on Blocks
Click on Add building block
Add Chat Webhooks
Add Fini AI URL
In the Webhook URL field paste “https://api-prod.usefini.com/v2/integrations/livechat/ask-question” into input
Generate Secret key 🔑
Go to Webhook triggers and add incoming_chat
Click on Save
Click on Add webhook
Add Fini AI URL
In the Webhook URL add the same URL as previously: “https://api-prod.usefini.com/v2/integrations/livechat/ask-question”
Paste the same Secret key you've generated a moment ago:
In Webhook triggers, add incoming_event
Change the author type to customer
Click on Save
You've successfully built Chat Webhooks
Private Installation
In order to finish the whole process - click on Private installation
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