LiveAgent Virtual Button Integration Guide
This guide provides step-by-step instructions for integrating the LiveAgent virtual button into your website or application, using the AI12Z LiveAgent service.
Overview
The LiveAgent virtual button provides a seamless chat experience for your website visitors, allowing them to connect with support agents or AI-powered assistants directly from your site.
Service URL: https://example.liveagent.com
Step 1: Access Your LiveAgent Account
- Navigate to https://example.liveagent.com
- Log in with your LiveAgent credentials
- You'll be taken to your LiveAgent dashboard
Step 2: Create a New Chat Button
2.1 Navigate to Chat Button Configuration
- In your LiveAgent panel, navigate to Configuration > Chat > Chat Buttons
- Click on the "Create" button
2.2 Choose Button Type and Design
In the pop-up window, choose the type of your chat button:
Available Options:
- Pre-defined styles and designs: Select from ready-made templates
- Custom type: Create your own button from:
- Your own image upload
- Custom HTML and CSS code
Note: The colors of pre-defined designs can be customized further in the chat button's settings.
2.3 Configure Basic Settings
After selecting your button type, the configuration window will open automatically. In the Overview section, configure:
Essential Settings:
- Name: Give your button a descriptive name (e.g., "Website Support Chat")
- Department: Select the department that will handle chats from this button
- Language: Choose the language to be used in the button
- Active: Check this box to activate the button
Step 3: Generate Integration Code
3.1 Access Integration Code
- Open your chat button configuration
- Navigate to the Integration section
- Copy the integration JavaScript code provided
3.2 Understanding the Integration Code
The integration code will look similar to this:
<!-- LiveAgent Chat Button Integration Code -->
<script type="text/javascript">
;(function (d, src, c) {
var t = d.scripts[d.scripts.length - 1],
s = d.createElement("script")
s.id = "la_x2s6df8d"
s.defer = true
s.src = src
s.onload = s.onreadystatechange = function () {
var rs = this.readyState
if (rs && rs != "complete" && rs != "loaded") return
c(this)
this.onload = this.onreadystatechange = null
}
t.parentNode.insertBefore(s, t)
})(document, "https://example.liveagent.com/scripts/track.js", function (LA) {
LA.init({
license: "your-license-key",
group: "your-group-id",
visitor: {
name: "",
email: "",
},
})
})
</script>
<!-- End LiveAgent Integration Code -->
Important: The actual license key and group ID will be automatically generated and included in your specific integration code.
Step 4: Portal Integration
4.1 Basic Integration Steps
- Copy the integration code from your LiveAgent chat button configuration
- Here we need to copy the track.js file link and group ID
4.2 Integration into Customer Portal
- Login to the ai12z portal
- select the Agent and navigate it to the Webcontrols and ai12z bot component
- In the component settings, go to the Liveagent section
- Update the configs as a JSON object, for example:
{
"liveagent": {
"url": "https://example.liveagent.com",
"buttonId": "your-button-id"
}
}
If you want to add the chat button to your LiveAgent customer portal, follow the official guide for customer portal integration.
Additional Features and Resources
Related Features
- Internal chat: Internal chat setup
- Chat settings: General chat settings
- Customer typing visibility: View customer's typing text
- Chat overview: Chats overview section
Technical Resources
- Complete API reference: API Documentation
- REST API calls: How to make REST calls in PHP
Support and Documentation
For additional help and detailed configuration options:
- Main Documentation: LiveAgent Support Center
- Chat Button Settings: Chat Button Settings Overview
- Live Chat Section: Live Chat Documentation
- Submit Support Ticket: Submit a ticket
This guide is based on the official LiveAgent documentation. For the most current information, always refer to the official LiveAgent support documentation.
Last updated: July 23, 2025