=== Automações de Mensagens via MelhorZap for WooCommerce ===
Contributors: lobowp
Tags: woocommerce, automations, messages, api, melhorzap
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily create automated message flows for your WooCommerce store using the MelhorZap API. Engage your customers instantly!

== Description ==

Order Message Automations with MelhorZap for WooCommerce is a powerful integration that allows you to automate notifications sent to your customers when their order status changes or when new events happen in your store.

With our built-in automation builder, you do not need expensive external platforms like Make or Zapier. Everything is managed directly from your WordPress dashboard!

= Main Features =
* **Visual Builder:** Create unlimited sequential message flows with a modern, intuitive interface.
* **Multiple Triggers:** Send messages when the WooCommerce order status changes (Pending payment, Completed, Canceled, etc.) or when a new user registers.
* **Advanced Filters:** Filter sends by payment method (Pix, Credit Card, Bank Slip) and specific products (SKU, Name, or ID).
* **Smart Pix Protection:** Native filter that requires a "Pix Copy and Paste" code before sending the message, avoiding blank messages.
* **Media & Files:** Full support for sending images, documents (PDFs), and audios natively, integrated with text captions.
* **Admin Notifications:** Receive alerts on your own mobile phone for important events from each automation.
* **Typing Simulator (Delay):** Configure a waiting time (in seconds) between messages to make interactions feel 100% human and natural.
* **Quick Test Button:** Test your automations in real-time with your own number directly from the panel before activating them.
* **Fully Background-Processed:** Uses the native WooCommerce Action Scheduler to avoid slowdowns during your customer's checkout (perfect asynchronous sending).

== External services ==
This plugin relies on the external API provided by MelhorZap to dispatch messages to users. 
Every time an automation is triggered (e.g. an order is completed), the plugin will send the formatted message and the destination phone number to the MelhorZap servers. 
This external service is required for the plugin's core functionality. 
For more information, please review the service provider's terms and privacy policies:
Terms of Service: https://app.melhorzap.com/terms_of_service
Privacy Policy: https://app.melhorzap.com/privacy_policy

== Installation ==

1. Upload the plugin folder `melhorzap-api-whatsapp` to the `/wp-content/plugins/` directory, or install it through the WordPress dashboard by uploading the `.zip` file.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. In your WordPress dashboard, look for the "MelhorZap Automations" menu.
4. Insert your **Instance ID** and **Access Token** generated in your MelhorZap dashboard.
5. Save the settings.
6. Create your first automation by clicking "+ New Automation" and have fun!

== Frequently Asked Questions ==

= Where do I get my API credentials? =
You must have an active account on the MelhorZap system. Once logged in, you scan the QR code with your mobile device, and the system will provide your Instance ID and Access Token.

= Do I need to pay for sending the messages? =
The plugin itself is 100% free. You only pay your subscription to the MelhorZap platform, which processes the direct communication with the mobile device.

= Does sending a message slow down the customer's checkout experience? =
No! The entire system is built for high performance. The plugin only "schedules" the action using WooCommerce's powerful Action Scheduler library. The message will be processed in the background without your customer noticing any delays on the site.

= Is it compatible with media files? =
Yes! Just paste the file link (e.g., .png, .pdf, .mp3) in the "Media / File URL" field inside the automation builder, and the plugin will attach it to the message.

== Screenshots ==

1. Automation Dashboard: A clean, modern, and easy-to-use interface.
2. Filters and Rules: Native support for WooCommerce product, payment, and status filters.

== Changelog ==

= 1.0.0 =
* Official plugin launch.
