paolorox/ti-ext-whatsapp-selfhost
Composer 安装命令:
composer require paolorox/ti-ext-whatsapp-selfhost
包简介
WhatsApp integration for TastyIgniter via OpenWA self-hosted API. Send automated WhatsApp messages on order and reservation events.
README 文档
README
Introduction
The WhatsApp Integration extension for TastyIgniter allows you to send automated WhatsApp messages on critical events like order placements, status updates, and reservations.
Tip
Don't want to host your own OpenWA server?
We offer a Premium Hosted Version of this extension on the TastyIgniter Marketplace! It comes pre-configured to run on our high-availability API servers, so you don't have to install, host, or maintain your own OpenWA backend. Simply purchase a subscription, scan your QR code, and start sending messages instantly.
By integrating with a self-hosted OpenWA (WhatsApp Automate) server API, this free version ensures quick, cost-effective, and fully customizable messaging directly to your customers' and staff's mobile phones.
Features
- Event-Driven Automations: Fully integrated with TastyIgniter's core
Automationrules. Trigger WhatsApp notifications on order events, reservation events, status changes, and more. - Dynamic Message Templates: Compose messages using a standard template format containing rich, live details such as customer names, order totals, order items, and URLs.
- Admin Dashboard: Scan QR codes to start your session, check real-time connection logs, and run diagnostics directly from the TastyIgniter backend.
- Message Logs: A built-in log viewer records all sent, pending, or failed WhatsApp messages with details to trace API response statuses.
- Flexible Recipients: Send notifications to customers, specific store locations, restaurant administrators, or custom phone numbers.
Requirements
Ensure your setup meets the following requirements:
- TastyIgniter:
^4.0 - Automation Extension (
tastyigniter/ti-ext-automation):^4.0 - A running, self-hosted instance of the OpenWA API.
Installation
You can install this extension via Composer:
composer require paolorox/ti-ext-whatsapp-selfhost
Alternatively, you can upload the files to your extension folder (extensions/paolorox/whatsapp) and run migrations:
php artisan igniter:up
Configuration
1. Configure Connection Settings
Go to System > Settings > WhatsApp Settings in the TastyIgniter admin panel and configure:
- API URL: Your self-hosted OpenWA server URL (e.g.
http://your-server-ip:2785/api). - API Key: The authentication key set up in your OpenWA configuration.
- Default Country Code: The default international country prefix (e.g.,
39for Italy) to use when phone numbers do not include a country code. - Enable WhatsApp: Toggle to enable/disable message sending globally.
2. Session Activation & QR Code Scan
Go to Tools > WhatsApp (the WhatsApp Dashboard):
- Click Create Session (using a session ID matching your configuration).
- Click Start Session and wait a moment for the status to change.
- Click Show QR Code and scan the QR code using your WhatsApp mobile app to authorize the connection.
- You can use the Send Test Message feature on the dashboard to test the configuration.
Usage in Automation Rules
This extension registers a new action called Send WhatsApp Message in TastyIgniter's Automation module:
- Navigate to Tools > Automation and create or edit a Rule (e.g., Order Created or Reservation Confirmed).
- Under the Actions tab, click Add action and select Send WhatsApp Message.
- Choose who to send the message to (Customer, Restaurant, Location, or Custom Number).
- Draft your message in the Message Template text area.
Available Template Variables
Depending on the event triggering the action, you can use the following variables:
{{customer_name}}- Customer full name{{order_id}}/{{reservation_id}}- Unique identifier{{order_total}}- Order total amount formatted{{order_items}}- Summary of items in the order{{order_type}}- Delivery, Pick-up, etc.{{order_date}}&{{order_time}}- Date and time of order/delivery{{order_address}}- Delivery address{{location_name}}- Restaurant location name{{order_view_url}}- Link to view the order online
Support & Contributing
If you encounter any issues or want to contribute to this extension:
- Open a GitHub issue on ti-ext-whatsapp Issues.
- Submit a pull request with bug fixes or new features.
License
This extension is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-27