Please note that this API relates to LivePersons legacy chat product which receives limited support and will be deprecated in the future.

It is recommended to build future integrations on top of LivePersons Messaging Platform SDK instead.

Introduction

Agents within Conversational Cloud play the crucial role of interfacing with customers by answering chat conversations and communicating with customers. The Chat Agent API provides the capabilities of programmatically running agent activities without human intervention.

The Chat Agent API is a REST style API with relation links, and provides the main functionality for the Agent Workspace in Conversational Cloud.

Getting Started with the Chat Agent API

  1. Note the API terms of use.

  2. When using this API, it is recommended that you implement our Retry Policy and KeepAlive best practices.

In order to use the Chat Agent API, please follow the steps below:

  1. Retrieve your domain. Use the LivePerson Domain API to retrieve this information. The API's serviceName is agentVep.
  2. Log a user into Conversational Cloud using the Login Service API. Provide a username and password, and receive an authorization token (bearer). Use this token as your authorization header in all Chat Agent API requests.
  3. Create an agent session using the Start Agent Session method.
  4. Log out using the Login Service API.

Use Cases

There are two primary reasons to utilize the Chat Agent API:

  1. Add bots to your chat experience

    • Bot as an agent to answer customer inquiries

    • Bot joins a conversation to assist humans

    • Bot as a listener to a conversation to provide tips for human agents

  2. Build your own custom agent workspace

    • Add the ability for agents to take chats from within your CRM

    • Build a mobile app for your agents

The Chat Agent API provides information on the following:

  • Agent availability (agent status)

  • Number of available agents\

  • Visitor info (device, IP, OS, etc.)

  • Pre-chat survey info

Notes:

  • Other complementary APIs may be required in order to use the full functionality of the Agent Workspace.

  • To establish and use an agent session via unsigned requests, you must correctly handle cookies which are set by the server in response to API requests. Cookies are scoped to a specific agent session. When working with multiple agents, make sure to track cookies separately for each agent session. There is no need to use this security cookie when using Signed requests, therefore it will not be set by the server.

The Conversational Cloud Agent workspace example:

AgentWorkspaceSDK

Samples

Refer to the Agent Sample App.