Free previewمعاينة مجانية Enrol in the full courseسجّل في الدورة كاملة
Lesson 1: Your project and how it worksالدرس 1: مشروعك وكيف يعمل
1
Lesson 1الدرس 1

Your project and how it worksمشروعك وكيف يعمل

5 screens5 شاشات

Your project: a chatbot that knows your documents

Customers ask the same questions again and again, and the answers are already in your brochures, price lists and warranty terms. In this course you build a chat window for your website that answers from those documents, in Arabic or English, and says which document each answer came from.

Five parts: documents in Google Drive, searchable memory in Supabase, the chat workflow in n8n, answers by Gemini, and a chat bubble on your website

Ishtar Online Academy explainer.

مشروعك: روبوت محادثة يعرف مستنداتك

يسأل العملاء الأسئلة نفسها مراراً، والإجابات موجودة أصلاً في كتيباتك وقوائم أسعارك وشروط الضمان. ستبني في هذه الدورة نافذة محادثة لموقعك تجيب من تلك المستندات، بالعربية أو الإنجليزية، وتذكر المستند الذي جاءت منه كل إجابة.

خمسة أجزاء: المستندات في Google Drive، وذاكرة قابلة للبحث في Supabase، وسير عمل المحادثة في n8n، والإجابات من Gemini، وفقاعة محادثة على موقعك

فيديو توضيحي من أكاديمية عشتار الإلكترونية.

How it works: find first, then write

Two stages: once when loading documents (split, embed, store), and every time a customer asks (question, search by meaning, answer from the found pieces)

The AI does not read all your documents for every question. Your documents are cut into small pieces once, and each piece is turned into numbers that describe its meaning. When a customer asks, the system finds the few pieces whose meaning is closest to the question and gives only those to the AI.

كيف يعمل: ابحث أولاً ثم اكتب

مرحلتان: مرة واحدة عند تحميل المستندات (التقسيم والتضمين والتخزين)، وكلما سأل عميل (السؤال والبحث بالمعنى والإجابة من المقاطع المستخرجة)

لا يقرأ الذكاء الاصطناعي كل مستنداتك مع كل سؤال، بل تُقسم مستنداتك إلى مقاطع صغيرة مرة واحدة، ويتحول كل مقطع إلى أرقام تصف معناه. وحين يسأل عميل يجد النظام المقاطع القليلة الأقرب في المعنى إلى السؤال، ولا يعطي الذكاء الاصطناعي إلا إياها.

Meet Rafidain Solar

You will build the assistant for Rafidain Solar, an example company in Basra that sells and installs solar systems for homes and farms. Its website gets questions day and night: "How long is the warranty?", "Does a 5 kW system run an air conditioner?", "Do you install in Zubair?". The answers are in four documents: a product brochure, a price list, warranty terms and an installation FAQ.

Table of tools: Google Drive, Supabase free plan, n8n Cloud trial, Gemini API free tier, OpenAI API for embeddings with a small prepaid credit, and your website

تعرّف إلى «الرافدين للطاقة الشمسية»

ستبني المساعد لشركة «الرافدين للطاقة الشمسية»، وهي شركة مثال في البصرة تبيع أنظمة الطاقة الشمسية للمنازل والمزارع وتركّبها. يستقبل موقعها أسئلة ليلاً ونهاراً: «كم مدة الضمان؟» و«هل يشغّل نظام 5 كيلوواط مكيفاً؟» و«هل تركّبون في الزبير؟». والإجابات موجودة في أربعة مستندات: كتيب المنتجات وقائمة الأسعار وشروط الضمان وأسئلة التركيب الشائعة.

جدول الأدوات: Google Drive وخطة Supabase المجانية وتجربة n8n Cloud والفئة المجانية لـGemini API وOpenAI API للتضمينات برصيد مدفوع صغير وموقعك

Why two AI services?

Gemini writes the answers, as in the earlier courses. For the embeddings (the meaning numbers) you will use OpenAI's text-embedding-3-small. It works smoothly with Supabase in n8n, and loading 100 pages costs less than one US cent.

  • n8n Cloud workspace (new 14-day trial if your earlier one ended).
  • Gemini API key (from H-1 or aistudio.google.com).
  • OpenAI account with a small credit and an API key.
  • A Supabase account (lesson 3).
  • Your company documents as PDF or Word files.

لماذا خدمتان للذكاء الاصطناعي؟

يكتب Gemini الإجابات كما في الدورات السابقة، أما التضمينات (أرقام المعنى) فستستخدم لها نموذج OpenAI text-embedding-3-small، فهو يعمل بسلاسة مع Supabase في n8n، وتحميل 100 صفحة يكلّف أقل من سنت أمريكي واحد.

  • مساحة n8n Cloud (تجربة جديدة لـ14 يوماً إن انتهت السابقة).
  • مفتاح Gemini API (من H-1 أو aistudio.google.com).
  • حساب OpenAI برصيد صغير ومفتاح API.
  • حساب Supabase (الدرس 3).
  • مستندات شركتك بصيغة PDF أو Word.

Check your understanding

What does the system give the AI when a customer asks a question?

  • Only the few document pieces whose meaning is closest to the question
  • All your documents, every time
  • Nothing; the AI answers from its training

Searching by meaning first keeps answers accurate, fast and cheap. The AI writes only from what was found.

What are embeddings?

  • Pictures added to documents
  • Encrypted passwords
  • Numbers that describe the meaning of a piece of text, so similar meanings can be found

Two texts with similar meaning get similar numbers, even in different words or languages. That is how "كم مدة الضمان؟" can find an English warranty paragraph.

تحقق من فهمك

ماذا يعطي النظام للذكاء الاصطناعي حين يسأل العميل؟

  • المقاطع القليلة الأقرب في المعنى إلى السؤال فقط
  • كل مستنداتك في كل مرة
  • لا شيء، فيجيب الذكاء الاصطناعي من تدريبه

البحث بالمعنى أولاً يُبقي الإجابات دقيقة وسريعة ورخيصة، ولا يكتب الذكاء الاصطناعي إلا مما وُجد.

ما التضمينات؟

  • صور تُضاف إلى المستندات
  • كلمات مرور مشفّرة
  • أرقام تصف معنى مقطع نصي ليُعثر على المعاني المتشابهة

النصان المتشابهان في المعنى يحصلان على أرقام متشابهة حتى لو اختلفت الكلمات أو اللغة، وهكذا يجد السؤال «كم مدة الضمان؟» فقرة الضمان الإنجليزية.

ISHTAR for Training & HR Developmentعشتار للتدريب وتنمية الموارد البشرية