New developer resources available
In addition to the following API reference, we have published a new how-to guide and a demo tool. The how-to guide provides step-by-step instructions for your first connector application. The demo tool enables you to experience the API on your developer account. You can open the resources in a new tab by clicking on the buttons below.
Go to How-to Guide Go to Demo Tool
The Connector API enables you to build applications that connect common messaging channels (such as Facebook Messenger, WeChat, Viber, Slack and so on) with Conversational Cloud. This gives you the ability to build your own connector application which can, as an example, open/close conversations and send messages to Conversational Cloud on behalf of your consumers.
A connector is a broker between Conversational Cloud data and a messaging channel's (e.g. Facebook Messenger, WhatsApp, LINE, etc.) messages and data. The connector receives messages and events from a messaging platform, transforms them into the Conversational Cloud language and passes it to the agent via the Send API. The connector can also create/open and close conversations and set the consumer profile upon conversation creation. The connector can also make sure that the consumer will be notified of agent activity during the conversation, and vice versa, using Webhooks notifications (for example, if the agent/consumer is typing, sent a message, read the message etc.).
Why do we need the Connector API?
Conversational Cloud already provides out of the box connectors to Facebook, Google My Business, Apple Messages for Business, LINE, SMS via Twilio with many more in the pipeline. This API can be used by brands looking to connect with any other messaging channel, such as an SMS Gateway of their choice (not via Twilio). The API also allows brands to develop their own customized messaging connector in collaboration with a third party partner.
What is the Connector API?
The Connector API consists of two main components:
The Messaging Send API: Send HTTPS requests based on the Messaging Window API framework. This component of the Connector API handles communication between the Connector and Conversational Cloud. It has two API endpoints, create conversation (CONVERSATION) and send message (SEND) (close conversation is a send message with a closing context in the payload). These calls communicate events from the third party application to Conversational Cloud.
Webhooks Notification Service: This component sends notifications from Conversational Cloud based on the Messaging Window API framework to the connector Webhooks HTTPS-endpoints. These notifications communicate any messaging events both from the agent and consumer to the connector, such as agent/consumer replied, closed conversation, is typing and so on.
Please note: as part of using the Connector API, brands will be required to expose their Webhooks' HTTPS-endpoints. The Webhooks component allows the connector to register for notifications on LivePerson (LP) events. For more information on using Webhooks, please refer to the Webhooks Overview.
Capabilities enabled by the Connector API
On the consumer side
|Create a new conversation and send SDEs in one step||Messaging SEND API||CONVERSATION|
|Send text messages||Messaging SEND API||SEND|
|Send images||Messaging SEND API||SEND|
|See SENT, READ and RECEIVED indications||Webhooks||N/A|
|Send chat state events (COMPOSING (i.e. Consumer is typing), ACTIVE, INACTIVE etc.)||Messaging SEND API||SEND|
|See chat state events (COMPOSING (i.e. Agent is typing), ACTIVE, INACTIVE etc.)||Webhooks||N/A|
|Send conversation metadata - Structured content identifier metadata||Messaging SEND API||SEND|
|Close conversation||Messaging SEND API||SEND|
|Send CSAT (Customer Satisfaction) & FCR (First Contact Resolution) ratings||Messaging SEND API||SEND|
On the agent side
Resume a conversation
Transfer a conversation to a different skill
Send a text message
Send structured content
See SENT, READ and RECEIVED indications
See indication that the consumer is typing
Close a conversation
Note - The Connector API was developed for applications/connectors on the Consumer side only. Hence, the consumer side capabilities described above are enabled via the Messaging SEND API and Webhooks components (which are the building blocks of the Connector API). On the Agent side, the capabilities described above are the ones already provided out of the box by Conversational Cloud and the Agent Workspace and that are currently supported by the Connector API. In other words, the Connector API brings new functionality (via the Messaging SEND API and Webhooks) only to the consumer side. On the agent side, it simply supports some of the already existing Conversational Cloud capabilities and allows them to be used in connector applications.
There are two primary reasons to utilize the Connector API:
Brands - To create their own custom connectors. This will enable their consumers to engage with them via many distribution channels whilst using more than one device, e.g a connector for WeChat, Twitter, Slack, Snapchat, Viber etc. Another example would be a connector for an SMS Gateway of their choice (not via Twilio). A connector developed by a brand would normally be hosted on the brand's servers.
Product solutions - These are connector applications that will be developed by LivePerson. Their functionality is the same as the above use case except that they are developed by LivePerson and not the brand. A connecter developed by LivePerson would normally be hosted on LivePerson servers.
Refer to the Connector Sample App.