AINLPMachine LearningE-commerceArabic

How We Built Faya AI — An NLP Shopping Assistant for Arabic E-commerce

FFaya Dev Team2 min read

Building AI products for the Arabic market presents unique challenges that most Western AI companies don't face. When we built Faya AI, our e-commerce shopping assistant, we had to solve problems that few have tackled before.

The Challenge: Arabic NLP Is Hard

Arabic Natural Language Processing is significantly more complex than English NLP:

  • Morphology: Arabic words can have 10+ variations based on prefixes, suffixes, and root patterns
  • Dialects: Iraqi, Egyptian, Gulf, and Levantine Arabic are practically different languages
  • Diacritics: Most informal text lacks vowel marks, creating ambiguity
  • Code-switching: Users frequently mix Arabic and English in queries

Our Architecture

We built Faya AI on a multi-layer architecture:

1. Intent Classification

We trained a custom model to classify shopping intents:

  • Product Search: "أريد لابتوب" (I want a laptop)
  • Price Inquiry: "كم سعر الآيفون؟" (How much is the iPhone?)
  • Comparison: "شنو أحسن سامسونج ولا آيفون؟" (What's better, Samsung or iPhone?)
  • Recommendation: "شنو تنصحني للمكتب؟" (What do you recommend for the office?)

2. Entity Extraction

Extracting product names, categories, price ranges, and specifications from natural Arabic text—including Iraqi dialect-specific expressions.

3. Product Matching

A vector-based similarity search that matches user queries to products in the catalog, handling Arabic synonyms and transliterations.

Results

After deploying Faya AI to our ERP e-commerce clients:

  • 30% increase in product discovery
  • 25% reduction in search abandonment
  • 15% higher conversion rates
  • Support for 3 Arabic dialects: Iraqi, Egyptian, and Gulf

Lessons Learned

  • Start with data: We collected 50,000+ Arabic shopping queries before training any model
  • Dialect matters: A model trained on MSA (Modern Standard Arabic) performs poorly on Iraqi dialect
  • Context is king: Understanding that "شكد" in Iraqi means "how much" changed everything
  • Don't over-engineer: Start with keyword matching, then graduate to NLP

Try It Yourself

Faya AI is live at ai.erp.faya.dev. If you're building e-commerce in the Middle East and want AI-powered search and recommendations, contact us.

F

Faya Dev Team

Faya Dev Engineering Team

Need a custom software solution?

Get in touch with our team for a free consultation about your tech project

Contact Us