Conversational 360: The AI-Powered Customer Intelligence Platform

The Conversational 360 is an enterprise-grade RAG (Retrieval-Augmented Generation) system that delivers instant, contextual intelligence to customer service agents by unifying fragmented data from across the business.


The Genesis: Inspiration and Vision

The primary inspiration was solving the "last mile" data problem: customer service is plagued by fragmented data, causing agents to waste up to 40% of their time** searching across disconnected systems like CRMs, support tickets, and order histories. This leads directly to customer frustration and high churn.

We envisioned an AI agent that is instantly armed with a complete, 360-degree view of the customer, powered by real-time, contextual enterprise data to deliver empathetic, hyper-personalized service. Our goal was to transform service from reactive searching to proactive, intelligent resolution.


Architectural Construction: The Cloud-Native RAG Engine

We implemented a robust, cloud-native architecture leveraging the power of ELT, a scalable data warehouse, and cutting-edge AI, integrating three core Google technologies: Fivetran, BigQuery, and Vertex AI.

  1. Data Ingestion and Unification (Fivetran $\to$ BigQuery):

    • Fivetran connectors were used for Salesforce (CRM), Zendesk (unstructured text), and Shopify (e-commerce) to automate the ELT process with a $15$-minute sync frequency into our destination.
    • All data lands in BigQuery (Project: conversational-360). We used SQL to create a unified $\text{customer_360}$ view.
  2. Vectorization and Indexing:

    • We leveraged the Vertex AI Embedding API to generate vectors for all support tickets, a crucial step for semantic search.
    • These embeddings were stored in BigQuery tables equipped with IVF Vector Indexes to ensure fast semantic lookup.
  3. AI Orchestration (Vertex AI / Gemini):

    • The Streamlit UI captures the agent's query.
    • The query is used to perform a BigQuery Vector Search to find relevant historical tickets.
    • A rich prompt containing the retrieved text and structured customer data (LTV, Churn Risk) is sent to Gemini 2.5 flash.
    • The Contextual Response Formula: $$\text{Response} = \text{Gemini} (\text{Query} + \text{Structured Data} + \text{BigQuery Vector Search Results})$$

Challenges Encountered and Key Learnings

Our development process exposed critical challenges inherent in building enterprise RAG systems, leading to valuable technical expertise.

Key Challenges and Solutions

Challenge Impact on Project Solution Implemented
Embedding Dimension Mismatch Caused search errors due to 1500-dim vectors conflicting with 768-dim query vectors. Full Regeneration: Reran the embedding pipeline using batch processing and exponential backoff to update all documents to 768 dimensions.
Vector Search Latency Initial searches took several seconds, violating real-time requirements. Created IVF Vector Indexes directly on the embedding tables in BigQuery. Reduced search time to under 500ms, enabling real-time RAG.
Hallucination Risk Threatened enterprise trust in AI-generated responses. Enforced strict RAG grounding via prompt engineering and enabled citation tracking for every generated claim.

Major Technical Lessons Learned

  • Fivetran's Value is Exponential: It truly eliminated the "data plumbing" problem, allowing us to spend over 90% of our time on value-added AI logic rather than writing and maintaining custom ETL scripts.
  • BigQuery is an Integrated AI Hub: Its native Vector Search capabilities transform it into a powerful RAG engine, simplifying the architecture by avoiding the need for a separate, dedicated vector database.
  • Context is King for GenAI: The success of the Gemini agent was directly tied to the completeness and freshness of the data delivered by Fivetran and BigQuery. Real-time, cross-silo data unification is the true foundation of enterprise AI.

Accomplishments and Future Vision

Our project successfully demonstrated several industry-leading capabilities:

  • Sub-Second Semantic Search: Achieving $\lt 500ms$ latency for semantic searches over a large dataset directly within BigQuery.
  • Explainable AI (XAI) Implementation: Successfully incorporating source citations into the final Gemini response, which is crucial for building enterprise trust.
  • Demonstrable ROI: Showcasing a simulated $80\%$ reduction in average handle time and $25\%$ reduction in churn through proactive AI-driven guidance.

Our vision is to evolve to Proactive Automation, implementing daily jobs to identify high-risk customers and automatically trigger personalized retention campaigns before an agent is involved.

Built With

  • 3.11
  • 4
  • ai
  • analytics
  • apis
  • bigquery
  • cloud
  • code
  • docker
  • embedding-api)
  • fivetran
  • gemini
  • git/github
  • google
  • google-bigquery-(vector-search
  • google-cloud-aiplatform
  • google-cloud-bigquery
  • pandas
  • python
  • python-3.11
  • run
  • salesforce
  • shopify
  • sql)
  • storage
  • streamlit
  • streamlit-(ui)
  • vertex
  • vertex-ai-(gemini-1.5-pro
  • vs
  • zendesk
Share this project:

Updates

Submission history