File size: 1,758 Bytes
cffa74d
a637bc5
 
 
 
 
 
 
cffa74d
a637bc5
e4ae845
cffa74d
 
a637bc5
cffa74d
a637bc5
cffa74d
a637bc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
title: RICA - AI Revenue Intelligence Agent
emoji: πŸ€–
colorFrom: blue
colorTo: purple
sdk: streamlit
sdk_version: 1.28.0
app_file: app.py
pinned: false
license: mit
python_version: "3.10"
---

# πŸ€– RICA - Revenue Intelligence & Customer Analytics Agent

Advanced AI agent for autonomous business intelligence using SAP data and machine learning.

## Features

- 🧠 **AI-Powered Churn Prediction**: Machine learning models predict customer churn risk
- πŸ“Š **Real-time Data Analysis**: Direct analysis of SAP data structures
- 🌐 **Market Intelligence**: External data integration and competitive insights
- πŸ€– **Autonomous Agent**: LLM-powered decision making and recommendations
- πŸ“ˆ **Business Impact**: Actionable insights for revenue optimization

## Technology Stack

- **Agent Framework**: smolagents with OpenAI GPT
- **ML Models**: Scikit-learn with automated training
- **Data Processing**: DuckDB for high-performance analytics
- **Real SAP Data**: SAP/SALT dataset from Hugging Face Hub
- **UI**: Streamlit for interactive experience

## Usage

1. Enter your OpenAI API key in the sidebar
2. Select analysis type (Comprehensive Review, Churn Analysis, etc.)
3. Click "Run Analysis" to execute AI-powered insights
4. Review recommendations and take action

## Model Training

The churn prediction model is automatically trained on first use using real SAP customer and sales data. Training typically takes 1-2 minutes and creates a persistent model for future predictions.

## Data Sources

- **Customer Data**: I_Customer from SAP/SALT dataset
- **Sales Data**: I_SalesDocument and I_SalesDocumentItem
- **External Data**: Industry news and competitive intelligence

Built with ❀️ for enterprise AI and business intelligence.