Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Changed (metadata)
- Refreshed the package description, keywords and README intro (EN and AR) to cover automatic sending; GitHub repo description and topics set.

### Changed (automation, phase E: hardening)
- Placeholders expand in one pass (a user name containing `{step}` is no longer expanded); Meta template parameters are cleaned of newlines and repeated spaces.
- Two overlapping runs cannot double-queue: a race on the idempotency key returns the existing row.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Some sites are not a pile of pages; they are a journey. The user creates an acco

On top of that table sits a re-engagement flow: a WhatsApp button per user that opens a modal (name, number, message) with a ready-made template pre-selected by where the user is stuck — "encourage to continue" when they have a half-finished step, "encourage to start" for the next step they never touched. Confirming opens the WhatsApp chat with the message prefilled, ready to send.

Optionally, Rehla can also send nudges automatically (off by default): rules such as "started a step but not finished for 2 days", consent and STOP handling, quiet hours, cooldowns, a dry run, a panel tab, and Meta WhatsApp Cloud API, generic HTTP or log drivers. See [Automatic WhatsApp sending](#automatic-whatsapp-sending-optional).

> **Status: v0.1.0, EXPERIMENTAL pre-release.** Tested by an automated suite only; not yet run in a production app.

## Requirements
Expand Down Expand Up @@ -178,7 +180,7 @@ In the panel, opted-out users get an "Opted out" mark and the follow-up modal as

### Rules and the engine

Rules say who gets which message and when. Define them in `rehla.automation.rules` (code, always available) or in the `rehla_automation_rules` table (the panel tab comes in the next release). Both run together.
Rules say who gets which message and when. Define them in `rehla.automation.rules` (code, always available) or in the `rehla_automation_rules` table (managed in the panel's Automation tab). Both run together.

```php
'rules' => [
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elbanbydev/rehla",
"description": "Rehla (رحلة) - track where every user is in your site's journey: which steps they finished, which they started but never finished, and which they never touched, with a WhatsApp re-engagement panel. Experimental.",
"description": "Rehla (رحلة) - track where every user is in your site's journey (finished, started, never started), re-engage them with a WhatsApp panel, and optionally send rule-based automatic WhatsApp nudges with consent, quiet hours and a dry run. Experimental.",
"keywords": [
"laravel",
"user-journey",
Expand All @@ -9,7 +9,10 @@
"user-progress",
"whatsapp",
"egypt",
"rehla"
"rehla",
"whatsapp-automation",
"whatsapp-cloud-api",
"laravel-package"
],
"license": "MIT",
"require": {
Expand Down
4 changes: 3 additions & 1 deletion docs/ar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

وفوق الجدول ده فيه تدفق لإعادة التواصل: زرار واتساب جنب كل مستخدم بيفتح نافذة فيها الاسم والرقم والرسالة، وبقالب جاهز مختار تلقائياً حسب مكان المستخدم — «شجّعه يكمّل» لو عنده خطوة بدأها، و«شجّعه يبدأ» لأول خطوة مابدأهاش. لما تأكد، بيفتح شات واتساب والرسالة جاهزة للإرسال.

واختيارياً، رحلة تقدر كمان تبعت التذكيرات تلقائياً (مقفول افتراضياً): قواعد زي «بدأ خطوة ومخلصهاش من يومين»، وموافقة ومعالجة STOP، وساعات هدوء وفترات انتظار، وتجربة بدون إرسال، وتاب في البانل، ومزوّدين: Meta WhatsApp Cloud API أو HTTP عام أو log. شوف قسم الإرسال التلقائي تحت.

> **الحالة: v0.1.0 نسخة تجريبية مبكرة.** متجربة باختبارات آلية بس، لسه مشغلتش في تطبيق حقيقي.

## المتطلبات
Expand Down Expand Up @@ -178,7 +180,7 @@ Rehla::consent()->optOut($user); // وكمان بيلغي الرسائل

### القواعد والمحرّك

القواعد بتحدد مين ياخد أنهي رسالة وإمتى. عرّفها في `rehla.automation.rules` (في الكود، متاحة دايماً) أو في جدول `rehla_automation_rules` (تاب البانل جاي في الإصدار الجاي). الاتنين بيشتغلوا مع بعض.
القواعد بتحدد مين ياخد أنهي رسالة وإمتى. عرّفها في `rehla.automation.rules` (في الكود، متاحة دايماً) أو في جدول `rehla_automation_rules` (بتتدار من تاب الأتمتة في البانل). الاتنين بيشتغلوا مع بعض.

```php
'rules' => [
Expand Down
Loading