Documentation
Everything you need to know about VistaChat. From getting started to advanced integrations, find comprehensive guides and API references.
Getting Started
Welcome to VistaChat! This guide will help you get up and running with our live chat widget in just a few minutes.
Prerequisites
Before you begin, make sure you have:
- A website where you want to add the chat widget
- Basic HTML knowledge (or access to your website's code)
- A VistaChat account (sign up at app.vistachat.com/register)
Quick Setup
Create your free account at app.vistachat.com/register
Choose colors, position, and greeting message in your dashboard
Copy the JavaScript snippet from your dashboard
Paste the code before the closing </body> tag on every page
Installation Guide
Basic Installation
Add this code to your website's HTML, just before the closing </body> tag:
(function() {
var chat = document.createElement('script');
chat.src = 'https://widget.vistachat.com/chat.js';
chat.setAttribute('data-widget-id', 'YOUR_WIDGET_ID');
document.head.appendChild(chat);
})();
</script>
WordPress Installation
Use "Insert Headers and Footers" or "WP Code" plugin
Paste your VistaChat embed code in the footer section
Visit your site to see the chat widget appear
Shopify Installation
Navigate to Themes → Customize in your Shopify admin
Add the VistaChat script to your theme's layout file
Customization Options
VistaChat offers extensive customization options to match your brand and user experience needs.
Appearance
Customize colors, fonts, size, and positioning of your chat widget.
Branding
Remove VistaChat branding with the Expert plan for a fully white-labeled experience.
Messages
Customize greeting messages, offline messages, and automated responses.
Behavior
Control when the widget appears, auto-opening behavior, and user interaction settings.
Advanced Customization
Use our JavaScript API for advanced customization:
if (window.innerWidth < 768) {
VistaChat.hide();
}
// Show widget after 30 seconds
setTimeout(function() {
VistaChat.show();
}, 30000);
API Reference
Integrate VistaChat programmatically using our REST API and webhooks.
Authentication
All API requests require authentication using your API key:
https://api.vistachat.com/v1/conversations
Core Endpoints
/v1/conversationsRetrieve all conversations
/v1/conversations/{id}Get specific conversation details
/v1/messagesSend a message
/v1/widgetUpdate widget settings
Webhooks
Receive real-time notifications for chat events:
message.received- New message from visitorconversation.started- New conversation initiatedagent.joined- Agent joined the conversationconversation.ended- Conversation closed
Troubleshooting
Widget Not Appearing
- Check that the script is placed before the closing </body> tag
- Verify your widget ID is correct
- Ensure your website allows external scripts
- Check browser console for JavaScript errors
Messages Not Sending
- Check your internet connection
- Verify your account is active and not suspended
- Ensure you're within your plan's message limits
- Try refreshing the page
Styling Conflicts
- Use the
!importantdeclaration for custom CSS - Ensure your CSS loads after the VistaChat script
- Use specific selectors to override default styles
Best Practices
Response Times
Aim to respond within 30 seconds during business hours and within 2 hours outside business hours.
Greeting Messages
Use personalized greetings like "Hi there! Thanks for visiting our site. How can we help you today?"
Availability Settings
Set clear business hours and use automated offline messages to manage expectations.
Proactive Engagement
Use proactive chat invitations for high-value pages or when visitors spend significant time on your site.
Need More Help?
Can't find what you're looking for? Our support team is here to help.
Contact Support