Skip to content

LiveChat

NuacemOne uses the LiveChat Customer Chat API (v3.5). When an agent hands over, the customer’s chat is started in your LiveChat group. When your team deactivates the chat in LiveChat, the customer goes back to the NuacemOne agent (or the chat ends, as the agent is set up).

See Live agent handoff for how handoff works.

  • A LiveChat account with agents who will answer handed-over chats.
  • Access to the LiveChat Developer Console.
  • You are an organisation admin in NuacemOne.
  1. In the Developer Console, open Tools → Personal Access Tokens. Note your Account id and Organization id.
  2. Create a personal access token with these scopes: chats--access:rw, customers:own, groups_read. Copy it.
  3. Create (or open) a Developer Console app with customer access, and copy its client id.
  4. Optional: note the Group id (a number) of the LiveChat group handed-over chats should go to.
  5. Choose a webhook secret key: a long random value you will use when registering the webhooks. Keep it for the next steps.
  1. Go to Settings → Channels → Live agents → LiveChat and choose Connect LiveChat.
  2. Enter:
    • Name: a label.
    • Account id and Organization id.
    • Customer client id: the client id of your app with customer access.
    • Group id (optional): the group to route to.
    • Personal access token.
    • Webhook secret key: the secret you chose.
  3. Choose Connect. The next screen shows the connection’s Webhook URL. Copy it.
  4. Choose Test connection.

Register webhooks for these two actions, with the Webhook URL from the console and your webhook secret key:

  • incoming_event
  • chat_deactivated

Use the Configuration API’s register_webhook method, or your Developer Console app’s webhook settings. See LiveChat’s webhooks docs.

Choose the LiveChat connection in an agent’s Live agent handoff card, or in a workflow’s Human agent step, and publish.

  1. Open your website or a test page with the agent and ask for a person.
  2. Check the chat appears in LiveChat with the transcript.
  3. Reply from LiveChat and check the customer sees it.
  4. End the chat in LiveChat and check the agent takes it back (or the chat ends).
  • Test connection shows Tested.
  • Both webhooks are registered with the console’s URL and the same secret key.
  • The token has all three scopes and belongs to an account that will stay active.
  • The group (if set) is staffed when the agent offers a person.
  • You have run one full handoff and close on a real chat.

LiveChat bills seats and plans; see LiveChat pricing. API rate limits are in LiveChat’s developer docs.

Symptom Fix
“… is not in the expected format.” on a field Ids are letters, digits and dashes (8 to 64 characters); the group id is a number. Copy them again.
“The platform refused these credentials.” The personal access token is wrong, expired or missing a scope. Create a new one.
“The platform did not find this account or app. Check the ids.” Check the account, organisation and client ids.
Chats arrive in LiveChat but replies never reach the customer Register the incoming_event webhook with the console’s URL.
Webhooks are refused The secret key on the webhook must match Webhook secret key in NuacemOne.
The agent never takes the chat back Register the chat_deactivated webhook.