What is Conversation Context Service?

The Conversation Context Service (CCS) provides contextual memory to power AI experiences within Conversational Cloud. It enables spontaneous, context-aware conversations by being the central place where internal and external services can store and gather conversation context to further the dialog with consumers.

CCS is a cloud-based repository for storing and retrieving session state attributes that can be preserved and referenced throughout a consumer’s conversational journey. This feature allows all agents, whether human or bot, to access relevant information that has been previously uncovered to ensure the consumer has a seamless, thoughtful experience as they move through their conversations. By using the CCS as a single source of truth for a user’s context variables, we can craft a more personalized experience for the consumer, while reducing redundancy and limiting the potential for errors when re-entering information.

CCS provides a system to hierarchically organize data using key-value pairs. At the top of the hierarchy, brands can have multiple namespaces to specify sections based on different business use cases. Typically, namespaces group together related attributes, such as customer information or reporting dashboard data for your account. Brands can define as many attributes as needed within their namespace, and they can further organize and structure these attributes under session IDs within the namespace.

{ Namespace

  <Group-related attributes, e.g., customer info>

  { Session ID

  <Identifier to group KVPs, e.g., a session ID>

    { Key-Value Pairs

    <Attributes, e.g., customer name, email>

CCS stores data in key-value pairs and includes developer tools like js-libraries, LivePerson Functions support and REST APIs. These can be used to store data from other products within the Conversational Cloud and from external data sources.

When to use the Conversation Context Service

Don’t store personally identifiable information (PII) in the Conversation Context Service.

CCS attributes can be used in a variety of ways to enhance the conversational experience of consumers. Attributes are accessible at any point in the conversational journey, and they can be used in the following ways:

  • Power contextual continuity between bots - In this example, the intent and email is being saved into the CCS by one bot and is being retrieved by another bot to continue the conversation.

    An example conversation with a consumer that illustrates use of the CCS to maintain contextual info as the conversation is transferred from one bot to another

  • Perform context-based dynamic routing at scale - In this example, a concierge bot saves the intent into the CCS. The CCS links to an external CRM to get customer tier information. A Dynamic Routing policy then makes use of the intent and tier information to power a routing decision.

    An example conversation with a consumer that illustrates use of the CCS to perform context-based, dynamic routing at scale

  • Perform human-bot tango - In this example, bots continue to build context about the consumer and the context information can be exposed to human agents through an agent-facing widget.

    An example conversation with a consumer that illustrates use of the CCS to maintain contextual info as the conversation is transferred from bot to human agent

How to use the Conversation Context Service

Each object within the CCS comes with full CRUD (Create, Read, Update, Delete) functionality to easily generate and access the needed information. When building bots using LivePerson Conversation Builder, it is highly recommended to leverage the built in botContext scripting functions. These scripting functions provide straightforward methods to simplify each CRUD action for use in the bot and other Conversational Cloud services.

Additionally, the CCS API offers a RESTful interface with methods to access the desired functionality from services other than Conversation Builder.

API versions

v2 of the Conversation Orchestrator APIs was released in July 2021. The new version applies to both the Conversation Context Service and the Next Actions API. v2 has the following additional benefits:

  • Higher scalability
  • Improved authorization mechanism
  • Visibility into Dynamic Routing policy execution logs
  • Better APIs, e.g., update multiple context variables in a single call
  • Better data security through improved encryption

LivePerson is gradually upgrading all accounts from v1 to v2, as the v1 APIs will be deprecated on June 30, 2024. If you haven’t been contacted yet but want to be upgraded to v2 sooner, please contact your LivePerson representative. Please refer to the v1 or v2 documentation as appropriate for your case.

To know which version you are on (v1 or v2), please visit the API Authorization page within the Conversation Orchestrator application, and consult the discussion on API Authorization.