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.

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

فيديو توضيحي من أكاديمية عشتار الإلكترونية.
How it works: find first, then write

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.

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

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?
Searching by meaning first keeps answers accurate, fast and cheap. The AI writes only from what was found.
What are embeddings?
Two texts with similar meaning get similar numbers, even in different words or languages. That is how "كم مدة الضمان؟" can find an English warranty paragraph.
تحقق من فهمك
ماذا يعطي النظام للذكاء الاصطناعي حين يسأل العميل؟
البحث بالمعنى أولاً يُبقي الإجابات دقيقة وسريعة ورخيصة، ولا يكتب الذكاء الاصطناعي إلا مما وُجد.
ما التضمينات؟
النصان المتشابهان في المعنى يحصلان على أرقام متشابهة حتى لو اختلفت الكلمات أو اللغة، وهكذا يجد السؤال «كم مدة الضمان؟» فقرة الضمان الإنجليزية.