This is a simple Javascript console app utilising Saleforce Chat API. You can use this console app to send and recieve messages from online agents.
-
Saleforce Developer Account with Live Agent(Chat) Setup.
-
Node.js
-
Clone this repository.
git clone https://github.com/PrajvalRaval/salesforce-live-agent-console-app
-
Change to root directory.
cd salesforce-live-agent-console-app
-
Install Dependencies.
npm install
-
Open
config.js
file in any editor, and replace all the following values with your own:SERVER_URL
: Replace this with your own Chat API Endpoint. To find this value, go to your Salesforce Dashboard -> Setup (In Gear Icon) -> Quick Find Search -> Type inchat setting
-> Click on Chat Settings option
- For remaining values you will need your
Embedded Service Code Snippet
to find it, again go to Quick Find Search -> Type inEmbedded Service Deployments
-> Find your current deployment from the list -> Click on drop down menu and select 'View' -> Scroll Down and click on 'Get Code' button. From the code, you can find the values here:
-
Run the application.
npm start