Spaces:
Sleeping
Sleeping
| def detect_intent(user_input: str) -> str: | |
| q = user_input.lower() | |
| # Company identity | |
| if any(k in q for k in [ | |
| "what is futurelab", | |
| "who are you", | |
| "about futurelab", | |
| "company", | |
| "what is this company" | |
| ]): | |
| return "profile" | |
| # Focus / mission | |
| if any(k in q for k in [ | |
| "focus", | |
| "mission", | |
| "goal", | |
| "what do you focus on" | |
| ]): | |
| return "focus" | |
| # Consulting | |
| if any(k in q for k in [ | |
| "consulting", | |
| "consult", | |
| "advisory" | |
| ]): | |
| return "consulting" | |
| # AI adoption / helping organizations | |
| if any(k in q for k in [ | |
| "help organizations", | |
| "how do you help", | |
| "adopt ai", | |
| "ai adoption" | |
| ]): | |
| return "adoption" | |
| # Global audience | |
| if any(k in q for k in [ | |
| "global", | |
| "worldwide", | |
| "international", | |
| "global audience", | |
| "different countries" | |
| ]): | |
| return "global" | |
| # Services | |
| if any(k in q for k in [ | |
| "services", | |
| "offer", | |
| "provide", | |
| "what do you do" | |
| ]): | |
| return "services" | |
| # Workshops / training | |
| if any(k in q for k in [ | |
| "workshop", | |
| "training", | |
| "education", | |
| "learn" | |
| ]): | |
| return "workshops" | |
| return "general" | |