BuildWithMoh BuildWithMoh
Hire Meوظّفني
AI Automation · n8nأتمتة بالذكاء الاصطناعي · n8nAutomation projectمشروع أتمتة

AI Expense Management Bot (Masrofi)مصروفي: بوت إدارة المصاريف بالذكاء الاصطناعي

A Telegram expense assistant that understands natural Arabic and Palestinian dialect, then logs, categorises and reports.

مساعد مصاريف على تيليجرام يفهم العربية الطبيعية واللهجة الفلسطينية، ثم يسجّل ويصنّف ويرفع التقارير.

01The problemالمشكلة

Tracking expenses fails when logging them takes more effort than spending the money. Most people stop after a week of opening an app and filling in fields.

يفشل تتبّع المصاريف عندما يتطلب تسجيلها جهداً أكبر من صرف المال نفسه، ويتوقف معظم الناس بعد أسبوع من فتح تطبيق وتعبئة حقول.

Writing a quick message the way you would talk is far easier, as long as the system can understand it.

كتابة رسالة سريعة كما تتحدث أسهل بكثير، بشرط أن يفهمها النظام.

02The solutionالحل

Masrofi lets users type “coffee 5 and manaqish 8” and logs both items, categorising each one automatically.

يتيح مصروفي للمستخدم كتابة «قهوة ب 5 ومناقيش ب 8» فيسجّل الصنفين ويصنّف كلاً منهما تلقائياً.

It replies with the month total, the remaining budget and the top categories, with a forecast for month end, and the word “undo” reverses the last entry.

يرد بمجموع الشهر والميزانية المتبقية وأكثر الفئات صرفاً مع توقع لنهاية الشهر، وكلمة «تراجع» تلغي آخر تسجيل.

03How it was builtكيف بُني

Built on n8n with the Telegram Bot API and Google Sheets, using Groq to understand messages.

بُني على n8n مع Telegram Bot API وGoogle Sheets، مستخدماً Groq لفهم الرسائل.

Unauthorised users are rejected before the AI is reached, duplicate entries are blocked, and the workflow retries when Google Sheets rate-limits. Most of the effort went into small cases, such as “3 chocolate” versus “chocolate 3” and multi-item messages.

يُرفض المستخدم غير المصرّح قبل الوصول إلى الذكاء الاصطناعي، ويُمنع التسجيل المكرر، ويعيد الـ workflow المحاولة عند حدّ طلبات Google Sheets. ذهب معظم الجهد في الحالات الصغيرة مثل «3 شوكلاته» و«شوكلاته 3» والرسائل متعددة الأصناف.

LessonالدرسMost of the time went into small cases, not the AI: “3 chocolate” versus “chocolate 3”, multi-item messages, and the Google Sheets read limit.معظم الوقت لم يذهب للذكاء الاصطناعي، بل للحالات الصغيرة مثل «3 شوكلاته» و«شوكلاته 3»، والرسالة متعددة الأغراض، وحدّ القراءة في Google Sheets.

04Main featuresالميزات الرئيسية

  • Expense registration from natural messagesتسجيل المصاريف من رسائل طبيعية
  • Automatic categorisationتصنيف تلقائي
  • Monthly budget trackingمتابعة الميزانية الشهرية
  • Spending analysis and month-end forecastتحليل الصرف وتوقع نهاية الشهر
  • Remaining budget calculationحساب الميزانية المتبقية
  • Daily, weekly and monthly reportsتقارير يومية وأسبوعية وشهرية
  • Undo the last entryالتراجع عن آخر تسجيل
  • Alert near the budget limitتنبيه عند الاقتراب من الميزانية

05Screenshotsلقطات الشاشة

Project overviewنظرة عامة على المشروع
Log an expense, get the month summary and top categories, then undoتسجيل مصروف، ملخص الشهر وأكثر الفئات صرفاً، ثم «تراجع»
Each message is logged and categorised; the reply shows the budget leftكل رسالة تُسجَّل وتُصنَّف، والرد فيه المتبقي من الميزانية
Categories you can switch on and off, and an adjustable alert thresholdتصنيفات قابلة للتفعيل والتعطيل، وتغيير نسبة التنبيه
Budget, currency and report settings through short commandsإعدادات الميزانية والعملة والتقارير بأوامر قصيرة

06Linksالروابط

← PREVIOUSAI Pharmacy Management Systemنظام إدارة صيدلية بالذكاء الاصطناعي NEXT →Siraj Al-Quranسراج القرآن

Need something like this?تحتاج شيئاً مشابهاً؟

Tell me about your idea and I will tell you honestly how I would approach it.

أخبرني عن فكرتك وسأخبرك بصراحة كيف سأتعامل معها.

Start a conversationابدأ المحادثة