> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/communication/livechat.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# LiveChat

LiveChat is a live chat platform for customer support. Manage agents, bots, groups, tags, customer bans, access rules and chat users.

![LiveChat logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-1cf6335272fdaf165bb9097eadc438d74900309d%2Flivechat.png?alt=media)

|                    |                                                                            |
| ------------------ | -------------------------------------------------------------------------- |
| **Category**       | [Communication](https://docs.fastn.ai/connectors/catalog/communication.md) |
| **Website**        | [livechat.com](https://livechat.com)                                       |
| **Authentication** | Username and password                                                      |
| **Slug**           | `livechat`                                                                 |
| **On fastn.ai**    | [Embed LiveChat in your product](https://fastn.ai/integrations/livechat)   |

## Setup

Your customers enter their username and password for LiveChat when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect LiveChat from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **LiveChat**.
2. Select **Connect** on the LiveChat card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use LiveChat's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Auto Access Rule</td><td><code>addAutoAccess</code></td><td>Creates an auto access rule that assigns groups to a chat based on the customer's page URL and geolocation.</td></tr><tr><td>Add User to Chat</td><td><code>addUserToChat</code></td><td>Adds an agent or a customer to an active chat. A chat can hold only one customer, who must be added with visibility all.</td></tr><tr><td>Approve Agent</td><td><code>approveAgent</code></td><td>Approves an agent who is awaiting approval, allowing them to use the application.</td></tr><tr><td>Approve Agents (Batch)</td><td><code>batchApproveAgents</code></td><td>Approves several agents in one request. Each entry takes the same payload as Approve Agent.</td></tr><tr><td>Ban Customer</td><td><code>banCustomer</code></td><td>Bans a customer for a number of days, immediately disconnecting their active sessions.</td></tr><tr><td>Check Product Limits for Plan</td><td><code>checkProductLimitsForPlan</code></td><td>Compares the organization's current resource usage against a subscription plan and returns the resources that exceed that plan's limits.</td></tr><tr><td>Create Agent</td><td><code>createAgent</code></td><td>Creates a new agent within the license.</td></tr><tr><td>Create Agents (Batch)</td><td><code>batchCreateAgents</code></td><td>Creates several agents in one request. Each entry takes the same payload as Create Agent.</td></tr><tr><td>Create Bot</td><td><code>createBot</code></td><td>Creates a new bot agent on the license. Use Set Routing Status afterwards to make it available for chats.</td></tr><tr><td>Create Bot Template</td><td><code>createBotTemplate</code></td><td>Creates a bot template for an application. A bot based on the template is created automatically on every license that installs the application. One Client ID can hold up to five templates.</td></tr></tbody></table>

<details>

<summary>View 114 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Bots (Batch)</td><td><code>batchCreateBots</code></td><td>Creates several bot agents in one request. Each entry takes the same payload as Create Bot.</td></tr><tr><td>Create Greeting</td><td><code>createGreeting</code></td><td>Creates a greeting campaign that is shown to customers when its rules match.</td></tr><tr><td>Create Group</td><td><code>createGroup</code></td><td>Creates a new group of agents.</td></tr><tr><td>Create Tag</td><td><code>createTag</code></td><td>Creates a chat tag. Matching an existing tag name is case insensitive.</td></tr><tr><td>Deactivate Chat</td><td><code>deactivateChat</code></td><td>Closes the chat's active thread so no more messages can be sent to it.</td></tr><tr><td>Delete Agent</td><td><code>deleteAgent</code></td><td>Deletes an agent from the license.</td></tr><tr><td>Delete Agents (Batch)</td><td><code>batchDeleteAgents</code></td><td>Deletes several agents in one request. Each entry takes the same payload as Delete Agent.</td></tr><tr><td>Delete Auto Access Rule</td><td><code>deleteAutoAccess</code></td><td>Deletes an auto access rule.</td></tr><tr><td>Delete Bot</td><td><code>deleteBot</code></td><td>Deletes a bot agent from the license.</td></tr><tr><td>Delete Bot Template</td><td><code>deleteBotTemplate</code></td><td>Deletes a bot template. The bots created from it are removed only when affect_existing_installations is true.</td></tr><tr><td>Delete Bots (Batch)</td><td><code>batchDeleteBots</code></td><td>Deletes several bot agents in one request. Each entry takes the same payload as Delete Bot.</td></tr><tr><td>Delete Chat Properties</td><td><code>deleteChatProperties</code></td><td>Deletes property values from a chat.</td></tr><tr><td>Delete Event Properties</td><td><code>deleteEventProperties</code></td><td>Deletes property values from an event.</td></tr><tr><td>Delete Greeting</td><td><code>deleteGreeting</code></td><td>Deletes a greeting.</td></tr><tr><td>Delete Group</td><td><code>deleteGroup</code></td><td>Deletes a group.</td></tr><tr><td>Delete Group Properties</td><td><code>deleteGroupProperties</code></td><td>Deletes property values from a group.</td></tr><tr><td>Delete License Properties</td><td><code>deleteLicenseProperties</code></td><td>Deletes property values from the license.</td></tr><tr><td>Delete Tag</td><td><code>deleteTag</code></td><td>Deletes a chat tag. The tag name is matched case sensitively.</td></tr><tr><td>Delete Thread Properties</td><td><code>deleteThreadProperties</code></td><td>Deletes property values from a thread.</td></tr><tr><td>Disable License Webhooks</td><td><code>disableLicenseWebhooks</code></td><td>Disables webhooks on the license. They stay disabled even after the application is reinstalled.</td></tr><tr><td>Enable License Webhooks</td><td><code>enableLicenseWebhooks</code></td><td>Re-enables webhooks that were disabled on the license.</td></tr><tr><td>Follow Chat</td><td><code>followChat</code></td><td>Follows a chat so the requester receives all of its updates until the chat is reactivated or unfollowed.</td></tr><tr><td>Get Agent</td><td><code>getAgent</code></td><td>Returns the details of a single agent.</td></tr><tr><td>Get Bot</td><td><code>getBot</code></td><td>Returns the details of a single bot agent.</td></tr><tr><td>Get Chat</td><td><code>getChat</code></td><td>Returns a chat together with one of its threads.</td></tr><tr><td>Get Customer</td><td><code>getCustomer</code></td><td>Returns the details of a customer, including their statistics, most recent visit and chat IDs.</td></tr><tr><td>Get Greeting</td><td><code>getGreeting</code></td><td>Returns the details of a single greeting.</td></tr><tr><td>Get Group</td><td><code>getGroup</code></td><td>Returns the details of a single group.</td></tr><tr><td>Get License Webhooks State</td><td><code>getLicenseWebhooksState</code></td><td>Returns whether an application's webhooks are currently enabled on the license.</td></tr><tr><td>Get Product Source</td><td><code>getProductSource</code></td><td>Returns the source parameters recorded when the LiveChat product was activated.</td></tr><tr><td>Issue Bot Token</td><td><code>issueBotToken</code></td><td>Issues a 24-hour access token for a bot. The token carries the chats--access:rw, agents-bot--my:rw and customers:rw scopes and cannot be revoked.</td></tr><tr><td>List Agents</td><td><code>listAgents</code></td><td>Returns all agents within the LiveChat license, optionally filtered by group or suspension state.</td></tr><tr><td>List Agents for Transfer</td><td><code>listAgentsForTransfer</code></td><td>Returns the agents a chat can be transferred to, sorted by how many active chats they have. Offline agents are not returned.</td></tr><tr><td>List Archives</td><td><code>listArchives</code></td><td>Searches archived chats. Each result pairs one chat with one of its threads, so the same chat can appear more than once.</td></tr><tr><td>List Auto Access Rules</td><td><code>listAutoAccesses</code></td><td>Returns all auto access rules configured on the license, in evaluation order.</td></tr><tr><td>List Bot Templates</td><td><code>listBotTemplates</code></td><td>Returns the bot templates registered for an application.</td></tr><tr><td>List Bots</td><td><code>listBots</code></td><td>Returns the bot agents created on the license.</td></tr><tr><td>List Channels</td><td><code>listChannels</code></td><td>Returns a summary of the communication channels used on the LiveChat license.</td></tr><tr><td>List Chats</td><td><code>listChats</code></td><td>Returns summaries of the chats the authorized agent has access to.</td></tr><tr><td>List Customer Bans</td><td><code>listCustomerBans</code></td><td>Returns every active customer ban on the license.</td></tr><tr><td>List Greetings</td><td><code>listGreetings</code></td><td>Returns the greetings configured on the license.</td></tr><tr><td>List Group Properties</td><td><code>listGroupsProperties</code></td><td>Returns the property values set on the given groups.</td></tr><tr><td>List Groups</td><td><code>listGroups</code></td><td>Returns every group on the license.</td></tr><tr><td>List License Properties</td><td><code>listLicenseProperties</code></td><td>Returns the property values set on the license, falling back to each property's default value.</td></tr><tr><td>List Properties</td><td><code>listProperties</code></td><td>Returns the private and public properties owned by an application.</td></tr><tr><td>List Routing Statuses</td><td><code>listRoutingStatuses</code></td><td>Returns the current routing status of every agent matching the filters.</td></tr><tr><td>List Tags</td><td><code>listTags</code></td><td>Returns the chat tags configured on the license.</td></tr><tr><td>List Threads</td><td><code>listThreads</code></td><td>Returns the threads of a chat that the authorized agent has access to.</td></tr><tr><td>List Webhook Names</td><td><code>listWebhookNames</code></td><td>Returns every webhook action supported by an API version, together with the filters each one accepts.</td></tr><tr><td>List Webhooks</td><td><code>listWebhooks</code></td><td>Returns the webhooks registered for an application.</td></tr><tr><td>Mark Events as Seen</td><td><code>markEventsAsSeen</code></td><td>Marks the chat's events up to a given time as seen by the requester.</td></tr><tr><td>Multicast</td><td><code>multicast</code></td><td>Sends a chat-unrelated message to selected agents. Multicast messages are not stored.</td></tr><tr><td>Publish Property</td><td><code>publishProperty</code></td><td>Publishes a private property so any application can access it. Publishing cannot be undone.</td></tr><tr><td>Reactivate Email</td><td><code>reactivateEmail</code></td><td>Reactivates an agent's email address after it has bounced.</td></tr><tr><td>Register Property</td><td><code>registerProperty</code></td><td>Registers a new private property for an application.</td></tr><tr><td>Register Webhook</td><td><code>registerWebhook</code></td><td>Registers a webhook for an application. One Client ID can register up to three webhooks per action.</td></tr><tr><td>Remove User from Chat</td><td><code>removeUserFromChat</code></td><td>Removes an agent from a chat. The customer cannot be removed.</td></tr><tr><td>Report: Agent Availability</td><td><code>reportAgentAvailability</code></td><td>Returns how long each agent was available to accept chats.</td></tr><tr><td>Report: Agent Performance</td><td><code>reportAgentPerformance</code></td><td>Returns each agent's chat performance metrics.</td></tr><tr><td>Report: Chat Duration</td><td><code>reportChatDuration</code></td><td>Returns the average chat duration of agents within the license.</td></tr><tr><td>Report: Chat Engagement</td><td><code>reportChatEngagement</code></td><td>Returns how chats were started, split by engagement type.</td></tr><tr><td>Report: Chat First Response Time</td><td><code>reportChatFirstResponseTime</code></td><td>Returns the average time it took agents to send their first response.</td></tr><tr><td>Report: Chat Forms</td><td><code>reportChatForms</code></td><td>Returns how many pre-chat and post-chat surveys were filled in.</td></tr><tr><td>Report: Chat Ranking</td><td><code>reportChatRanking</code></td><td>Returns the chat satisfaction ranking, calculated from good and bad ratings.</td></tr><tr><td>Report: Chat Ratings</td><td><code>reportChatRatings</code></td><td>Returns how customers rated chats, split into good, bad and unrated.</td></tr><tr><td>Report: Chat Response Time</td><td><code>reportChatResponseTime</code></td><td>Returns the average agent response time in chats.</td></tr><tr><td>Report: Chat Tags</td><td><code>reportChatTags</code></td><td>Returns how many chats were marked with each tag.</td></tr><tr><td>Report: Chats by Group</td><td><code>reportChatsByGroup</code></td><td>Returns how chats were distributed across groups.</td></tr><tr><td>Report: Greetings Conversion</td><td><code>reportGreetingsConversion</code></td><td>Returns how many greetings were displayed, accepted, closed and ignored.</td></tr><tr><td>Report: Queued Visitors</td><td><code>reportQueuedVisitors</code></td><td>Returns how many visitors waited in the chat queue and how long they waited.</td></tr><tr><td>Report: Queued Visitors Left</td><td><code>reportQueuedVisitorsLeft</code></td><td>Returns how many visitors left the chat queue before being served.</td></tr><tr><td>Report: Tag Chat Usage</td><td><code>reportTagChatUsage</code></td><td>Returns how often each tag was used on chats.</td></tr><tr><td>Report: Total Chats</td><td><code>reportTotalChats</code></td><td>Returns the total number of chats in the reporting range.</td></tr><tr><td>Report: Unique Visitors</td><td><code>reportUniqueVisitors</code></td><td>Returns how many unique visitors viewed the website.</td></tr><tr><td>Request Agent Unsuspension</td><td><code>requestAgentUnsuspension</code></td><td>Sends an unsuspension request from the currently suspended agent to the license owners and vice owners.</td></tr><tr><td>Request Thread Summary</td><td><code>requestThreadSummary</code></td><td>Requests an AI-generated summary of a thread. The summary is delivered as a system event inside the thread. A deactivated thread can be summarized only once.</td></tr><tr><td>Reset Bot Secret</td><td><code>resetBotSecret</code></td><td>Generates a new secret for a bot agent.</td></tr><tr><td>Reset Bot Template Secret</td><td><code>resetBotTemplateSecret</code></td><td>Generates a new secret for a bot template.</td></tr><tr><td>Resume Chat</td><td><code>resumeChat</code></td><td>Restarts an archived chat by opening a new thread on it.</td></tr><tr><td>Send Event</td><td><code>sendEvent</code></td><td>Sends an event, such as a message, to a chat. The author must already be a user of the chat.</td></tr><tr><td>Send Event Preview</td><td><code>sendEventPreview</code></td><td>Sends a message preview that is not stored in the chat. Use it to stream a partial response before sending the final message.</td></tr><tr><td>Send Rich Message Postback</td><td><code>sendRichMessagePostback</code></td><td>Sends a postback for a rich message button.</td></tr><tr><td>Send Thinking Indicator</td><td><code>sendThinkingIndicator</code></td><td>Shows a thinking indicator in a chat, for example while a bot prepares an answer.</td></tr><tr><td>Send Typing Indicator</td><td><code>sendTypingIndicator</code></td><td>Shows or hides the typing indicator in a chat.</td></tr><tr><td>Set Routing Status</td><td><code>setRoutingStatus</code></td><td>Changes the routing status of an agent or a bot agent.</td></tr><tr><td>Start Chat</td><td><code>startChat</code></td><td>Starts a new chat. Every author of the initial events other than the requester must be listed in the chat users.</td></tr><tr><td>Suspend Agent</td><td><code>suspendAgent</code></td><td>Suspends an agent, blocking their access to the application.</td></tr><tr><td>Suspend Agents (Batch)</td><td><code>batchSuspendAgents</code></td><td>Suspends several agents in one request. Each entry takes the same payload as Suspend Agent.</td></tr><tr><td>Tag Thread</td><td><code>tagThread</code></td><td>Adds a tag to a thread. The tag must already exist and share at least one group with the thread.</td></tr><tr><td>Transfer Chat</td><td><code>transferChat</code></td><td>Transfers an active chat to another agent or group.</td></tr><tr><td>Unban Customer</td><td><code>unbanCustomer</code></td><td>Lifts a ban from a customer. Provide exactly one of IP address or customer ID.</td></tr><tr><td>Unfollow Chat</td><td><code>unfollowChat</code></td><td>Removes the requester from the chat followers. Chat members cannot unfollow their own chats.</td></tr><tr><td>Unregister Property</td><td><code>unregisterProperty</code></td><td>Unregisters a private property. Published properties cannot be unregistered.</td></tr><tr><td>Unregister Webhook</td><td><code>unregisterWebhook</code></td><td>Unregisters a previously registered webhook.</td></tr><tr><td>Unsuspend Agent</td><td><code>unsuspendAgent</code></td><td>Lifts the suspension from an agent.</td></tr><tr><td>Unsuspend Agents (Batch)</td><td><code>batchUnsuspendAgents</code></td><td>Unsuspends several agents in one request. Each entry takes the same payload as Unsuspend Agent.</td></tr><tr><td>Untag Thread</td><td><code>untagThread</code></td><td>Removes a tag from a thread.</td></tr><tr><td>Update Agent</td><td><code>updateAgent</code></td><td>Updates the properties of an existing agent. Only the fields you send are changed.</td></tr><tr><td>Update Agents (Batch)</td><td><code>batchUpdateAgents</code></td><td>Updates several agents in one request. Each entry takes the same payload as Update Agent.</td></tr><tr><td>Update Auto Access Rule</td><td><code>updateAutoAccess</code></td><td>Updates an auto access rule. Only the fields you send are overwritten. Sending next_id also reorders the rule.</td></tr><tr><td>Update Bot</td><td><code>updateBot</code></td><td>Updates an existing bot agent.</td></tr><tr><td>Update Bot Template</td><td><code>updateBotTemplate</code></td><td>Updates an existing bot template.</td></tr><tr><td>Update Bots (Batch)</td><td><code>batchUpdateBots</code></td><td>Updates several bot agents in one request. Each entry takes the same payload as Update Bot.</td></tr><tr><td>Update Chat Properties</td><td><code>updateChatProperties</code></td><td>Sets property values on a chat.</td></tr><tr><td>Update Company Details</td><td><code>updateCompanyDetails</code></td><td>Updates the company details stored on the license.</td></tr><tr><td>Update Customer</td><td><code>updateCustomer</code></td><td>Updates a customer's details. Besides the ID, at least one other field must be sent.</td></tr><tr><td>Update Event Properties</td><td><code>updateEventProperties</code></td><td>Sets property values on an event.</td></tr><tr><td>Update Greeting</td><td><code>updateGreeting</code></td><td>Updates an existing greeting. Only the fields you send are changed.</td></tr><tr><td>Update Group</td><td><code>updateGroup</code></td><td>Updates an existing group. Only the fields you send are changed.</td></tr><tr><td>Update Group Properties</td><td><code>updateGroupProperties</code></td><td>Sets property values on a group. Existing values that you do not send are left untouched.</td></tr><tr><td>Update License Properties</td><td><code>updateLicenseProperties</code></td><td>Sets property values on the license. Existing values that you do not send are left untouched.</td></tr><tr><td>Update Tag</td><td><code>updateTag</code></td><td>Updates the groups a chat tag is assigned to. The tag name is matched case sensitively.</td></tr><tr><td>Update Thread Properties</td><td><code>updateThreadProperties</code></td><td>Sets property values on a thread.</td></tr><tr><td>Upload File</td><td><code>uploadFile</code></td><td>Uploads a file and returns a temporary URL valid for 24 hours. The URL becomes permanent once it is used in a file event sent with Send Event. Maximum size 10MB; executable files are rejected.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/communication/livechat.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
