=== Tryowbot ===
Contributors: tryowbot2026
Tags: woocommerce, whatsapp, notifications, orders, automation
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Tryowbot integrates WooCommerce with WhatsApp to send automated order notifications using trigger-based templates.

== Description ==

Tryowbot allows WooCommerce store owners to send automated WhatsApp messages based on order status triggers.

With a flexible template system, you can:

• Create order-based WhatsApp triggers  
• Map dynamic WooCommerce variables  
• Use image-based templates  
• Add dynamic or static buttons  
• Preview templates before saving  
• Manage triggers from admin dashboard  

This plugin is built for performance, security, and easy integration with WhatsApp automation systems.

== Features ==

* WooCommerce order status triggers
* Dynamic variable mapping ({{1}}, {{2}}, etc.)
* Static and dynamic template support
* Image upload support (static & dynamic)
* Button text and URL mapping
* Live template preview
* Secure database storage
* Clean uninstall support

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Ensure WooCommerce is installed and activated.
4. Navigate to Tryowbot in the admin menu.
5. Create your first trigger and map a template.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and activated.

= Does this plugin send WhatsApp messages directly? =

The plugin prepares and manages WhatsApp message triggers and templates. It must be connected to a WhatsApp API or service provider to send messages.

= Can I use image templates? =

Yes. Both static and dynamic image templates are supported.

= Can I map WooCommerce variables? =

Yes. You can map variables like:
- Customer Name
- Order ID
- Order Total
- Order Date
- Customer Email


== External Services ==

This plugin connects to the Tryowbot API, a service provided by Tryowbot, to send WhatsApp notifications and retrieve broadcast data.

Service Name: Tryowbot API  
Service URL: https://tryowbot.com  

API Endpoints used:
- https://webapi.tryowbot.com/v1/send
- https://webapi.tryowbot.com/v1/getapiboradcast
- https://prodapi.tryowbot.com/tryowbotapi/customerweb/v1/api/getapibroadcast

What data is sent:
- Customer phone number
- Order details (order ID, products, totals)
- Message template data

When data is sent:
- When WooCommerce order status changes
- When admin triggers broadcast or message
- Only after the site administrator configures the API and enables the functionality

Why data is sent:
- To deliver WhatsApp notifications to customers and admins

Terms of Service:
https://tryowbot.com/terms-conditions/

Privacy Policy:
https://tryowbot.com/privacy-policy/


== Screenshots ==

1. Setup page configuration
2. Trigger list page
3. Create trigger page

== Changelog ==

= 1.0.0 =
* Initial release
* WooCommerce trigger support
* Template preview system
* Image and button mapping
* Variable mapping support

== Upgrade Notice ==

= 1.0.0 =
Initial stable release.

== Privacy ==

This plugin processes WooCommerce order data and sends it to an external API service to deliver WhatsApp notifications.

The data sent may include:
- Customer phone number
- Order details (order ID, products, total)
- Message content configured by the admin

This data is sent only when:
- An order status trigger is executed
- An admin manually triggers a message

The plugin does not store personal data on external servers except as required for message delivery via the configured API.

== Support ==

For support or feature requests, please contact:
tryowbot@gmail.com

== License ==

This plugin is licensed under the GPLv2 or later.