=== SendPulse - Live Chat and Chatbot ===
Contributors: SendPulse
Tags: live chat, AI chat, chat widget, chatbot, livechat
Requires PHP: 8.0
Requires at least: 5.7
Tested up to: 6.9
Stable tag: 1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Free live chat and chatbot plugin by SendPulse. Add live chats to your website to engage your site visitors and help solve their issues in real time.

== Description ==
Free live chat and chatbot plugin by SendPulse helps you communicate with users on your website to motivate them to convert, and to support customers after purchase.
Create automated flows to introduce your brand and products, answer users’ questions, motivate users to make purchases, and accept payments right in your live chat.
ChatGPT integration, autoreplies and an Android/iOS mobile app will help you talk to customers even when you are not at your computer.

== What is a Live Chat? ==
Live chat is a tool that allows users to communicate in real time. Website visitors send messages via widgets on your site, and live chat agents or chatbots reply to users.

A live chat allows you to quickly and effectively communicate with customers, eliminate their doubts, solve possible issues, and provide information. They help companies
build stronger connections with clients, promptly respond to their questions and needs, and increase the level of personalization.

== Installation ==

1. Upload 'sendpulse-livechat' to the '/wp-content/plugins/' directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to your Admin Panel -> Settings -> SendPulse LiveChat
4. Paste to text box LiveChat code for your site from SendPulse Chatbots section


= WHAT IS SENDPULSE? =
SendPulse is a multi-channel marketing automation platform for multifaceted business promotion and customer retention.

SendPulse allows you to send email, SMS, and web push campaigns, stay in touch with clients using Telegram, Facebook Messenger, WhatsApp, and Instagram chatbots, and create landing pages in just 15 minutes.

You can easily track all of your marketing activities and gather customer data with SendPulse’s free CRM.

[Create a SendPulse account](https://sendpulse.com/marketing-platform) and start using live chat, chatbots, pop-ups, websites, and email marketing for free.

== FAQ ==

= Do I need a SendPulse account to use this live chat plugin? =
Yes. You can create your SendPulse account at [https://sendpulse.com/features/live-chat](https://sendpulse.com/features/live-chat)

= How can I add Live Chat to my WordPress site? =
1. You need to have an account at SendPulse.com. Go to the "Chatbots" section in your SendPulse account. If you have not connected any channels before, click Connect.
If you already have connected bots, go to the "Manage bots" section, and click Add bot. You can also click Connect next to "Live chat."
2. Enter your project name and a link to a site where you want to add your widget. Click Continue.
You can copy the installation code after you customize the widget appearance.
3. Go to your WordPress Admin Panel -> Settings -> SendPulse LiveChat
4. Paste installation code to text box in front of Paste your LiveChat code here text.

= I don't want to use plugin. Is there a way to use Live Chat without plugin? =
Yes. You can copy the installation code and add it in template before </body> tag at footer.php template

= I don't want to use plugin and not familiar with coding. Is there another way to use Live Chat without plugin? =
Yes. If your theme support widgets you can add installation code at Html widget at footer section.

= How to Add Live Chat Code to a Website Using Google Tag Manager? =
If you don’t have access to your website’s source code or want to separate the scripts related to tracking and marketing, you can add your live chat widget code using Google Tag Manager.
You can read about this way in our [Knowledge Base](https://sendpulse.com/knowledge-base/chatbot/livechat/gtm-livechat)

= How can I customize Live Chat Appearance =
You can read about Live Chat customization in our [Knowledge Base](https://sendpulse.com/knowledge-base/chatbot/livechat/connect-widget#customize-appearance)

= How to Interact with my Website Visitors via Live Chat? =
You can read full article with examples at our Knowledge Base [How to Interact with Your Website Visitors via Live Chat](https://sendpulse.com/knowledge-base/chatbot/livechat/communicate-with-customers)

= You write your Live Chat support chatbots. How can I set up a chatbot for my site? =
Once you create your widget, you can start automating your communication.
You can read more in our Knowledge Base:
* [How to Set Up Your Bot](https://sendpulse.com/knowledge-base/chatbot/livechat/connect-widget#how-set-up-bot)
* [How to Create an Automated Live Chat Flow for Your Website](https://sendpulse.com/knowledge-base/chatbot/livechat/create-flow)
* [How to Connect ChatGPT From OpenAI to Your Chatbot](https://sendpulse.com/knowledge-base/chatbot/integrations/openai)

= Why is the live chat not appearing on my website? =

If the live chat does not appear on your website, the issue is often caused by frontend optimization plugins.

Many performance plugins (such as WP Rocket, Autoptimize, LiteSpeed Cache, etc.) modify how JavaScript is loaded by enabling features like:

- JavaScript minification
- JavaScript combination (bundling)
- Deferred or delayed script execution

These optimizations can change the loading order or execution timing of third-party scripts and may break the live chat initialization.

How to fix:

1. Temporarily disable JavaScript optimization options and check if the live chat starts working.
2. If it works, re-enable options one by one to identify the conflicting setting.

For WP Rocket users:

- Disable the "Combine JavaScript files" option
- Clear the cache after making changes

In some cases, excluding the live chat script from optimization may also help:

cdn.pulse.is

Note: JavaScript combination is often unnecessary on HTTP/2-enabled websites and may cause compatibility issues with third-party services.

== Contacts ==
* Customer support – [https://sendpulse.com/support](https://sendpulse.com/support)
* X (Twitter) – [https://twitter.com/SendPulseCom](https://twitter.com/SendPulseCom)
* Facebook – [https://facebook.com/sendpulse](https://www.facebook.com/SendPulse/)

== Usage ==
1. Create a Live Chat [Chatbots](https://login.sendpulse.com/messengers/)
2. Connect your Website
3. Customize Your Live Chat Appearance
4. Copy the installation code after you customize the widget appearance
5. Go to your WordPress Admin Panel -> Settings -> SendPulse LiveChat
6. Paste installation code to text box in front of Paste your LiveChat code here text.

== Requirement ==
* PHP version >= 8.0+ ([Recommended](https://wordpress.org/about/requirements/) >= 8.0+)

== Changelog ==
= 1.3 =
* Updated minimum required PHP version to 8.0
* Added FAQ section with troubleshooting for JavaScript optimization conflicts
* Improved documentation regarding compatibility with caching and performance plugins

= 1.2 =
* Fixed text domain mismatch to ensure proper translation loading
* Updated translation files and domain references
* Added missing translators comments for strings with placeholders
* Improved output sanitization for live chat installation code
* Ensured compatibility with WordPress 6.9
* Minor code quality and compliance improvements based on Plugin Check recommendations

= 1.1 =
* Basic improvements

= 1.0 =
* Initial release