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pandas as pd
|
| 5 |
+
import streamlit as st
|
| 6 |
+
import plotly.express as px
|
| 7 |
+
import plotly.graph_objects as go
|
| 8 |
+
from openai import OpenAI
|
| 9 |
+
from datetime import datetime
|
| 10 |
+
from dotenv import load_dotenv
|
| 11 |
+
|
| 12 |
+
load_dotenv()
|
| 13 |
+
API_KEY = os.getenv("OPENAI_API_KEY")
|
| 14 |
+
|
| 15 |
+
# Page configuration
|
| 16 |
+
st.set_page_config(
|
| 17 |
+
page_title="SoftwareGrid AI - Intelligent Software Procurement",
|
| 18 |
+
page_icon="π―",
|
| 19 |
+
layout="wide",
|
| 20 |
+
initial_sidebar_state="expanded"
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
# Custom CSS
|
| 24 |
+
st.markdown("""
|
| 25 |
+
<style>
|
| 26 |
+
.main-header {
|
| 27 |
+
font-size: 2.5rem;
|
| 28 |
+
font-weight: bold;
|
| 29 |
+
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
| 30 |
+
-webkit-background-clip: text;
|
| 31 |
+
-webkit-text-fill-color: transparent;
|
| 32 |
+
margin-bottom: 1rem;
|
| 33 |
+
}
|
| 34 |
+
.metric-card {
|
| 35 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 36 |
+
padding: 1.5rem;
|
| 37 |
+
border-radius: 10px;
|
| 38 |
+
color: white;
|
| 39 |
+
}
|
| 40 |
+
.software-card {
|
| 41 |
+
border: 2px solid #e0e0e0;
|
| 42 |
+
border-radius: 10px;
|
| 43 |
+
padding: 1.5rem;
|
| 44 |
+
margin: 1rem 0;
|
| 45 |
+
transition: all 0.3s;
|
| 46 |
+
}
|
| 47 |
+
.software-card:hover {
|
| 48 |
+
border-color: #667eea;
|
| 49 |
+
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
|
| 50 |
+
}
|
| 51 |
+
.stButton>button {
|
| 52 |
+
width: 100%;
|
| 53 |
+
border-radius: 8px;
|
| 54 |
+
font-weight: 600;
|
| 55 |
+
}
|
| 56 |
+
</style>
|
| 57 |
+
""", unsafe_allow_html=True)
|
| 58 |
+
|
| 59 |
+
# Initialize session state
|
| 60 |
+
if 'api_key' not in st.session_state:
|
| 61 |
+
st.session_state.api_key = API_KEY # load from env automatically
|
| 62 |
+
if 'software_database' not in st.session_state:
|
| 63 |
+
st.session_state.software_database = []
|
| 64 |
+
if 'compare_list' not in st.session_state:
|
| 65 |
+
st.session_state.compare_list = []
|
| 66 |
+
if 'chat_history' not in st.session_state:
|
| 67 |
+
st.session_state.chat_history = []
|
| 68 |
+
if 'user_requirements' not in st.session_state:
|
| 69 |
+
st.session_state.user_requirements = {}
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
# Helper function to call Claude API
|
| 73 |
+
def call_claude(prompt, system_prompt="You are an expert software procurement consultant."):
|
| 74 |
+
try:
|
| 75 |
+
client = anthropic.Anthropic(api_key=st.session_state.api_key)
|
| 76 |
+
message = client.messages.create(
|
| 77 |
+
model="claude-3-5-haiku-latest",
|
| 78 |
+
max_tokens=4096,
|
| 79 |
+
system=system_prompt,
|
| 80 |
+
messages=[{"role": "user", "content": prompt}]
|
| 81 |
+
)
|
| 82 |
+
return message.content[0].text
|
| 83 |
+
except Exception as e:
|
| 84 |
+
return f"Error: {str(e)}"
|
| 85 |
+
|
| 86 |
+
# Sample software database
|
| 87 |
+
SOFTWARE_DATABASE = [
|
| 88 |
+
{
|
| 89 |
+
"name": "Zoom", "category": "Video Conferencing",
|
| 90 |
+
"description": "HD video conferencing and virtual meetings platform",
|
| 91 |
+
"pricing_min": 0, "pricing_max": 19.99, "pricing_unit": "user/month",
|
| 92 |
+
"features": ["HD Video", "Screen Sharing", "Recording", "Breakout Rooms", "Webinar Mode"],
|
| 93 |
+
"users": "300M+", "rating": 4.5, "negotiable": True, "g2_score": 4.5,
|
| 94 |
+
"integrations": ["Slack", "Microsoft Teams", "Salesforce", "Google Calendar"],
|
| 95 |
+
"compliance": ["SOC2", "GDPR", "HIPAA"]
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"name": "Slack", "category": "Team Communication",
|
| 99 |
+
"description": "Team messaging and collaboration platform",
|
| 100 |
+
"pricing_min": 0, "pricing_max": 12.50, "pricing_unit": "user/month",
|
| 101 |
+
"features": ["Channels", "Direct Messages", "File Sharing", "App Integrations", "Search"],
|
| 102 |
+
"users": "50M+", "rating": 4.6, "negotiable": True, "g2_score": 4.5,
|
| 103 |
+
"integrations": ["Google Drive", "Zoom", "Salesforce", "Jira"],
|
| 104 |
+
"compliance": ["SOC2", "GDPR", "ISO27001"]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Microsoft Teams", "category": "Video Conferencing",
|
| 108 |
+
"description": "Chat, meetings, calls, and collaboration in Office 365",
|
| 109 |
+
"pricing_min": 0, "pricing_max": 12.50, "pricing_unit": "user/month",
|
| 110 |
+
"features": ["Video Calls", "Chat", "File Storage", "Office Integration", "Teams Channels"],
|
| 111 |
+
"users": "280M+", "rating": 4.4, "negotiable": False, "g2_score": 4.3,
|
| 112 |
+
"integrations": ["Office 365", "SharePoint", "OneDrive", "Power BI"],
|
| 113 |
+
"compliance": ["SOC2", "GDPR", "HIPAA", "ISO27001"]
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"name": "Google Workspace", "category": "Email & Productivity",
|
| 117 |
+
"description": "Email, docs, drive, and collaboration suite",
|
| 118 |
+
"pricing_min": 6, "pricing_max": 18, "pricing_unit": "user/month",
|
| 119 |
+
"features": ["Gmail", "Drive", "Docs/Sheets", "Meet", "Calendar", "Admin Console"],
|
| 120 |
+
"users": "3B+", "rating": 4.7, "negotiable": False, "g2_score": 4.6,
|
| 121 |
+
"integrations": ["Slack", "Zoom", "Salesforce", "Asana"],
|
| 122 |
+
"compliance": ["SOC2", "GDPR", "HIPAA", "ISO27001"]
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Asana", "category": "Project Management",
|
| 126 |
+
"description": "Work management platform for team collaboration",
|
| 127 |
+
"pricing_min": 0, "pricing_max": 24.99, "pricing_unit": "user/month",
|
| 128 |
+
"features": ["Task Management", "Timelines", "Workflows", "Reporting", "Portfolios"],
|
| 129 |
+
"users": "150M+", "rating": 4.5, "negotiable": True, "g2_score": 4.4,
|
| 130 |
+
"integrations": ["Slack", "Google Drive", "Microsoft Teams", "Salesforce"],
|
| 131 |
+
"compliance": ["SOC2", "GDPR", "ISO27001"]
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"name": "Monday.com", "category": "Project Management",
|
| 135 |
+
"description": "Work operating system for team productivity",
|
| 136 |
+
"pricing_min": 8, "pricing_max": 16, "pricing_unit": "user/month",
|
| 137 |
+
"features": ["Custom Workflows", "Dashboards", "Automations", "Time Tracking", "Forms"],
|
| 138 |
+
"users": "180K+", "rating": 4.6, "negotiable": True, "g2_score": 4.7,
|
| 139 |
+
"integrations": ["Slack", "Zoom", "Microsoft Teams", "Google Drive"],
|
| 140 |
+
"compliance": ["SOC2", "GDPR", "ISO27001"]
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Notion", "category": "Knowledge Management",
|
| 144 |
+
"description": "All-in-one workspace for notes, docs, and wikis",
|
| 145 |
+
"pricing_min": 0, "pricing_max": 10, "pricing_unit": "user/month",
|
| 146 |
+
"features": ["Wiki", "Docs", "Databases", "Kanban Boards", "Templates"],
|
| 147 |
+
"users": "30M+", "rating": 4.7, "negotiable": False, "g2_score": 4.7,
|
| 148 |
+
"integrations": ["Slack", "Google Drive", "Figma", "GitHub"],
|
| 149 |
+
"compliance": ["SOC2", "GDPR"]
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"name": "Salesforce", "category": "CRM",
|
| 153 |
+
"description": "Customer relationship management platform",
|
| 154 |
+
"pricing_min": 25, "pricing_max": 300, "pricing_unit": "user/month",
|
| 155 |
+
"features": ["Lead Management", "Sales Pipeline", "Analytics", "Mobile App", "Einstein AI"],
|
| 156 |
+
"users": "150K+ companies", "rating": 4.4, "negotiable": True, "g2_score": 4.3,
|
| 157 |
+
"integrations": ["Slack", "Google Workspace", "Microsoft 365", "Zoom"],
|
| 158 |
+
"compliance": ["SOC2", "GDPR", "HIPAA", "ISO27001"]
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Jira", "category": "Project Management",
|
| 162 |
+
"description": "Issue tracking and agile project management",
|
| 163 |
+
"pricing_min": 0, "pricing_max": 14.50, "pricing_unit": "user/month",
|
| 164 |
+
"features": ["Scrum Boards", "Kanban", "Roadmaps", "Reports", "Automation"],
|
| 165 |
+
"users": "65K+ companies", "rating": 4.4, "negotiable": False, "g2_score": 4.2,
|
| 166 |
+
"integrations": ["Confluence", "Slack", "GitHub", "Microsoft Teams"],
|
| 167 |
+
"compliance": ["SOC2", "GDPR", "ISO27001"]
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"name": "Dropbox Business", "category": "Cloud Storage",
|
| 171 |
+
"description": "Cloud storage and file sharing platform",
|
| 172 |
+
"pricing_min": 12.50, "pricing_max": 20, "pricing_unit": "user/month",
|
| 173 |
+
"features": ["Unlimited Storage", "Advanced Sharing", "Version History", "Admin Tools", "Paper"],
|
| 174 |
+
"users": "700M+", "rating": 4.4, "negotiable": True, "g2_score": 4.4,
|
| 175 |
+
"integrations": ["Slack", "Zoom", "Microsoft Office", "Google Workspace"],
|
| 176 |
+
"compliance": ["SOC2", "GDPR", "HIPAA", "ISO27001"]
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Figma", "category": "Design Tools",
|
| 180 |
+
"description": "Collaborative interface design tool",
|
| 181 |
+
"pricing_min": 0, "pricing_max": 15, "pricing_unit": "user/month",
|
| 182 |
+
"features": ["Design", "Prototyping", "Real-time Collaboration", "Dev Mode", "FigJam"],
|
| 183 |
+
"users": "4M+", "rating": 4.8, "negotiable": False, "g2_score": 4.7,
|
| 184 |
+
"integrations": ["Slack", "Jira", "Notion", "Microsoft Teams"],
|
| 185 |
+
"compliance": ["SOC2", "GDPR"]
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"name": "GitHub Enterprise", "category": "Developer Tools",
|
| 189 |
+
"description": "Code hosting and collaboration platform",
|
| 190 |
+
"pricing_min": 21, "pricing_max": 21, "pricing_unit": "user/month",
|
| 191 |
+
"features": ["Version Control", "CI/CD", "Code Review", "Security Scanning", "Actions"],
|
| 192 |
+
"users": "100M+", "rating": 4.8, "negotiable": True, "g2_score": 4.7,
|
| 193 |
+
"integrations": ["Slack", "Jira", "Microsoft Teams", "VS Code"],
|
| 194 |
+
"compliance": ["SOC2", "GDPR", "ISO27001"]
|
| 195 |
+
}
|
| 196 |
+
]
|
| 197 |
+
|
| 198 |
+
# Initialize database
|
| 199 |
+
if not st.session_state.software_database:
|
| 200 |
+
st.session_state.software_database = SOFTWARE_DATABASE
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def call_openai(prompt, system_prompt="You are an expert software procurement consultant."):
|
| 204 |
+
try:
|
| 205 |
+
client = OpenAI()
|
| 206 |
+
completion = client.chat.completions.create(
|
| 207 |
+
model="gpt-4o-mini", # or "gpt-4o" if you have access
|
| 208 |
+
messages=[
|
| 209 |
+
{"role": "system", "content": system_prompt},
|
| 210 |
+
{"role": "user", "content": prompt}
|
| 211 |
+
],
|
| 212 |
+
temperature=0.7,
|
| 213 |
+
max_tokens=1000
|
| 214 |
+
)
|
| 215 |
+
return completion.choices[0].message.content
|
| 216 |
+
except Exception as e:
|
| 217 |
+
return f"β OpenAI API Error: {e}"
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
# Sidebar
|
| 221 |
+
with st.sidebar:
|
| 222 |
+
|
| 223 |
+
st.markdown("---")
|
| 224 |
+
st.markdown("### π Quick Stats")
|
| 225 |
+
if st.session_state.compare_list:
|
| 226 |
+
st.metric("Selected for Comparison", len(st.session_state.compare_list))
|
| 227 |
+
st.metric("Total Software", len(st.session_state.software_database))
|
| 228 |
+
|
| 229 |
+
st.markdown("---")
|
| 230 |
+
st.markdown("### π― Navigation")
|
| 231 |
+
page = st.radio("Go to:", [
|
| 232 |
+
"π Home",
|
| 233 |
+
"π AI Matching Engine",
|
| 234 |
+
"π Compare Software",
|
| 235 |
+
"π‘ Strategy Optimizer",
|
| 236 |
+
"οΏ½οΏ½οΏ½οΏ½ Negotiation Assistant",
|
| 237 |
+
"π Usage Analytics"
|
| 238 |
+
])
|
| 239 |
+
|
| 240 |
+
# Main content
|
| 241 |
+
if page == "π Home":
|
| 242 |
+
st.markdown('<h1 class="main-header">π― SoftwareGrid AI</h1>', unsafe_allow_html=True)
|
| 243 |
+
st.markdown("### Intelligent Software Procurement & Negotiation Platform")
|
| 244 |
+
|
| 245 |
+
col1, col2, col3 = st.columns(3)
|
| 246 |
+
with col1:
|
| 247 |
+
st.info("**π― AI Matching**\n\nIntelligent software recommendations based on your needs")
|
| 248 |
+
with col2:
|
| 249 |
+
st.info("**π Smart Comparison**\n\nMulti-dimensional analysis of features, pricing & TCO")
|
| 250 |
+
with col3:
|
| 251 |
+
st.info("**π€ Negotiation AI**\n\nGet the best deals with data-driven negotiation strategies")
|
| 252 |
+
|
| 253 |
+
st.markdown("---")
|
| 254 |
+
st.markdown("## π Quick Start")
|
| 255 |
+
|
| 256 |
+
col1, col2 = st.columns(2)
|
| 257 |
+
with col1:
|
| 258 |
+
st.markdown("### 1οΈβ£ Tell Us Your Needs")
|
| 259 |
+
company_size = st.selectbox("Company Size", ["1-10", "11-50", "51-200", "201-1000", "1000+"])
|
| 260 |
+
industry = st.selectbox("Industry", ["Technology", "Healthcare", "Finance", "Education", "Retail", "Other"])
|
| 261 |
+
budget = st.selectbox("Monthly Budget", ["<$1K", "$1K-$5K", "$5K-$20K", "$20K-$50K", "$50K+"])
|
| 262 |
+
|
| 263 |
+
if st.button("π― Get AI Recommendations", type="primary"):
|
| 264 |
+
with st.spinner("Analyzing your requirements..."):
|
| 265 |
+
prompt = f"""
|
| 266 |
+
You are an expert enterprise software consultant. Based on the following company profile, recommend the top 5 software tools or vendor bundles that best fit their needs.
|
| 267 |
+
|
| 268 |
+
Company Profile:
|
| 269 |
+
- Company Size: {company_size} employees
|
| 270 |
+
- Industry: {industry}
|
| 271 |
+
- Monthly Budget: {budget}
|
| 272 |
+
|
| 273 |
+
Available software database:
|
| 274 |
+
{json.dumps([
|
| 275 |
+
{"name": s["name"], "category": s["category"], "pricing": f"${s['pricing_min']}-{s['pricing_max']}/{s['pricing_unit']}"}
|
| 276 |
+
for s in SOFTWARE_DATABASE
|
| 277 |
+
], indent=2)}
|
| 278 |
+
|
| 279 |
+
Please perform a holistic evaluation, considering:
|
| 280 |
+
1. **Functional Coverage Efficiency** β Prefer software that covers multiple business needs (reduce overlap).
|
| 281 |
+
2. **Vendor Consolidation** β Recommend single-vendor bundles when one company provides multiple complementary tools.
|
| 282 |
+
3. **Cost Efficiency** β Stay within the monthly budget and note potential savings from reduced redundancy.
|
| 283 |
+
4. **Integration Simplicity** β Fewer vendors β lower integration and training overhead.
|
| 284 |
+
5. **Scalability and Fit** β Match features and complexity to company size and industry-specific workflows.
|
| 285 |
+
Note that the overlap issue should be taken into account. It is necessary to consider the situation where many functions can be accomplished by purchasing lisence from just one company
|
| 286 |
+
Provide recommendations with reasoning for each.
|
| 287 |
+
"""
|
| 288 |
+
|
| 289 |
+
response = call_openai(prompt)
|
| 290 |
+
st.success("β
Recommendations Generated!")
|
| 291 |
+
st.markdown(response)
|
| 292 |
+
|
| 293 |
+
with col2:
|
| 294 |
+
st.markdown("### 2οΈβ£ Browse Software Catalog")
|
| 295 |
+
categories = ["All"] + list(set([s["category"] for s in SOFTWARE_DATABASE]))
|
| 296 |
+
selected_category = st.selectbox("Category", categories)
|
| 297 |
+
|
| 298 |
+
filtered_software = SOFTWARE_DATABASE if selected_category == "All" else [s for s in SOFTWARE_DATABASE if s["category"] == selected_category]
|
| 299 |
+
|
| 300 |
+
st.markdown(f"**{len(filtered_software)} software found**")
|
| 301 |
+
|
| 302 |
+
for software in filtered_software[:5]:
|
| 303 |
+
with st.expander(f"**{software['name']}** - {software['category']} β {software['rating']}"):
|
| 304 |
+
st.markdown(f"*{software['description']}*")
|
| 305 |
+
st.markdown(f"**π° Pricing:** ${software['pricing_min']}-${software['pricing_max']}/{software['pricing_unit']}")
|
| 306 |
+
st.markdown(f"**π₯ Users:** {software['users']}")
|
| 307 |
+
if st.button(f"Add to Compare", key=f"home_compare_{software['name']}"):
|
| 308 |
+
if software not in st.session_state.compare_list:
|
| 309 |
+
st.session_state.compare_list.append(software)
|
| 310 |
+
st.success(f"Added {software['name']} to comparison!")
|
| 311 |
+
else:
|
| 312 |
+
st.warning("Already in comparison list")
|
| 313 |
+
|
| 314 |
+
elif page == "π AI Matching Engine":
|
| 315 |
+
st.markdown('<h1 class="main-header">π― AI Software Matching Engine</h1>', unsafe_allow_html=True)
|
| 316 |
+
st.markdown("### Let AI help you find the perfect software for your needs")
|
| 317 |
+
|
| 318 |
+
tab1, tab2 = st.tabs(["π¬ Conversational Analysis", "π Questionnaire"])
|
| 319 |
+
|
| 320 |
+
with tab1:
|
| 321 |
+
st.markdown("#### Chat with our AI to discover your perfect software match")
|
| 322 |
+
|
| 323 |
+
# Chat interface
|
| 324 |
+
for msg in st.session_state.chat_history:
|
| 325 |
+
with st.chat_message(msg["role"]):
|
| 326 |
+
st.markdown(msg["content"])
|
| 327 |
+
|
| 328 |
+
user_input = st.chat_input("Describe your software needs...")
|
| 329 |
+
|
| 330 |
+
if user_input:
|
| 331 |
+
st.session_state.chat_history.append({"role": "user", "content": user_input})
|
| 332 |
+
|
| 333 |
+
with st.chat_message("user"):
|
| 334 |
+
st.markdown(user_input)
|
| 335 |
+
|
| 336 |
+
with st.chat_message("assistant"):
|
| 337 |
+
with st.spinner("Analyzing..."):
|
| 338 |
+
system_prompt = """You are an expert software procurement consultant. Help users find the best software solutions.
|
| 339 |
+
Ask clarifying questions about:
|
| 340 |
+
- Company size and structure
|
| 341 |
+
- Industry and use cases
|
| 342 |
+
- Budget constraints
|
| 343 |
+
- Current software stack
|
| 344 |
+
- Integration requirements
|
| 345 |
+
- Compliance needs
|
| 346 |
+
|
| 347 |
+
Be conversational and helpful. After gathering enough information, recommend specific software from the database."""
|
| 348 |
+
|
| 349 |
+
context = f"""
|
| 350 |
+
Chat history: {json.dumps(st.session_state.chat_history[-5:])}
|
| 351 |
+
|
| 352 |
+
Available software: {json.dumps([{"name": s["name"], "category": s["category"], "features": s["features"][:3]} for s in SOFTWARE_DATABASE], indent=2)}
|
| 353 |
+
|
| 354 |
+
User message: {user_input}
|
| 355 |
+
"""
|
| 356 |
+
|
| 357 |
+
response = call_openai(context, system_prompt)
|
| 358 |
+
st.markdown(response)
|
| 359 |
+
st.session_state.chat_history.append({"role": "assistant", "content": response})
|
| 360 |
+
|
| 361 |
+
with tab2:
|
| 362 |
+
st.markdown("#### Complete this questionnaire for precise recommendations")
|
| 363 |
+
|
| 364 |
+
with st.form("requirements_form"):
|
| 365 |
+
col1, col2 = st.columns(2)
|
| 366 |
+
|
| 367 |
+
with col1:
|
| 368 |
+
team_size = st.number_input("Team Size", min_value=1, value=10)
|
| 369 |
+
industry = st.selectbox("Industry", ["Technology", "Healthcare", "Finance", "Education", "Retail", "Manufacturing", "Other"])
|
| 370 |
+
remote_work = st.selectbox("Work Model", ["Fully Remote", "Hybrid", "In-Office"])
|
| 371 |
+
budget_range = st.selectbox("Monthly Budget per User", ["<$10", "$10-$30", "$30-$50", "$50-$100", "$100+"])
|
| 372 |
+
|
| 373 |
+
with col2:
|
| 374 |
+
needs = st.multiselect("Primary Needs", [
|
| 375 |
+
"Team Communication", "Video Conferencing", "Project Management",
|
| 376 |
+
"File Storage", "CRM", "Email", "Design Tools", "Developer Tools",
|
| 377 |
+
"Knowledge Management", "Time Tracking"
|
| 378 |
+
])
|
| 379 |
+
integrations = st.multiselect("Must Integrate With", [
|
| 380 |
+
"Slack", "Microsoft Teams", "Google Workspace", "Salesforce",
|
| 381 |
+
"Jira", "GitHub", "Zoom"
|
| 382 |
+
])
|
| 383 |
+
compliance = st.multiselect("Compliance Requirements", [
|
| 384 |
+
"GDPR", "HIPAA", "SOC2", "ISO27001"
|
| 385 |
+
])
|
| 386 |
+
|
| 387 |
+
submitted = st.form_submit_button("π― Get AI Recommendations", type="primary")
|
| 388 |
+
|
| 389 |
+
if submitted:
|
| 390 |
+
with st.spinner("Analyzing your requirements with AI..."):
|
| 391 |
+
prompt = f"""Analyze these requirements and recommend the best software solutions:
|
| 392 |
+
|
| 393 |
+
Company Profile:
|
| 394 |
+
- Team Size: {team_size} people
|
| 395 |
+
- Industry: {industry}
|
| 396 |
+
- Work Model: {remote_work}
|
| 397 |
+
- Budget per User: {budget_range}
|
| 398 |
+
|
| 399 |
+
Requirements:
|
| 400 |
+
- Primary Needs: {', '.join(needs)}
|
| 401 |
+
- Required Integrations: {', '.join(integrations)}
|
| 402 |
+
- Compliance: {', '.join(compliance)}
|
| 403 |
+
|
| 404 |
+
Available software database:
|
| 405 |
+
{json.dumps(SOFTWARE_DATABASE, indent=2)}
|
| 406 |
+
|
| 407 |
+
Provide:
|
| 408 |
+
1. Top 5 recommended software with match scores
|
| 409 |
+
2. Functional gap analysis
|
| 410 |
+
3. Estimated total cost
|
| 411 |
+
4. Integration compatibility
|
| 412 |
+
5. Compliance coverage
|
| 413 |
+
"""
|
| 414 |
+
|
| 415 |
+
response = call_openai(prompt)
|
| 416 |
+
st.success("β
Analysis Complete!")
|
| 417 |
+
st.markdown("### π― AI Recommendations")
|
| 418 |
+
st.markdown(response)
|
| 419 |
+
|
| 420 |
+
# Extract recommended software
|
| 421 |
+
st.markdown("---")
|
| 422 |
+
st.markdown("### π Quick Compare Recommended Software")
|
| 423 |
+
cols = st.columns(3)
|
| 424 |
+
for idx, software in enumerate(SOFTWARE_DATABASE[:3]):
|
| 425 |
+
with cols[idx]:
|
| 426 |
+
st.markdown(f"**{software['name']}**")
|
| 427 |
+
st.markdown(f"β {software['rating']}")
|
| 428 |
+
st.markdown(f"π° ${software['pricing_min']}-${software['pricing_max']}")
|
| 429 |
+
if st.button(f"Add to Compare", key=f"rec_{software['name']}"):
|
| 430 |
+
if software not in st.session_state.compare_list:
|
| 431 |
+
st.session_state.compare_list.append(software)
|
| 432 |
+
st.success(f"Added!")
|
| 433 |
+
|
| 434 |
+
elif page == "π Compare Software":
|
| 435 |
+
st.markdown('<h1 class="main-header">π Multi-Dimensional Comparison</h1>', unsafe_allow_html=True)
|
| 436 |
+
|
| 437 |
+
col1, col2 = st.columns([3, 1])
|
| 438 |
+
with col1:
|
| 439 |
+
st.markdown(f"### Compare up to 4 software solutions")
|
| 440 |
+
with col2:
|
| 441 |
+
if st.button("ποΈ Clear All"):
|
| 442 |
+
st.session_state.compare_list = []
|
| 443 |
+
st.rerun()
|
| 444 |
+
|
| 445 |
+
# Software selector
|
| 446 |
+
st.markdown("#### Add Software to Compare")
|
| 447 |
+
col1, col2, col3 = st.columns(3)
|
| 448 |
+
with col1:
|
| 449 |
+
selected_software = st.selectbox(
|
| 450 |
+
"Select Software",
|
| 451 |
+
[s["name"] for s in SOFTWARE_DATABASE if s not in st.session_state.compare_list],
|
| 452 |
+
key="software_selector"
|
| 453 |
+
)
|
| 454 |
+
with col2:
|
| 455 |
+
if st.button("β Add to Comparison", type="primary"):
|
| 456 |
+
software = next(s for s in SOFTWARE_DATABASE if s["name"] == selected_software)
|
| 457 |
+
if len(st.session_state.compare_list) < 4:
|
| 458 |
+
st.session_state.compare_list.append(software)
|
| 459 |
+
st.success(f"Added {selected_software}!")
|
| 460 |
+
st.rerun()
|
| 461 |
+
else:
|
| 462 |
+
st.error("Maximum 4 software can be compared")
|
| 463 |
+
|
| 464 |
+
if len(st.session_state.compare_list) == 0:
|
| 465 |
+
st.info("π Add software to start comparing")
|
| 466 |
+
else:
|
| 467 |
+
st.markdown(f"**{len(st.session_state.compare_list)} software selected**")
|
| 468 |
+
|
| 469 |
+
# Display comparison cards
|
| 470 |
+
cols = st.columns(len(st.session_state.compare_list))
|
| 471 |
+
for idx, software in enumerate(st.session_state.compare_list):
|
| 472 |
+
with cols[idx]:
|
| 473 |
+
st.markdown(f"""
|
| 474 |
+
<div style='background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 475 |
+
padding: 1rem; border-radius: 10px; color: white; text-align: center;'>
|
| 476 |
+
<h3>{software['name']}</h3>
|
| 477 |
+
<p style='margin: 0;'>{software['category']}</p>
|
| 478 |
+
</div>
|
| 479 |
+
""", unsafe_allow_html=True)
|
| 480 |
+
st.markdown(f"β **Rating:** {software['rating']}/5.0")
|
| 481 |
+
if st.button("Remove", key=f"remove_{idx}"):
|
| 482 |
+
st.session_state.compare_list.pop(idx)
|
| 483 |
+
st.rerun()
|
| 484 |
+
|
| 485 |
+
st.markdown("---")
|
| 486 |
+
|
| 487 |
+
# Comparison tabs
|
| 488 |
+
tab1, tab2, tab3, tab4, tab5 = st.tabs([
|
| 489 |
+
"π° Pricing", "β¨ Features", "π Integrations", "π TCO Analysis", "π€ AI Insights"
|
| 490 |
+
])
|
| 491 |
+
|
| 492 |
+
with tab1:
|
| 493 |
+
st.markdown("### π° Pricing Structure Comparison")
|
| 494 |
+
|
| 495 |
+
# Pricing comparison table
|
| 496 |
+
pricing_data = []
|
| 497 |
+
for software in st.session_state.compare_list:
|
| 498 |
+
pricing_data.append({
|
| 499 |
+
"Software": software["name"],
|
| 500 |
+
"Min Price": f"${software['pricing_min']}",
|
| 501 |
+
"Max Price": f"${software['pricing_max']}",
|
| 502 |
+
"Unit": software["pricing_unit"],
|
| 503 |
+
"Negotiable": "β
" if software["negotiable"] else "β"
|
| 504 |
+
})
|
| 505 |
+
|
| 506 |
+
df_pricing = pd.DataFrame(pricing_data)
|
| 507 |
+
st.dataframe(df_pricing, use_container_width=True)
|
| 508 |
+
|
| 509 |
+
# Pricing chart
|
| 510 |
+
st.markdown("#### Price Range Comparison")
|
| 511 |
+
fig = go.Figure()
|
| 512 |
+
for software in st.session_state.compare_list:
|
| 513 |
+
fig.add_trace(go.Bar(
|
| 514 |
+
name=software["name"],
|
| 515 |
+
x=["Min Price", "Max Price"],
|
| 516 |
+
y=[software["pricing_min"], software["pricing_max"]],
|
| 517 |
+
))
|
| 518 |
+
fig.update_layout(barmode='group', height=400)
|
| 519 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 520 |
+
|
| 521 |
+
# TCO Calculator
|
| 522 |
+
st.markdown("#### π΅ Total Cost of Ownership Calculator")
|
| 523 |
+
num_users = st.slider("Number of Users", 1, 500, 50)
|
| 524 |
+
contract_length = st.selectbox("Contract Length", ["Monthly", "Annual", "Multi-year"])
|
| 525 |
+
|
| 526 |
+
st.markdown("**Estimated Annual Cost:**")
|
| 527 |
+
for software in st.session_state.compare_list:
|
| 528 |
+
avg_price = (software["pricing_min"] + software["pricing_max"]) / 2
|
| 529 |
+
annual_cost = avg_price * num_users * 12
|
| 530 |
+
discount = 0.15 if software["negotiable"] else 0
|
| 531 |
+
final_cost = annual_cost * (1 - discount)
|
| 532 |
+
|
| 533 |
+
st.metric(
|
| 534 |
+
software["name"],
|
| 535 |
+
f"${final_cost:,.0f}/year",
|
| 536 |
+
f"-${annual_cost * discount:,.0f} (negotiable)" if discount > 0 else "Fixed pricing"
|
| 537 |
+
)
|
| 538 |
+
|
| 539 |
+
with tab2:
|
| 540 |
+
st.markdown("### β¨ Feature Matrix Comparison")
|
| 541 |
+
|
| 542 |
+
all_features = set()
|
| 543 |
+
for software in st.session_state.compare_list:
|
| 544 |
+
all_features.update(software["features"])
|
| 545 |
+
|
| 546 |
+
feature_matrix = []
|
| 547 |
+
for feature in sorted(all_features):
|
| 548 |
+
row = {"Feature": feature}
|
| 549 |
+
for software in st.session_state.compare_list:
|
| 550 |
+
row[software["name"]] = "β
" if feature in software["features"] else "β"
|
| 551 |
+
feature_matrix.append(row)
|
| 552 |
+
|
| 553 |
+
df_features = pd.DataFrame(feature_matrix)
|
| 554 |
+
st.dataframe(df_features, use_container_width=True, height=400)
|
| 555 |
+
|
| 556 |
+
# Feature coverage chart
|
| 557 |
+
st.markdown("#### Feature Coverage Score")
|
| 558 |
+
coverage_data = []
|
| 559 |
+
for software in st.session_state.compare_list:
|
| 560 |
+
coverage = (len(software["features"]) / len(all_features)) * 100
|
| 561 |
+
coverage_data.append({"Software": software["name"], "Coverage": coverage})
|
| 562 |
+
|
| 563 |
+
df_coverage = pd.DataFrame(coverage_data)
|
| 564 |
+
fig = px.bar(df_coverage, x="Software", y="Coverage",
|
| 565 |
+
title="Feature Coverage (%)",
|
| 566 |
+
color="Coverage",
|
| 567 |
+
color_continuous_scale="Blues")
|
| 568 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 569 |
+
|
| 570 |
+
with tab3:
|
| 571 |
+
st.markdown("### π Integration Compatibility")
|
| 572 |
+
|
| 573 |
+
all_integrations = set()
|
| 574 |
+
for software in st.session_state.compare_list:
|
| 575 |
+
all_integrations.update(software["integrations"])
|
| 576 |
+
|
| 577 |
+
integration_matrix = []
|
| 578 |
+
for integration in sorted(all_integrations):
|
| 579 |
+
row = {"Integration": integration}
|
| 580 |
+
for software in st.session_state.compare_list:
|
| 581 |
+
row[software["name"]] = "β
" if integration in software["integrations"] else "β"
|
| 582 |
+
integration_matrix.append(row)
|
| 583 |
+
|
| 584 |
+
df_integrations = pd.DataFrame(integration_matrix)
|
| 585 |
+
st.dataframe(df_integrations, use_container_width=True)
|
| 586 |
+
|
| 587 |
+
# Compliance comparison
|
| 588 |
+
st.markdown("#### π‘οΈ Compliance & Security")
|
| 589 |
+
compliance_matrix = []
|
| 590 |
+
all_compliance = set()
|
| 591 |
+
for software in st.session_state.compare_list:
|
| 592 |
+
all_compliance.update(software["compliance"])
|
| 593 |
+
|
| 594 |
+
for comp in sorted(all_compliance):
|
| 595 |
+
row = {"Certification": comp}
|
| 596 |
+
for software in st.session_state.compare_list:
|
| 597 |
+
row[software["name"]] = "β
" if comp in software["compliance"] else "β"
|
| 598 |
+
compliance_matrix.append(row)
|
| 599 |
+
|
| 600 |
+
df_compliance = pd.DataFrame(compliance_matrix)
|
| 601 |
+
st.dataframe(df_compliance, use_container_width=True)
|
| 602 |
+
|
| 603 |
+
with tab4:
|
| 604 |
+
st.markdown("### π Total Cost of Ownership (TCO) Analysis")
|
| 605 |
+
|
| 606 |
+
st.markdown("#### Configure Your Scenario")
|
| 607 |
+
col1, col2, col3 = st.columns(3)
|
| 608 |
+
with col1:
|
| 609 |
+
num_users_tco = st.number_input("Number of Users", 1, 1000, 50, key="tco_users")
|
| 610 |
+
with col2:
|
| 611 |
+
years = st.selectbox("Time Period", [1, 2, 3, 5], key="tco_years")
|
| 612 |
+
with col3:
|
| 613 |
+
include_costs = st.multiselect("Include", ["Training", "Migration", "Support"], default=["Training"])
|
| 614 |
+
|
| 615 |
+
tco_data = []
|
| 616 |
+
for software in st.session_state.compare_list:
|
| 617 |
+
avg_price = (software["pricing_min"] + software["pricing_max"]) / 2
|
| 618 |
+
subscription_cost = avg_price * num_users_tco * 12 * years
|
| 619 |
+
|
| 620 |
+
training_cost = 100 * num_users_tco if "Training" in include_costs else 0
|
| 621 |
+
migration_cost = 5000 if "Migration" in include_costs else 0
|
| 622 |
+
support_cost = subscription_cost * 0.1 * years if "Support" in include_costs else 0
|
| 623 |
+
|
| 624 |
+
total_tco = subscription_cost + training_cost + migration_cost + support_cost
|
| 625 |
+
|
| 626 |
+
tco_data.append({
|
| 627 |
+
"Software": software["name"],
|
| 628 |
+
"Subscription": subscription_cost,
|
| 629 |
+
"Training": training_cost,
|
| 630 |
+
"Migration": migration_cost,
|
| 631 |
+
"Support": support_cost,
|
| 632 |
+
"Total TCO": total_tco
|
| 633 |
+
})
|
| 634 |
+
|
| 635 |
+
df_tco = pd.DataFrame(tco_data)
|
| 636 |
+
|
| 637 |
+
# TCO breakdown chart
|
| 638 |
+
fig = go.Figure()
|
| 639 |
+
for cost_type in ["Subscription", "Training", "Migration", "Support"]:
|
| 640 |
+
fig.add_trace(go.Bar(
|
| 641 |
+
name=cost_type,
|
| 642 |
+
x=df_tco["Software"],
|
| 643 |
+
y=df_tco[cost_type]
|
| 644 |
+
))
|
| 645 |
+
fig.update_layout(barmode='stack', title="TCO Breakdown", height=400)
|
| 646 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 647 |
+
|
| 648 |
+
# TCO table
|
| 649 |
+
st.markdown("#### Detailed TCO Breakdown")
|
| 650 |
+
st.dataframe(df_tco.style.format({
|
| 651 |
+
"Subscription": "${:,.0f}",
|
| 652 |
+
"Training": "${:,.0f}",
|
| 653 |
+
"Migration": "${:,.0f}",
|
| 654 |
+
"Support": "${:,.0f}",
|
| 655 |
+
"Total TCO": "${:,.0f}"
|
| 656 |
+
}), use_container_width=True)
|
| 657 |
+
|
| 658 |
+
with tab5:
|
| 659 |
+
st.markdown("### π€ AI-Powered Insights")
|
| 660 |
+
|
| 661 |
+
if st.button("π§ Generate AI Analysis", type="primary"):
|
| 662 |
+
with st.spinner("AI is analyzing your comparison..."):
|
| 663 |
+
prompt = f"""Analyze this software comparison and provide insights:
|
| 664 |
+
|
| 665 |
+
Software being compared:
|
| 666 |
+
{json.dumps(st.session_state.compare_list, indent=2)}
|
| 667 |
+
|
| 668 |
+
Provide:
|
| 669 |
+
1. **Best Overall Value**: Which offers the best balance of features and price?
|
| 670 |
+
2. **Best for Specific Use Cases**: Recommend which software for different scenarios
|
| 671 |
+
3. **Cost Optimization**: How to reduce costs while maintaining functionality
|
| 672 |
+
4. **Integration Strategy**: Which combination works best together
|
| 673 |
+
5. **Risk Assessment**: Potential issues or limitations
|
| 674 |
+
6. **Negotiation Opportunities**: Which vendors are most likely to offer discounts
|
| 675 |
+
|
| 676 |
+
Be specific and actionable."""
|
| 677 |
+
|
| 678 |
+
response = call_openai(prompt)
|
| 679 |
+
st.markdown(response)
|
| 680 |
+
|
| 681 |
+
st.markdown("---")
|
| 682 |
+
st.markdown("#### π Quick Recommendation Matrix")
|
| 683 |
+
|
| 684 |
+
cols = st.columns(len(st.session_state.compare_list))
|
| 685 |
+
for idx, software in enumerate(st.session_state.compare_list):
|
| 686 |
+
with cols[idx]:
|
| 687 |
+
st.markdown(f"**{software['name']}**")
|
| 688 |
+
|
| 689 |
+
# Calculate scores
|
| 690 |
+
price_score = 5.0 - (software["pricing_max"] / 50) # Simple price score
|
| 691 |
+
feature_score = min(5.0, len(software["features"]) / 2)
|
| 692 |
+
integration_score = min(5.0, len(software["integrations"]))
|
| 693 |
+
|
| 694 |
+
st.metric("Price Score", f"{max(1, price_score):.1f}/5")
|
| 695 |
+
st.metric("Feature Score", f"{feature_score:.1f}/5")
|
| 696 |
+
st.metric("Integration", f"{integration_score:.1f}/5")
|
| 697 |
+
|
| 698 |
+
elif page == "π‘ Strategy Optimizer":
|
| 699 |
+
st.markdown('<h1 class="main-header">π‘ Strategy Combination Optimizer</h1>', unsafe_allow_html=True)
|
| 700 |
+
st.markdown("### Find the optimal software stack for your organization")
|
| 701 |
+
|
| 702 |
+
# Input parameters
|
| 703 |
+
st.markdown("#### π― Your Requirements")
|
| 704 |
+
col1, col2, col3 = st.columns(3)
|
| 705 |
+
with col1:
|
| 706 |
+
team_size = st.number_input("Team Size", 1, 1000, 50)
|
| 707 |
+
with col2:
|
| 708 |
+
monthly_budget = st.number_input("Monthly Budget ($)", 100, 100000, 5000)
|
| 709 |
+
with col3:
|
| 710 |
+
optimization_goal = st.selectbox("Optimization Goal", [
|
| 711 |
+
"Minimize Cost",
|
| 712 |
+
"Maximize Features",
|
| 713 |
+
"Best Integration",
|
| 714 |
+
"Balanced Approach"
|
| 715 |
+
])
|
| 716 |
+
|
| 717 |
+
required_categories = st.multiselect("Required Software Categories", [
|
| 718 |
+
"Team Communication", "Video Conferencing", "Project Management",
|
| 719 |
+
"Email & Productivity", "CRM", "Cloud Storage", "Developer Tools",
|
| 720 |
+
"Design Tools", "Knowledge Management"
|
| 721 |
+
])
|
| 722 |
+
|
| 723 |
+
if st.button("π Generate Optimization Strategies", type="primary"):
|
| 724 |
+
with st.spinner("AI is optimizing your software stack..."):
|
| 725 |
+
prompt = f"""Create 3 optimal software stack strategies based on these requirements:
|
| 726 |
+
|
| 727 |
+
Requirements:
|
| 728 |
+
- Team Size: {team_size} people
|
| 729 |
+
- Monthly Budget: ${monthly_budget}
|
| 730 |
+
- Optimization Goal: {optimization_goal}
|
| 731 |
+
- Required Categories: {', '.join(required_categories)}
|
| 732 |
+
|
| 733 |
+
Available Software:
|
| 734 |
+
{json.dumps(SOFTWARE_DATABASE, indent=2)}
|
| 735 |
+
|
| 736 |
+
Generate 3 strategies:
|
| 737 |
+
|
| 738 |
+
1. **All-in-One Solution**: Using comprehensive platforms (Microsoft 365, Google Workspace, etc.)
|
| 739 |
+
2. **Best-of-Breed Combination**: Mix of specialized best-in-class tools
|
| 740 |
+
3. **Budget-Optimized Hybrid**: Balance between functionality and cost
|
| 741 |
+
|
| 742 |
+
For each strategy provide:
|
| 743 |
+
- Recommended software list
|
| 744 |
+
- Total monthly cost
|
| 745 |
+
- Feature coverage percentage
|
| 746 |
+
- Integration difficulty score (1-10)
|
| 747 |
+
- Pros and cons
|
| 748 |
+
- Learning curve assessment
|
| 749 |
+
- ROI timeline
|
| 750 |
+
"""
|
| 751 |
+
|
| 752 |
+
response = call_openai(prompt)
|
| 753 |
+
|
| 754 |
+
st.success("β
Strategies Generated!")
|
| 755 |
+
st.markdown(response)
|
| 756 |
+
|
| 757 |
+
# Visual comparison
|
| 758 |
+
st.markdown("---")
|
| 759 |
+
st.markdown("### π Strategy Comparison Dashboard")
|
| 760 |
+
|
| 761 |
+
# Mock data for visualization
|
| 762 |
+
strategies = {
|
| 763 |
+
"All-in-One": {"cost": monthly_budget * 0.8, "features": 85, "integration": 9, "learning": 6},
|
| 764 |
+
"Best-of-Breed": {"cost": monthly_budget * 1.1, "features": 95, "integration": 6, "learning": 7},
|
| 765 |
+
"Budget-Optimized": {"cost": monthly_budget * 0.6, "features": 75, "integration": 7, "learning": 5}
|
| 766 |
+
}
|
| 767 |
+
|
| 768 |
+
col1, col2, col3 = st.columns(3)
|
| 769 |
+
|
| 770 |
+
for idx, (strategy_name, metrics) in enumerate(strategies.items()):
|
| 771 |
+
with [col1, col2, col3][idx]:
|
| 772 |
+
st.markdown(f"""
|
| 773 |
+
<div style='background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 774 |
+
padding: 1.5rem; border-radius: 10px; color: white;'>
|
| 775 |
+
<h3 style='margin: 0; color: white;'>{strategy_name}</h3>
|
| 776 |
+
<p style='margin: 0.5rem 0 0 0; opacity: 0.9;'>Strategy {idx + 1}</p>
|
| 777 |
+
</div>
|
| 778 |
+
""", unsafe_allow_html=True)
|
| 779 |
+
|
| 780 |
+
st.metric("Monthly Cost", f"${metrics['cost']:.0f}")
|
| 781 |
+
st.metric("Feature Coverage", f"{metrics['features']}%")
|
| 782 |
+
st.metric("Integration Score", f"{metrics['integration']}/10")
|
| 783 |
+
st.metric("Learning Curve", f"{metrics['learning']}/10")
|
| 784 |
+
|
| 785 |
+
st.button(f"Select {strategy_name}", key=f"select_{strategy_name}")
|
| 786 |
+
|
| 787 |
+
# Comparison radar chart
|
| 788 |
+
st.markdown("#### π Multi-Dimensional Comparison")
|
| 789 |
+
|
| 790 |
+
fig = go.Figure()
|
| 791 |
+
|
| 792 |
+
for strategy_name, metrics in strategies.items():
|
| 793 |
+
fig.add_trace(go.Scatterpolar(
|
| 794 |
+
r=[
|
| 795 |
+
(monthly_budget - metrics['cost']) / monthly_budget * 100, # Cost efficiency
|
| 796 |
+
metrics['features'],
|
| 797 |
+
metrics['integration'] * 10,
|
| 798 |
+
(10 - metrics['learning']) * 10, # Ease of learning (inverted)
|
| 799 |
+
],
|
| 800 |
+
theta=['Cost Efficiency', 'Features', 'Integration', 'Ease of Use'],
|
| 801 |
+
fill='toself',
|
| 802 |
+
name=strategy_name
|
| 803 |
+
))
|
| 804 |
+
|
| 805 |
+
fig.update_layout(
|
| 806 |
+
polar=dict(radialaxis=dict(visible=True, range=[0, 100])),
|
| 807 |
+
showlegend=True,
|
| 808 |
+
height=500
|
| 809 |
+
)
|
| 810 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 811 |
+
|
| 812 |
+
elif page == "π€ Negotiation Assistant":
|
| 813 |
+
st.markdown('<h1 class="main-header">π€ AI Negotiation Assistant</h1>', unsafe_allow_html=True)
|
| 814 |
+
st.markdown("### Get the best deals with data-driven negotiation strategies")
|
| 815 |
+
|
| 816 |
+
tab1, tab2, tab3, tab4 = st.tabs([
|
| 817 |
+
"π Market Benchmarks", "π¬ Script Generator", "π
Best Timing", "π Contract Analysis"
|
| 818 |
+
])
|
| 819 |
+
|
| 820 |
+
with tab1:
|
| 821 |
+
st.markdown("### π Market Price Benchmarks")
|
| 822 |
+
|
| 823 |
+
col1, col2 = st.columns([1, 2])
|
| 824 |
+
|
| 825 |
+
with col1:
|
| 826 |
+
selected_software_nego = st.selectbox(
|
| 827 |
+
"Select Software",
|
| 828 |
+
[s["name"] for s in SOFTWARE_DATABASE]
|
| 829 |
+
)
|
| 830 |
+
company_size_nego = st.selectbox("Company Size", ["1-10", "11-50", "51-200", "201-1000", "1000+"])
|
| 831 |
+
contract_term = st.selectbox("Contract Term", ["Monthly", "1 Year", "2 Years", "3 Years"])
|
| 832 |
+
|
| 833 |
+
with col2:
|
| 834 |
+
software_nego = next(s for s in SOFTWARE_DATABASE if s["name"] == selected_software_nego)
|
| 835 |
+
|
| 836 |
+
st.markdown(f"#### {software_nego['name']} Pricing Intelligence")
|
| 837 |
+
|
| 838 |
+
col1, col2, col3 = st.columns(3)
|
| 839 |
+
with col1:
|
| 840 |
+
st.metric("List Price", f"${software_nego['pricing_max']}/user/mo")
|
| 841 |
+
with col2:
|
| 842 |
+
discount = 0.15 if software_nego["negotiable"] else 0
|
| 843 |
+
st.metric("Typical Discount", f"{discount*100:.0f}%", "Negotiable" if software_nego["negotiable"] else "Fixed")
|
| 844 |
+
with col3:
|
| 845 |
+
negotiated_price = software_nego['pricing_max'] * (1 - discount)
|
| 846 |
+
st.metric("Target Price", f"${negotiated_price:.2f}/user/mo")
|
| 847 |
+
|
| 848 |
+
# Benchmark chart
|
| 849 |
+
st.markdown("#### π° Price by Company Size")
|
| 850 |
+
benchmark_data = pd.DataFrame({
|
| 851 |
+
'Company Size': ['1-10', '11-50', '51-200', '201-1000', '1000+'],
|
| 852 |
+
'Average Price': [
|
| 853 |
+
software_nego['pricing_max'],
|
| 854 |
+
software_nego['pricing_max'] * 0.95,
|
| 855 |
+
software_nego['pricing_max'] * 0.90,
|
| 856 |
+
software_nego['pricing_max'] * 0.85,
|
| 857 |
+
software_nego['pricing_max'] * 0.75
|
| 858 |
+
],
|
| 859 |
+
'Discount %': [0, 5, 10, 15, 25]
|
| 860 |
+
})
|
| 861 |
+
|
| 862 |
+
fig = px.bar(benchmark_data, x='Company Size', y='Average Price',
|
| 863 |
+
title='Average Negotiated Price by Company Size',
|
| 864 |
+
color='Discount %',
|
| 865 |
+
color_continuous_scale='RdYlGn')
|
| 866 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 867 |
+
|
| 868 |
+
# Similar companies data
|
| 869 |
+
st.markdown("#### π’ Similar Companies Paid")
|
| 870 |
+
similar_companies = pd.DataFrame({
|
| 871 |
+
'Company': [f'Company {i}' for i in range(1, 6)],
|
| 872 |
+
'Size': ['45', '52', '48', '55', '50'],
|
| 873 |
+
'Industry': ['Tech', 'Finance', 'Healthcare', 'Tech', 'Education'],
|
| 874 |
+
'Price/User': [f'${software_nego["pricing_max"] * (0.85 + i*0.02):.2f}' for i in range(5)],
|
| 875 |
+
'Contract': ['2 Year', '1 Year', '3 Year', '2 Year', '1 Year']
|
| 876 |
+
})
|
| 877 |
+
st.dataframe(similar_companies, use_container_width=True)
|
| 878 |
+
|
| 879 |
+
with tab2:
|
| 880 |
+
st.markdown("### π¬ AI Negotiation Script Generator")
|
| 881 |
+
|
| 882 |
+
st.markdown("#### Your Negotiation Context")
|
| 883 |
+
col1, col2 = st.columns(2)
|
| 884 |
+
|
| 885 |
+
with col1:
|
| 886 |
+
nego_software = st.selectbox("Software to Negotiate", [s["name"] for s in SOFTWARE_DATABASE], key="script_software")
|
| 887 |
+
num_licenses = st.number_input("Number of Licenses", 1, 1000, 50, key="script_licenses")
|
| 888 |
+
current_price = st.number_input("Current Quote (per user/month)", 0.0, 1000.0, 20.0, key="script_price")
|
| 889 |
+
|
| 890 |
+
with col2:
|
| 891 |
+
contract_length_nego = st.selectbox("Proposed Contract Length", ["1 Year", "2 Years", "3 Years"], key="script_contract")
|
| 892 |
+
leverage_points = st.multiselect("Your Leverage", [
|
| 893 |
+
"Multiple vendors being evaluated",
|
| 894 |
+
"Existing customer",
|
| 895 |
+
"Large team size",
|
| 896 |
+
"Multi-year commitment",
|
| 897 |
+
"Competitor offers better price",
|
| 898 |
+
"Budget constraints",
|
| 899 |
+
"Referral potential"
|
| 900 |
+
])
|
| 901 |
+
negotiation_style = st.selectbox("Negotiation Style", ["Professional", "Friendly", "Assertive"])
|
| 902 |
+
|
| 903 |
+
if st.button("π― Generate Negotiation Script", type="primary"):
|
| 904 |
+
with st.spinner("Crafting your personalized negotiation strategy..."):
|
| 905 |
+
prompt = f"""Create a detailed negotiation script for:
|
| 906 |
+
|
| 907 |
+
Context:
|
| 908 |
+
- Software: {nego_software}
|
| 909 |
+
- Number of Licenses: {num_licenses}
|
| 910 |
+
- Current Quote: ${current_price}/user/month
|
| 911 |
+
- Desired Contract: {contract_length_nego}
|
| 912 |
+
- Leverage Points: {', '.join(leverage_points)}
|
| 913 |
+
- Style: {negotiation_style}
|
| 914 |
+
|
| 915 |
+
Generate:
|
| 916 |
+
1. **Email Template**: Initial negotiation email
|
| 917 |
+
2. **Call Script**: Talking points for sales call
|
| 918 |
+
3. **Counter-Offer Strategy**: Specific discount requests with justification
|
| 919 |
+
4. **Fallback Positions**: Alternative asks if primary request is denied
|
| 920 |
+
5. **Closing Tactics**: How to finalize the deal
|
| 921 |
+
6. **Common Objections & Responses**: How to handle pushback
|
| 922 |
+
|
| 923 |
+
Make it professional, specific, and actionable. Include actual price points and percentages."""
|
| 924 |
+
|
| 925 |
+
response = call_openai(prompt, system_prompt="You are an expert B2B software negotiation consultant with 20 years of experience.")
|
| 926 |
+
|
| 927 |
+
st.success("β
Negotiation Script Generated!")
|
| 928 |
+
st.markdown(response)
|
| 929 |
+
|
| 930 |
+
# Download button
|
| 931 |
+
st.download_button(
|
| 932 |
+
label="π₯ Download Script",
|
| 933 |
+
data=response,
|
| 934 |
+
file_name=f"negotiation_script_{nego_software}.txt",
|
| 935 |
+
mime="text/plain"
|
| 936 |
+
)
|
| 937 |
+
|
| 938 |
+
with tab3:
|
| 939 |
+
st.markdown("### π
Best Time to Purchase")
|
| 940 |
+
|
| 941 |
+
col1, col2 = st.columns(2)
|
| 942 |
+
|
| 943 |
+
with col1:
|
| 944 |
+
st.markdown("#### ποΈ Optimal Purchase Timing")
|
| 945 |
+
|
| 946 |
+
timing_data = pd.DataFrame({
|
| 947 |
+
'Period': ['Q1', 'Q2', 'Q3', 'Q4'],
|
| 948 |
+
'Discount Potential': [15, 10, 12, 25],
|
| 949 |
+
'Sales Pressure': ['Low', 'Medium', 'Medium', 'Very High']
|
| 950 |
+
})
|
| 951 |
+
|
| 952 |
+
fig = px.bar(timing_data, x='Period', y='Discount Potential',
|
| 953 |
+
title='Average Discount Potential by Quarter',
|
| 954 |
+
color='Discount Potential',
|
| 955 |
+
color_continuous_scale='RdYlGn')
|
| 956 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 957 |
+
|
| 958 |
+
st.info("**π‘ Best Time**: End of Q4 (December) when sales teams are closing their year")
|
| 959 |
+
|
| 960 |
+
st.markdown("#### π Current Opportunities")
|
| 961 |
+
current_month = datetime.now().strftime("%B")
|
| 962 |
+
st.success(f"**Current Month**: {current_month}")
|
| 963 |
+
|
| 964 |
+
if "December" in current_month or "June" in current_month:
|
| 965 |
+
st.success("π **EXCELLENT TIME TO NEGOTIATE!** End of fiscal period for many companies.")
|
| 966 |
+
elif "September" in current_month or "March" in current_month:
|
| 967 |
+
st.info("β
**GOOD TIME** - End of quarter, moderate pressure on sales teams.")
|
| 968 |
+
else:
|
| 969 |
+
st.warning("β° Consider waiting until end of quarter for better deals.")
|
| 970 |
+
|
| 971 |
+
with col2:
|
| 972 |
+
st.markdown("#### π― Timing Strategies")
|
| 973 |
+
|
| 974 |
+
strategies = [
|
| 975 |
+
{"strategy": "End of Quarter", "potential": "15-20%", "risk": "Low"},
|
| 976 |
+
{"strategy": "End of Fiscal Year", "potential": "20-30%", "risk": "Low"},
|
| 977 |
+
{"strategy": "During Product Launch", "potential": "10-15%", "risk": "Medium"},
|
| 978 |
+
{"strategy": "Competitor Announcement", "potential": "15-25%", "risk": "Medium"},
|
| 979 |
+
{"strategy": "Contract Renewal", "potential": "10-20%", "risk": "Low"}
|
| 980 |
+
]
|
| 981 |
+
|
| 982 |
+
for strategy in strategies:
|
| 983 |
+
with st.expander(f"**{strategy['strategy']}** - {strategy['potential']} discount"):
|
| 984 |
+
st.markdown(f"**Discount Potential**: {strategy['potential']}")
|
| 985 |
+
st.markdown(f"**Risk Level**: {strategy['risk']}")
|
| 986 |
+
|
| 987 |
+
st.markdown("#### π Seasonal Promotions")
|
| 988 |
+
st.markdown("""
|
| 989 |
+
- **Black Friday/Cyber Monday**: Special promotions
|
| 990 |
+
- **New Year**: Fresh budgets, soft launches
|
| 991 |
+
- **Summer**: Mid-year deals
|
| 992 |
+
- **Back to School**: Education-focused promotions
|
| 993 |
+
""")
|
| 994 |
+
|
| 995 |
+
with tab4:
|
| 996 |
+
st.markdown("### π AI Contract Analysis")
|
| 997 |
+
|
| 998 |
+
st.markdown("#### Upload or Paste Your Contract")
|
| 999 |
+
|
| 1000 |
+
input_method = st.radio("Input Method", ["Paste Text", "Upload File"])
|
| 1001 |
+
|
| 1002 |
+
contract_text = ""
|
| 1003 |
+
if input_method == "Paste Text":
|
| 1004 |
+
contract_text = st.text_area("Paste Contract Text", height=200,
|
| 1005 |
+
placeholder="Paste your software contract or terms of service here...")
|
| 1006 |
+
else:
|
| 1007 |
+
uploaded_file = st.file_uploader("Upload Contract (PDF or TXT)", type=["pdf", "txt"])
|
| 1008 |
+
if uploaded_file:
|
| 1009 |
+
contract_text = uploaded_file.read().decode("utf-8", errors="ignore")
|
| 1010 |
+
st.success("Contract uploaded!")
|
| 1011 |
+
|
| 1012 |
+
if st.button("π Analyze Contract", type="primary") and contract_text:
|
| 1013 |
+
with st.spinner("AI is analyzing your contract..."):
|
| 1014 |
+
prompt = f"""Analyze this software contract and identify:
|
| 1015 |
+
|
| 1016 |
+
Contract Text:
|
| 1017 |
+
{contract_text[:4000]} # Limit for token size
|
| 1018 |
+
|
| 1019 |
+
Provide detailed analysis:
|
| 1020 |
+
|
| 1021 |
+
1. **π¨ Risk Factors**:
|
| 1022 |
+
- Automatic renewal clauses
|
| 1023 |
+
- Price increase rights
|
| 1024 |
+
- Unfavorable termination terms
|
| 1025 |
+
- Data ownership issues
|
| 1026 |
+
- Liability limitations
|
| 1027 |
+
|
| 1028 |
+
2. **β
Compliance Check**:
|
| 1029 |
+
- GDPR compliance
|
| 1030 |
+
- SOC2/ISO27001 mentions
|
| 1031 |
+
- Data privacy protections
|
| 1032 |
+
- SLA commitments
|
| 1033 |
+
|
| 1034 |
+
3. **π° Financial Terms**:
|
| 1035 |
+
- Payment terms
|
| 1036 |
+
- Refund policy
|
| 1037 |
+
- Price adjustment clauses
|
| 1038 |
+
- Hidden fees
|
| 1039 |
+
|
| 1040 |
+
4. **βοΈ Legal Concerns**:
|
| 1041 |
+
- Jurisdiction and governing law
|
| 1042 |
+
- Dispute resolution
|
| 1043 |
+
- Indemnification clauses
|
| 1044 |
+
- IP rights
|
| 1045 |
+
|
| 1046 |
+
5. **βοΈ Recommendations**:
|
| 1047 |
+
- Terms to negotiate
|
| 1048 |
+
- Red flags to address
|
| 1049 |
+
- Missing protections
|
| 1050 |
+
- Overall risk score (1-10)
|
| 1051 |
+
|
| 1052 |
+
Be specific and highlight exact problematic clauses."""
|
| 1053 |
+
|
| 1054 |
+
response = call_openai(prompt, system_prompt="You are an expert software contract attorney specializing in SaaS agreements.")
|
| 1055 |
+
|
| 1056 |
+
st.success("β
Contract Analysis Complete!")
|
| 1057 |
+
|
| 1058 |
+
# Display in organized sections
|
| 1059 |
+
col1, col2 = st.columns(2)
|
| 1060 |
+
|
| 1061 |
+
with col1:
|
| 1062 |
+
st.markdown("### π¨ Risk Assessment")
|
| 1063 |
+
st.error("**High Risk Items Found**")
|
| 1064 |
+
st.markdown(response[:len(response)//2])
|
| 1065 |
+
|
| 1066 |
+
with col2:
|
| 1067 |
+
st.markdown("### β
Recommendations")
|
| 1068 |
+
st.info("**Action Items**")
|
| 1069 |
+
st.markdown(response[len(response)//2:])
|
| 1070 |
+
|
| 1071 |
+
st.download_button(
|
| 1072 |
+
label="π₯ Download Full Analysis",
|
| 1073 |
+
data=response,
|
| 1074 |
+
file_name="contract_analysis.txt",
|
| 1075 |
+
mime="text/plain"
|
| 1076 |
+
)
|
| 1077 |
+
|
| 1078 |
+
elif page == "π Usage Analytics":
|
| 1079 |
+
st.markdown('<h1 class="main-header">π Usage Monitoring & Optimization</h1>', unsafe_allow_html=True)
|
| 1080 |
+
st.markdown("### Track usage and identify cost-saving opportunities")
|
| 1081 |
+
|
| 1082 |
+
# Dashboard metrics
|
| 1083 |
+
col1, col2, col3, col4 = st.columns(4)
|
| 1084 |
+
|
| 1085 |
+
with col1:
|
| 1086 |
+
st.metric("Total Monthly Spend", "$45,000", "-12% vs last month", delta_color="normal")
|
| 1087 |
+
with col2:
|
| 1088 |
+
st.metric("Active Subscriptions", "23", "+2", delta_color="inverse")
|
| 1089 |
+
with col3:
|
| 1090 |
+
st.metric("Unused Licenses", "47", "-5", delta_color="normal")
|
| 1091 |
+
with col4:
|
| 1092 |
+
st.metric("Potential Savings", "$8,400", "+$1,200", delta_color="normal")
|
| 1093 |
+
|
| 1094 |
+
st.markdown("---")
|
| 1095 |
+
|
| 1096 |
+
tab1, tab2, tab3, tab4 = st.tabs([
|
| 1097 |
+
"π Overview", "π° Cost Analysis", "π₯ License Utilization", "π― Optimization"
|
| 1098 |
+
])
|
| 1099 |
+
|
| 1100 |
+
with tab1:
|
| 1101 |
+
st.markdown("### π Software Portfolio Overview")
|
| 1102 |
+
|
| 1103 |
+
# Mock usage data
|
| 1104 |
+
usage_data = []
|
| 1105 |
+
for software in SOFTWARE_DATABASE[:8]:
|
| 1106 |
+
usage_data.append({
|
| 1107 |
+
"Software": software["name"],
|
| 1108 |
+
"Licenses": 50,
|
| 1109 |
+
"Active Users": int(50 * (0.6 + 0.3 * (hash(software["name"]) % 10) / 10)),
|
| 1110 |
+
"Monthly Cost": software["pricing_max"] * 50,
|
| 1111 |
+
"Category": software["category"]
|
| 1112 |
+
})
|
| 1113 |
+
|
| 1114 |
+
df_usage = pd.DataFrame(usage_data)
|
| 1115 |
+
df_usage["Utilization %"] = (df_usage["Active Users"] / df_usage["Licenses"] * 100).round(1)
|
| 1116 |
+
df_usage["Waste"] = df_usage["Monthly Cost"] * (1 - df_usage["Active Users"] / df_usage["Licenses"])
|
| 1117 |
+
|
| 1118 |
+
# Usage chart
|
| 1119 |
+
col1, col2 = st.columns(2)
|
| 1120 |
+
|
| 1121 |
+
with col1:
|
| 1122 |
+
fig = px.bar(df_usage, x="Software", y="Utilization %",
|
| 1123 |
+
title="License Utilization by Software",
|
| 1124 |
+
color="Utilization %",
|
| 1125 |
+
color_continuous_scale="RdYlGn",
|
| 1126 |
+
range_color=[0, 100])
|
| 1127 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 1128 |
+
|
| 1129 |
+
with col2:
|
| 1130 |
+
fig = px.pie(df_usage, values="Monthly Cost", names="Software",
|
| 1131 |
+
title="Cost Distribution")
|
| 1132 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 1133 |
+
|
| 1134 |
+
# Detailed table
|
| 1135 |
+
st.markdown("#### π Detailed Usage Report")
|
| 1136 |
+
st.dataframe(
|
| 1137 |
+
df_usage.style.format({
|
| 1138 |
+
"Monthly Cost": "${:,.0f}",
|
| 1139 |
+
"Waste": "${:,.0f}",
|
| 1140 |
+
"Utilization %": "{:.1f}%"
|
| 1141 |
+
}).background_gradient(subset=["Utilization %"], cmap="RdYlGn", vmin=0, vmax=100),
|
| 1142 |
+
use_container_width=True
|
| 1143 |
+
)
|
| 1144 |
+
|
| 1145 |
+
with tab2:
|
| 1146 |
+
st.markdown("### π° Cost Analysis & Trends")
|
| 1147 |
+
|
| 1148 |
+
# Monthly spend trend
|
| 1149 |
+
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
|
| 1150 |
+
spend_data = pd.DataFrame({
|
| 1151 |
+
'Month': months,
|
| 1152 |
+
'Spend': [42000, 43500, 45000, 46000, 44500, 45000],
|
| 1153 |
+
'Budget': [50000] * 6
|
| 1154 |
+
})
|
| 1155 |
+
|
| 1156 |
+
fig = go.Figure()
|
| 1157 |
+
fig.add_trace(go.Scatter(x=spend_data['Month'], y=spend_data['Spend'],
|
| 1158 |
+
mode='lines+markers', name='Actual Spend',
|
| 1159 |
+
line=dict(color='#667eea', width=3)))
|
| 1160 |
+
fig.add_trace(go.Scatter(x=spend_data['Month'], y=spend_data['Budget'],
|
| 1161 |
+
mode='lines', name='Budget',
|
| 1162 |
+
line=dict(color='red', width=2, dash='dash')))
|
| 1163 |
+
fig.update_layout(title='Monthly Software Spend Trend', height=400)
|
| 1164 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 1165 |
+
|
| 1166 |
+
# Cost by category
|
| 1167 |
+
col1, col2 = st.columns(2)
|
| 1168 |
+
|
| 1169 |
+
with col1:
|
| 1170 |
+
category_spend = df_usage.groupby('Category')['Monthly Cost'].sum().reset_index()
|
| 1171 |
+
fig = px.bar(category_spend, x='Category', y='Monthly Cost',
|
| 1172 |
+
title='Spend by Category',
|
| 1173 |
+
color='Monthly Cost',
|
| 1174 |
+
color_continuous_scale='Blues')
|
| 1175 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 1176 |
+
|
| 1177 |
+
with col2:
|
| 1178 |
+
st.markdown("#### π΅ Top 5 Expenses")
|
| 1179 |
+
top_expenses = df_usage.nlargest(5, 'Monthly Cost')[['Software', 'Monthly Cost']]
|
| 1180 |
+
for idx, row in top_expenses.iterrows():
|
| 1181 |
+
st.metric(row['Software'], f"${row['Monthly Cost']:,.0f}/mo")
|
| 1182 |
+
|
| 1183 |
+
with tab3:
|
| 1184 |
+
st.markdown("### π₯ License Utilization Analysis")
|
| 1185 |
+
|
| 1186 |
+
# Utilization heatmap
|
| 1187 |
+
st.markdown("#### π Utilization Heatmap")
|
| 1188 |
+
|
| 1189 |
+
# Mock weekly usage data
|
| 1190 |
+
weeks = ['Week 1', 'Week 2', 'Week 3', 'Week 4']
|
| 1191 |
+
software_list = df_usage['Software'].tolist()[:6]
|
| 1192 |
+
|
| 1193 |
+
heatmap_data = []
|
| 1194 |
+
for software in software_list:
|
| 1195 |
+
weekly_usage = [int(50 + (hash(software + week) % 30)) for week in weeks]
|
| 1196 |
+
heatmap_data.append(weekly_usage)
|
| 1197 |
+
|
| 1198 |
+
fig = go.Figure(data=go.Heatmap(
|
| 1199 |
+
z=heatmap_data,
|
| 1200 |
+
x=weeks,
|
| 1201 |
+
y=software_list,
|
| 1202 |
+
colorscale='RdYlGn',
|
| 1203 |
+
text=heatmap_data,
|
| 1204 |
+
texttemplate='%{text}%',
|
| 1205 |
+
textfont={"size": 10}
|
| 1206 |
+
))
|
| 1207 |
+
fig.update_layout(title='Usage Patterns Over Time (%)', height=400)
|
| 1208 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 1209 |
+
|
| 1210 |
+
# Inactive users
|
| 1211 |
+
st.markdown("#### β οΈ Inactive License Alert")
|
| 1212 |
+
|
| 1213 |
+
inactive_data = []
|
| 1214 |
+
for software in SOFTWARE_DATABASE[:5]:
|
| 1215 |
+
inactive_count = int(50 * (0.1 + 0.2 * (hash(software["name"]) % 10) / 10))
|
| 1216 |
+
if inactive_count > 5:
|
| 1217 |
+
inactive_data.append({
|
| 1218 |
+
"Software": software["name"],
|
| 1219 |
+
"Inactive Licenses": inactive_count,
|
| 1220 |
+
"Potential Savings": f"${inactive_count * software['pricing_max']:.0f}/mo",
|
| 1221 |
+
"Last Activity": f"{hash(software['name']) % 30 + 30} days ago"
|
| 1222 |
+
})
|
| 1223 |
+
|
| 1224 |
+
df_inactive = pd.DataFrame(inactive_data)
|
| 1225 |
+
|
| 1226 |
+
for idx, row in df_inactive.iterrows():
|
| 1227 |
+
with st.expander(f"β οΈ **{row['Software']}** - {row['Inactive Licenses']} inactive licenses"):
|
| 1228 |
+
col1, col2, col3 = st.columns(3)
|
| 1229 |
+
with col1:
|
| 1230 |
+
st.metric("Inactive Licenses", row['Inactive Licenses'])
|
| 1231 |
+
with col2:
|
| 1232 |
+
st.metric("Potential Savings", row['Potential Savings'])
|
| 1233 |
+
with col3:
|
| 1234 |
+
st.metric("Last Activity", row['Last Activity'])
|
| 1235 |
+
|
| 1236 |
+
if st.button(f"Review Users for {row['Software']}", key=f"review_{idx}"):
|
| 1237 |
+
st.info("User review interface would open here in production")
|
| 1238 |
+
|
| 1239 |
+
with tab4:
|
| 1240 |
+
st.markdown("### π― AI-Powered Optimization Recommendations")
|
| 1241 |
+
|
| 1242 |
+
if st.button("π€ Generate Optimization Report", type="primary"):
|
| 1243 |
+
with st.spinner("AI is analyzing your usage data..."):
|
| 1244 |
+
prompt = f"""Analyze this software usage data and provide optimization recommendations:
|
| 1245 |
+
|
| 1246 |
+
Current Software Portfolio:
|
| 1247 |
+
{df_usage.to_json(orient='records')}
|
| 1248 |
+
|
| 1249 |
+
Total Monthly Spend: $45,000
|
| 1250 |
+
Unused Licenses: 47
|
| 1251 |
+
Average Utilization: {df_usage['Utilization %'].mean():.1f}%
|
| 1252 |
+
|
| 1253 |
+
Provide:
|
| 1254 |
+
1. **Immediate Actions** (Quick wins for cost savings)
|
| 1255 |
+
2. **Consolidation Opportunities** (Software that can be replaced/combined)
|
| 1256 |
+
3. **Right-sizing Recommendations** (License adjustments)
|
| 1257 |
+
4. **Alternative Solutions** (Better value options)
|
| 1258 |
+
5. **Implementation Priority** (What to tackle first)
|
| 1259 |
+
6. **Expected Savings** (Quantify the impact)
|
| 1260 |
+
|
| 1261 |
+
Be specific with dollar amounts and actionable steps."""
|
| 1262 |
+
|
| 1263 |
+
response = call_openai(prompt)
|
| 1264 |
+
|
| 1265 |
+
st.success("β
Optimization Report Generated!")
|
| 1266 |
+
st.markdown(response)
|
| 1267 |
+
|
| 1268 |
+
st.markdown("---")
|
| 1269 |
+
st.markdown("#### π‘ Quick Wins")
|
| 1270 |
+
|
| 1271 |
+
col1, col2 = st.columns(2)
|
| 1272 |
+
|
| 1273 |
+
with col1:
|
| 1274 |
+
st.warning("**β οΈ Remove Unused Licenses**")
|
| 1275 |
+
st.markdown("47 inactive licenses detected")
|
| 1276 |
+
st.markdown("**Potential Savings**: $8,400/year")
|
| 1277 |
+
st.button("Start License Cleanup", key="cleanup")
|
| 1278 |
+
|
| 1279 |
+
with col2:
|
| 1280 |
+
st.info("**π° Bundle Opportunity**")
|
| 1281 |
+
st.markdown("Consolidate 4 tools into Microsoft 365")
|
| 1282 |
+
st.markdown("**Potential Savings**: $3,840/year")
|
| 1283 |
+
st.button("Explore Bundle", key="bundle")
|
| 1284 |
+
|
| 1285 |
+
# Optimization roadmap
|
| 1286 |
+
st.markdown("#### πΊοΈ Optimization Roadmap")
|
| 1287 |
+
|
| 1288 |
+
roadmap = [
|
| 1289 |
+
{"Month": "Month 1", "Action": "Remove inactive licenses", "Savings": "$700/mo"},
|
| 1290 |
+
{"Month": "Month 2", "Action": "Renegotiate Slack contract", "Savings": "$300/mo"},
|
| 1291 |
+
{"Month": "Month 3", "Action": "Switch to annual billing", "Savings": "$450/mo"},
|
| 1292 |
+
{"Month": "Month 4", "Action": "Consolidate to Microsoft 365", "Savings": "$320/mo"},
|
| 1293 |
+
]
|
| 1294 |
+
|
| 1295 |
+
for item in roadmap:
|
| 1296 |
+
st.success(f"**{item['Month']}**: {item['Action']} β {item['Savings']} savings")
|
| 1297 |
+
|
| 1298 |
+
# Footer
|
| 1299 |
+
st.markdown("---")
|
| 1300 |
+
st.markdown("""
|
| 1301 |
+
<div style='text-align: center; color: #666; padding: 2rem;'>
|
| 1302 |
+
<p><strong>SoftwareGrid AI</strong> - Intelligent Software Procurement Platform</p>
|
| 1303 |
+
<p>Powered by Claude AI | Made with Streamlit</p>
|
| 1304 |
+
</div>
|
| 1305 |
+
""", unsafe_allow_html=True)
|