ملخص مبيعات كل اثنين على جوالك: هذا الأسبوع مقابل الماضي
ملخص مبيعات كل اثنين على جوالك: هذا الأسبوع مقابل الماضي والأكثر مبيعًا.
الخطوات
- Schedule Trigger كل اثنين الساعة 08:00.
- عقدة Config: رابط CSV، وأعمدة التاريخ والقيمة والمجموعة، والعملة.
- HTTP Request ينزّل CSV (أي رابط تصدير: نقطة البيع، Shopify، جدول Google منشور).
- عقدة Code تجمع آخر 7 أيام مقابل الـ7 قبلها، ونسبة التغيّر، وأعلى 3.
- تنبيه ntfy بالملخص (أو تحذير إذا لا توجد بيانات هذا الأسبوع).
ما الذي جرّبناه
✓ مجرّبة بالكامل بتاريخ 2026-10-16، على خدمات حقيقية في n8n 1.70.3. تفاصيل الاختبار (بالإنجليزية):
Ran on local n8n 1.70.3 against a real sample sales CSV served from automaterecipes.pages.dev/samples/sample-sales.csv: 75 rows read, last 7 days 7,635.00 SAR vs 6,477.00 SAR (+17.9%), top 3 products computed and checked by hand, and a real ntfy push arrived. Not tested: pulling directly from Shopify/POS APIs or a Google-Sheets 'publish to web' link (needs those accounts) – any public CSV URL works the same way.
التكلفة الشهرية
مجانية مع n8n المستضاف ذاتيًا (أنت تشغّل الخادم)، أو من 20 يورو شهريًا مع n8n Cloud Starter بالدفع السنوي. n8n.io/pricing/
Free on self-hosted n8n (you run the server); €20/mo on n8n Cloud Starter, billed annually
الإعداد
تفاصيل الإعداد بالإنجليزية لأنها تطابق أسماء الحقول والعقد داخل الأداة. للبدء من الصفر اقرأ دليل n8n من الصفر.
You will need
- n8n (self-hosted Community Edition is free; n8n Cloud from €20/mo)
- Free ntfy app – no account needed
- A CSV of your sales with a date column (YYYY-MM-DD) and a value column, reachable by URL
Credentials
- None – no API keys needed (unless your CSV link needs a login).
Configure
- csvUrl: your CSV link (try the included sample first).
- dateColumn, valueColumn, groupColumn: the exact header names in your CSV.
- currency, ntfyTopic. endDate: leave empty for 'today'.
Test
- Click Test workflow with the sample CSV and endDate '2026-10-16': you get '7635.00 SAR (17.9% vs prior week)'.
- Switch to your CSV and test again.
Common errors
- 'no data in the last 7 days': dates are not YYYY-MM-DD or the column name is wrong.
- Wrong totals: values contain thousands separators or currency symbols – export plain numbers.
- Commas inside product names break this simple CSV parser – use names without commas or a semicolon export.
- Nothing arrives in ntfy: the topic in Config must match the one you subscribed to exactly (case-sensitive).
- Never runs on its own: toggle the workflow Active – the manual trigger only runs when you click Test workflow.