Zain Jordan Customer 360 SQL Agent

Ask business questions from the Zain Jordan Customer 360 SQLite database.

This app uses:

  • SQLite database
  • LangChain SQLDatabase
  • LangChain SQLDatabaseToolkit
  • OpenAI gpt-4.1-mini
  • Gradio interface

Expected database location:

database_/zain_customer_360_ai_demo.db

Example questions:

  • Which cities have the most high-risk churn customers?
  • Which customer value segments have the highest average ARPU?
  • What are the top complaint categories?
  • Which campaigns had the highest conversion rate?