Skip to content

Latest commit

 

History

History
executable file
·
35 lines (32 loc) · 1.11 KB

README.md

File metadata and controls

executable file
·
35 lines (32 loc) · 1.11 KB

Agent sample app

Agent simulator app. This is a virtual agent simulator built over the Chat Agent API. In this demo the simulator implements the following Chat Agent API endpoints:

  • LiveEngage login
  • LiveEngage session refresh
  • Set availability to online
  • Create agent session
  • Check for incoming chats
  • Accept chat invitation and start chat session (if there is a chat waiting in queue)
  • Chat polling (wait to get messages from visitor)
  • Send line
  • End the chat when the transcript is over

Prerequisites

  • Create LiveEngage site
  • Ensure you have a user for this simulator (you will need a username and password)

Installation

  • Run npm install

Getting Started

  1. Run npm start
  2. Enter account ID
  3. Enter agent username
  4. Enter agent password
  5. Go to visitor test page, enter your site ID in the url and refresh the page
  6. Click to start chat
  7. Send the first message from the visitor side
  8. Wait for the agent response
  9. Follow steps 7 and 8 until the simulator ends the conversation