Al Majed Oud  Freelance  2026

Al Majed Oud: an Arabic-first AI sales assistant grounded in real data

Built Al Majed Oud's Arabic-first AI sales assistant end to end on contract: 9 agents answer from the warehouse; a 155-case eval gate guards each deploy.

See the architecture
Role
Sole AI engineer, end to end (contract) Freelance
Company
Al Majed Oud a Saudi oud and fragrance house (contract)
When
Apr – Aug 2026 5 mos
Stack
  • LangGraph
  • Azure OpenAI
  • PostgreSQL
  • Qdrant
  • FastAPI
  • Next.js
  • Langfuse
specialists behind one router
9 agents
on the release gate that blocks every deploy
155/155
bilingual eval cases, 248 of them in Arabic
399
data sync from Microsoft Fabric
15 min
Fig. 1 Al Majed Oud: AI sales assistant Component view
  • Users and apps

    • Company staff (Arabic or English)
  • Orchestration

    • Router Picks the agent and the language
  • Agents

    • 9 specialist agents Sales, customers, products, staff, stores, loyalty, payments, discounts, clarify or decline
  • Models

    • Tiered Azure OpenAI models
  • Retrieval

    • Hybrid name search Arabic and Latin spellings
  • Data

    • PostgreSQL copy of the warehouse
    • Microsoft Fabric warehouse
  • Services

    • Chat: streamed answers and charts
  • Pipelines

    • Sync every 15 minutes
  • Quality

    • Microsoft Entra SSO
    • SQL guardrails Read-only, whitelisted, row and time limits
    • Eval gate in CI/CD 155 cases block every deploy
    • Langfuse tracing and admin dashboard

Connections

  • Company staff (Arabic or English) to Microsoft Entra SSO
  • Microsoft Entra SSO to Chat: streamed answers and charts
  • Chat: streamed answers and charts to Router
  • Router to 9 specialist agents
  • 9 specialist agents to Tiered Azure OpenAI models
  • 9 specialist agents to Hybrid name search (names to ids)
  • 9 specialist agents to SQL guardrails (generated SQL)
  • SQL guardrails to PostgreSQL copy of the warehouse
  • Microsoft Fabric warehouse to Sync every 15 minutes
  • Sync every 15 minutes to PostgreSQL copy of the warehouse
  • Eval gate in CI/CD to Router (blocks a deploy that regresses)
  • Langfuse tracing and admin dashboard to Router (every request)

Figure 1 Capability view: staff sign in with Microsoft Entra; a router sends each question to one of 9 agents, which write SQL through a guardrail layer over a PostgreSQL copy of the Fabric warehouse; an eval gate blocks any deploy that regresses. Diagrams show the components named in public descriptions of the work. They are simplified, not complete system maps.

On this page The problem
01

The problem

Al Majed Oud's staff across the GCC relied on analysts and Power BI reports for everyday sales numbers, mostly in English, while most of them work in Arabic. An assistant that improvises figures would do more harm than good: a plausible wrong number is worse than no answer.

02

Approach

  1. A router and 9 specialist agents on LangGraph: sales, customers, products, staff, stores, loyalty, payments, discounts, and one that clarifies or declines. A planner splits compound questions across agents.
  2. SQL guardrails on every query: read-only, one statement, a table whitelist per agent, a row cap and a time limit. An answer never states a figure that isn't in the returned rows.
  3. Clarifying or declining is a feature: with no period in the question, it asks for one; when the data can't answer, it says so. 64 test cases check exactly that.
  4. Arabic first: hybrid name search (dense and sparse vectors) for the many spellings of Arabic names, Hijri dates with Ramadan and Eid, and a right-to-left interface.
  5. A query-optimised copy of the Microsoft Fabric warehouse in PostgreSQL, with today's sales refreshed every 15 minutes.
  6. Answers stream in as they are written (SSE), with a chart the backend picks from the same rows, behind Microsoft Entra single sign-on.
  7. Eval-gated CI/CD and tracing: a bilingual test suite runs against each new build in the production environment and blocks any deploy that regresses; Langfuse traces every request, and an admin dashboard shows latency, quality scores and negative feedback.
03

Screens

Screens from the app. The chat screens run on illustrative demo data, not company figures.

The sales assistant

  • An Arabic answer about a branch's sales, with its sources and a bar chart
    An Arabic answer, right to left: the figure, its sources and a chart drawn from the same rows, with illustrative demo data, not company figures.
  • The assistant's home screen with starter questions in Arabic and English
    The home screen: starter questions in Arabic and English and past conversations, with illustrative demo data, not company figures.
  • An English follow-up answered by the sales agent with a comparison table
    An English follow-up in the same conversation: the sales agent compares branches in a table and a chart, with illustrative demo data, not company figures.
  • The Al Majed Oud sign-in screen with a Microsoft sign-in button
    Sign-in on a phone: staff use their company Microsoft account (Entra single sign-on), with no password field.
  • The Arabic answer and its chart on a phone
    The same Arabic answer on a phone, with illustrative demo data, not company figures.
04

Architecture

Capability view: staff sign in with Microsoft Entra; a router sends each question to one of 9 agents, which write SQL through a guardrail layer over a PostgreSQL copy of the Fabric warehouse; an eval gate blocks any deploy that regresses. Figure 1

05

Outcome

  • Went into production on Azure in June 2026, behind Microsoft Entra SSO and available to all staff; delivered and handed over in August 2026.
  • The final release passed its release gate at 155/155, and the full nightly suite of 399 bilingual cases (248 Arabic, 151 English) reached 399/399.
  • Answers in Arabic or English, streamed with charts, with figures built to match the company's financial reports.
  • Handed over with runbooks, a mobile integration kit for the company's app team, and a disaster-recovery path rehearsed with a restore in about 2 minutes.
06

Stack

Orchestration
LangGraph
Models
Azure OpenAI
Retrieval
Qdrant
Data
PostgreSQLMicrosoft Fabric
Services
FastAPINext.jsPython
Infrastructure
Azure Container Apps
Quality
LangfuseMicrosoft Entra ID

Where these facts come from. No figure here is estimated: where a client hasn't published a number, the page describes what the system does. Sources: project details approved for publication.

Drag to pan, pinch to zoom.

Keep reading

Questions about this build?

Ask my AI about “Al Majed Oud: AI sales assistant”.

It answers from my CV and public profile, in English or Arabic.