Ask AI App Overview
Your intelligent workplace assistant β ask questions in plain English, get instant answers, and let AI agents take action across every app in your organization.
What Is Ask AI?
Ask AI is the central AI-powered assistant for the MangoApps Workforce platform. Instead of navigating between dozens of apps to find information or complete tasks, employees simply type (or speak) a natural language question and Ask AI routes it to the right specialized agent for an instant, accurate answer.
Behind the scenes, Ask AI uses a multi-stage intelligence pipeline: hybrid ML classification identifies what you need, 40+ domain-specific agents access the right data, and real-time WebSocket streaming delivers responses character-by-character so you never stare at a loading screen.
Core Value Proposition:
- π€ Natural Language Interface β Ask questions the way youβd ask a coworker, no menus or forms needed
- β‘ Real-Time Streaming β Responses stream live via WebSocket, character by character
- π― 40+ Specialized Agents β Each domain (scheduling, HR, service desk, etc.) has its own trained expert
- ποΈ Voice Mode β Hands-free conversations using speech-to-speech AI with configurable voices
- π§ Learns Over Time β Remembers your preferences and context across conversations
At a Glance
| π€ AI Agents | ποΈ Voice Modes | π± Platforms | π Access Levels |
|---|---|---|---|
| 40+ specialized domain agents | 13 voice options with configurable pace and style | Web, Mobile (iOS/Android), API | Employee, Manager, Admin |
Perfect For:
- π©βπΌ Employees β Check PTO balance, find passwords, view schedules, submit forms β all from one chat
- π¨βπΌ Managers β Get team reports, review performance data, check attendance, approve requests
- π’ HR Teams β Look up employee data, run headcount reports, check compliance, manage onboarding
- βοΈ Admins β Configure agent behavior, set guidelines, monitor usage analytics, manage guardrails
How It Works
Request Processing Pipeline
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ASK AI PROCESSING PIPELINE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββββββββββ β
β β USER β β HYBRID ML β β DOMAIN AGENT β β
β β MESSAGE βββββΆβ CLASSIFIER βββββΆβ ROUTING β β
β β β β β β β β
β β "How many β β Pattern Match β β 40+ specialized agents β β
β β PTO days β β β KNN Prototype β β each with domain- β β
β β left?" β β β LLM Fallback β β specific tools β β
β βββββββββββββ ββββββββββββββββββββ ββββββββββββ¬ββββββββββββββββ β
β β β
β ββββββββββββββββββββ βΌ β
β β WEBSOCKET β ββββββββββββββββββββββββββββ β
β β STREAMING ββββββ LLM RESPONSE β β
β β β β GENERATION β β
β β Character-by- β β β β
β β character to β β RAG + Knowledge Base β β
β β browser/mobile β β + API data + DB queries β β
β ββββββββββββββββββββ ββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Conversation Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CROSS-CLIENT CONVERSATION SYNC β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββββ ββββββββββββββββββββββ ββββββββββββββββ β
β β WEB β β AI CONVERSATION β β MOBILE β β
β β CLIENT ββββββββββΆβ (Single Active) ββββββββββ CLIENT β β
β β β β β β β β
β β Desktop β β β’ Session ID sync β β iOS/Android β β
β β Sidebar β β β’ JSONB messages β β Native App β β
β β Chat β β β’ Cross-client β β WebView β β
β ββββββββββββββ ββββββββββββββββββββββ ββββββββββββββββ β
β β β β β
β β βΌ β β
β β ββββββββββββββββββββββ β β
β ββββββββββββββββΆβ ACTION CABLE ββββββββββββββββ β
β β (WebSocket) β β
β β Real-time stream β β
β ββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β¨ Key Features
1. Natural Language Chat Interface
The primary interaction with Ask AI is through a conversational chat interface accessible from anywhere in the platform.
What You Can Do:
- Type questions in plain English (or any supported language)
- View streaming responses in real time as the AI thinks and generates answers
- Browse conversation history and continue where you left off
- Clear conversations or reset all memory including learned preferences
- Use the
/helpcommand to discover what Ask AI can do - Use
@mentionto direct questions to a specific agent (e.g.,@scheduling show my shifts)
How It Works:
- Messages are sent to the streaming endpoint, which enqueues an
AskAiStreamingJob - The job classifies intent using a hybrid ML router (Pattern Match β KNN β LLM disambiguation)
- Results stream back via ActionCable WebSocket connection, character by character
- Conversations automatically sync between web and mobile β start on desktop, continue on your phone
Role Access: All users
2. Specialized AI Agents
Ask AI routes questions to 40+ specialized domain agents, each trained to handle a specific area of the platform. Agents have access to domain-specific tools, APIs, and database queries to provide accurate, actionable answers.
Available Agent Domains Include:
- Scheduling β View shifts, request time off, check availability
- Timekeeping β Clock in/out status, timesheet queries, overtime tracking
- Leave Management β PTO balance, leave requests, approval status
- Service Desk β Create tickets, check ticket status, IT support
- Password Manager β Search and retrieve stored credentials
- Tasks β View assigned tasks, update status, create new tasks
- Performance Management (EPMS) β Review cycles, goals, performance data
- Recruiting β Job postings, candidate pipeline, interview schedules
- Employee Data β Profile info, directory lookups, team structure
- Compensation β Salary data, pay structure, compensation history
- Custom Reporting β Generate on-demand reports with charts and tables
- Training β Course enrollment, completions, certification status
- Onboarding / Offboarding β Checklist progress, pending tasks
- Forms β Submit forms, check form status, form assignments
- Surveys β Survey participation, results summaries
- OKR Hub β Objectives and key results tracking
- Benefits β Benefits enrollment, plan details
- Policy Hub / SOP Hub β Company policy lookups, standard procedures
- Safety Hub β Safety protocols, incident reporting
- Attendance β Attendance records, absence tracking
- Skills & Certifications β Skill profiles, certification expiry
- Succession Planning β Talent pools, readiness assessments
- Company Store β Points balance, item catalog, redemption
- Recognition β Give/receive recognition, points summary
- Asset Pro β Asset assignments, asset requests
- Bookings β Room reservations, resource booking
- Contracts β Contract status, renewal dates
- Procurement β Purchase requests, vendor info
- E-Signature β Signature requests, document status
- Inspections β Inspection schedules, findings
- Guest Pass β Visitor management, pass status
- Payroll β Pay stub info, payroll queries
- Headcount Planner β Headcount tracking, position management
- Job Board β Internal job postings, applications
- Offer Manager β Offer status, offer details
- Competitive Intelligence (Mango IQ) β Market analysis, competitor tracking
- Admin Help β Platform help articles, how-to guidance
How Agent Routing Works:
- The Hybrid ML Router classifies your questionβs intent with high confidence (~10ms)
- The
AgentRegistrychecks which agents are enabled for your business - The best-matching agent is instantiated with your user/business context
- The agent uses its domain-specific tools to fetch data and generate a response
Role Access: Varies by agent β employees see their own data, managers see team data, admins see business-wide data
3. Voice Mode (Speech-to-Speech)
Ask AI supports hands-free voice conversations using OpenAIβs Realtime API with WebRTC. Speak your question and hear the AI respond in a natural, configurable voice.
What You Can Do:
- Start a voice conversation with one tap/click
- Speak naturally β the AI understands context and follow-up questions
- Choose from 13 different AI voice personalities (Marin, Cedar, Alloy, Ash, and more)
- Configure speech pace (normal, slow, fast) and response verbosity
- Use voice mode on both web and mobile
Usage Limits & Billing:
- Per-session limit: 15 minutes
- Per-user daily limit: 30 minutes (configurable by admin)
- Usage tracked via
VoiceUsagemodel with per-minute billing - Admins can view monthly usage stats (sessions, minutes, cost)
How It Works:
- Client requests an ephemeral token from the server for WebRTC connection
- Server validates rate limits, billing balance, and voice mode enablement
- Audio streams directly between the client and OpenAIβs Realtime API
- Session duration and cost are tracked in real time via ActionCable
Role Access: All users (when enabled by admin)
4. Context-Aware Conversations
Ask AI maintains conversation context across messages, enabling natural follow-up questions and references.
What You Can Do:
- Ask follow-up questions like βWhat about last week?β or βShow me more detailsβ
- Use short confirmations (βYesβ, βGo aheadβ, βThe first oneβ) and Ask AI understands what you mean
- Reference previous results (βthose aboveβ, βthe first threeβ)
- Switch topics mid-conversation β Ask AI re-routes to the appropriate agent
How It Works:
- Conversation history is loaded from the database before each response
- Context-dependent messages (confirmations, pronouns, short replies) bypass ML classification
- The
ContextAwareRoutermodule detects reference words and low-confidence classifications - The Master Service preserves conversation state for multi-turn interactions
Role Access: All users
5. Conversation Memory & Learned Facts
Ask AI extracts and remembers key facts from your conversations, building a personalized knowledge base over time.
What It Remembers:
- Preferences β βI prefer detailed reportsβ or βAlways show me this weekβs scheduleβ
- Information β Key facts about your role, team, or projects mentioned in conversation
- Goals β Stated objectives and priorities
- Patterns β Recurring question types and preferred response formats
Memory Management:
- Facts are stored with confidence scores and automatically age out
- High-confidence facts (80%+) are used to personalize responses
- Users can clear conversation history only, or clear everything including learned facts
- Three clear levels: messages only, messages + cache, and full reset (messages + facts + cache)
Role Access: All users (each userβs memory is private)
6. Agentic Tool Execution with Confirmation
Ask AI agents can take real actions on your behalf β not just answer questions. For sensitive operations, the system requests confirmation before proceeding.
What Agents Can Do:
- Create support tickets in Service Desk
- Update passwords in Password Manager
- Submit forms and create tasks
- Modify schedule entries and request time off
- Generate and export reports
Safety Guardrails:
- High-impact operations (update, delete) require explicit user confirmation
- Confirmation requests are streamed via WebSocket with approve/reject buttons
- Confirmations expire after a configurable timeout
- All tool executions are logged with full audit trail
How It Works:
- Agent determines a tool call is needed based on your request
- For read operations, the tool executes immediately
- For write/update/delete operations, a confirmation dialog is sent to the frontend
- User approves or rejects; the agent proceeds or cancels accordingly
Role Access: Varies by tool β employees can modify their own data, managers can act on team data
7. Admin Dashboard & Analytics
The Ask AI dashboard gives administrators visibility into AI usage, active agents, and conversation activity across the organization.
Dashboard Metrics:
- Total conversations and message volume
- Messages today and active users
- Average response time
- Active vs. disabled vs. available agents
Recent Activity Table:
- User name, first message, message count
- Conversation start time and last activity
- Status badges (active, completed)
- Voice message indicators
Role Access: Admin only
8. Agent Guidelines (Admin)
Administrators can customize how AI agents behave across the organization through the Agent Guidelines system.
What You Can Configure:
- Business Context β Tell the AI about your organizationβs culture and priorities
- Custom Instructions β Add specific behavioral rules for all agents
- Tone & Style β Choose preset tones or write custom tone instructions
- Response Format β Control how verbose or concise responses should be
- Greeting / Apology / Escalation Messages β Customize standard responses
- Universal Guardrails β Rules all agents must follow (e.g., βNever share salary data with non-managersβ)
- Action Guardrails β Rules for when agents take actions (e.g., βAlways confirm before creating ticketsβ)
- Per-Agent Overrides β Customize tone, instructions, and guardrails for individual agents
- AI-Powered Optimization β Use the βOptimizeβ button to refine your instructions with AI
Draft & Publish Workflow:
- Changes are saved as a draft first
- Publishing makes guidelines active for all agents immediately
- Published-by and published-at timestamps are tracked
- Cache is automatically busted across all agents on publish
Role Access: Admin only
9. Configuration & Feature Controls
Administrators control Ask AI behavior through a comprehensive configuration panel.
AI Configuration:
- Response temperature slider (0.0 conservative to 1.0 creative)
- Default model selection (GPT-4o-mini)
Feature Access Controls:
- Enable/disable general questions
- Enable/disable schedule queries
- Enable/disable employee data access (with security warning)
- Enable/disable function calls (agentic actions)
Usage Limits:
- Daily request limit per user (0β500, configurable)
- Maximum conversation length (10β100 messages)
Privacy & Data Management:
- Conversation retention period (0β365 days, 0 = forever)
- Enable/disable conversation export
Voice Mode Settings:
- Enable/disable voice mode
- Voice daily limit per user (0β120 minutes)
- AI voice selection (13 options with live preview)
- Response style (concise, balanced, detailed)
- Speech pace (normal, slow, fast)
Integration Settings:
- Knowledge base access toggle
- Citations toggle
- Notification actions toggle
Role Access: Admin only
10. Test Suite
Managers and admins can verify AI agent behavior using a built-in test suite that exercises example questions across all enabled agents.
What You Can Do:
- Run individual test questions against specific agents
- See response time, intent classification, and agent routing details
- View thinking steps, tools used, and context metadata
- Identify failures with detailed error reasons
- Validate that agents respond correctly after configuration changes
How It Works:
- Each test creates a fresh
AskAiMasterServiceinstance with a test-specific thread - Questions are processed through the full pipeline (classification β routing β response)
- Results include success/failure determination based on both explicit flags and response content analysis
- Error detection checks for phrases like βunable toβ, βerror generatingβ, βtechnical difficultiesβ
Role Access: Manager and Admin
11. Flow Logging & Observability (System Admin)
System administrators have deep observability into every Ask AI request through the Flow Log system.
Flow Log Dashboard:
- 24-hour stats: total requests, success/fail ratio, average latency
- Counts by service type: API Intelligence, Schema Intelligence, KB Search, LLM calls
- Classification review queue with flagged items
- Top intents and handlers breakdown
Per-Request Trace Detail:
- Full processing pipeline: Stage 1 classification β Stage 2 sub-intent β Handler β Response
- ML classification details: intent, confidence, method (pattern/KNN/LLM)
- API/Schema Intelligence: matched endpoints, SQL queries executed, response data
- KB Search: articles found, search type, relevance scores
- LLM calls: linked API logs, token usage, latency breakdown
- Tool calls: tool name, arguments, execution time, success/failure
- Event timeline: chronological trace of every processing step
Analytics Dashboard:
- Intent breakdown over configurable timeframes (day/week/month)
- Handler and response type distribution
- Slow request analysis (configurable threshold)
- Hourly volume charts
Classification Review:
- Auto-flagged suspicious classifications (low confidence, KNN/LLM disagreement)
- Admin feedback with correct intent annotation
- Export corrections as ML training data for model improvement
Role Access: System Admin only
12. Mobile Experience
Ask AI is available on mobile through both the native app and mobile web views, with full conversation sync between devices.
Mobile Features:
- Agent Discovery β Browse all available AI agents and their capabilities
- Help Examples β See example questions organized by agent domain
- Conversation History β Review past interactions in a read-only view
- Voice Mode β Full voice conversation support with session tracking
- Cross-Client Sync β Start a conversation on mobile, continue on desktop (and vice versa)
API Endpoints for Native Mobile:
POST /api/v1/ask_ai/messagesβ Send message and get WebSocket subscription infoGET /api/v1/ask_ai/conversations/:id/messagesβ Paginated message historyGET /api/v1/ask_ai/helpβ Agent discovery with example questionsGET /api/v1/ask_ai/settingsβ Feature toggles for mobile UI controlPOST /api/v1/ask_ai/voice_tokenβ Ephemeral token for voice modePOST /api/v1/ask_ai/cancelβ Cancel in-progress requests
Role Access: All users
π― Common Use Cases
For Employees
| Question | What Happens |
|---|---|
| βHow many PTO days do I have left?β | Leave Management Agent checks your balance |
| βShow me my schedule for next weekβ | Scheduling Agent queries your upcoming shifts |
| βFind my Slack passwordβ | Password Agent searches your credential vault |
| βMy laptop is overheatingβ | Service Desk Agent offers to create an IT ticket |
| βWhat is the dress code policy?β | Policy Hub Agent searches company policies |
| βSubmit my expense report formβ | Forms Agent helps you fill and submit |
For Managers
| Question | What Happens |
|---|---|
| βShow me attendance for my team this weekβ | Attendance Agent pulls team attendance data |
| βHow many open positions do we have?β | Recruiting Agent queries job listings |
| βGenerate a headcount report by departmentβ | Reporting Agent creates an interactive HTML report |
| βWho on my team has expiring certifications?β | Skills Agent checks certification dates |
For HR & Admins
| Question | What Happens |
|---|---|
| βShow employee count by departmentβ | Reporting Agent generates a grouped report |
| βWhat is the turnover rate this quarter?β | Database Agent runs analytics queries |
| βList all pending onboarding tasksβ | Onboarding Agent checks task completion |
| βWho are the succession candidates for VP role?β | Succession Agent queries talent pools |
βοΈ Admin Setup Guide
Step 1: Enable the App
- Navigate to Apps in the main menu
- Find Ask AI in the marketplace
- Click Enable for your business
Step 2: Configure AI Settings
- Go to Ask AI β Settings (admin only)
- Set the response temperature (0.7 recommended for balanced responses)
- Enable/disable feature access controls based on your data policy
- Configure usage limits appropriate for your organization size
- Set conversation retention period per your data retention policy
Step 3: Configure Voice Mode (Optional)
- In Settings, scroll to Voice Mode
- Enable voice mode for your organization
- Select an AI voice personality (Marin recommended for professional settings)
- Set daily usage limits per user
- Choose response style and speech pace
Step 4: Set Agent Guidelines (Optional)
- Go to Ask AI β Agent Guidelines (admin only)
- Add your business context (industry, culture, priorities)
- Write any custom instructions or guardrails
- Configure per-agent overrides if needed
- Use the Optimize button to refine instructions with AI assistance
- Save as draft, then Publish when ready
Step 5: Review Agent Status
- Go to Ask AI β Dashboard
- Review which agents are Active, Disabled, or Not Installed
- Install additional marketplace apps to unlock more AI agents
- Enable/disable individual agents in each appβs configuration
π Security & Privacy
Business Scoping
All queries are strictly scoped to the current userβs business context. Users can only access data they have permission to see based on their role.
Conversation Ownership
Conversations are verified for ownership at both the HTTP and WebSocket layers. The ActionCable channel validates user ID, business ID, and conversation ownership before allowing subscriptions.
Voice Session Security
Voice sessions use ephemeral tokens with 15-minute expiration. Session data is cached with user/business validation to prevent cross-session access.
Data Retention
Administrators control how long conversations are retained. Conversations older than the configured retention period are automatically cleaned up.
Audit Trail
Every AI request is logged with full trace data including classification, routing, tool calls, and response metadata through the Flow Log system.
π Monitoring & Troubleshooting
For Admins
Check AI Availability:
- Verify the AI service status on the Dashboard (response time metric)
- If responses are slow, check the Flow Log analytics for latency trends
Review Agent Performance:
- Use the Test Suite to verify agents respond correctly
- Check the Flow Log for failed requests and error patterns
Monitor Usage:
- Dashboard shows total conversations, active users, and daily message volume
- Voice mode usage tracked per-user and per-business with billing details
Common Issues
| Issue | Solution |
|---|---|
| βAI service is not configuredβ | Verify OpenAI API key is set in system settings |
| Agent not responding correctly | Check agent guidelines, run Test Suite |
| Voice mode not available | Ensure voice mode is enabled in Settings |
| Responses are too slow | Check Flow Log analytics for latency bottlenecks |
| Conversation not syncing | Conversations auto-sync; try refreshing the page |
π Integration Points
Ask AI integrates with virtually every app in the MangoApps Workforce platform:
- Marketplace Apps β Each enabled app can provide an AI agent to Ask AI
- Knowledge Base β RAG-powered answers from help articles and documentation
- Service Desk β Automatic ticket creation for unresolved issues
- ActionCable β Real-time WebSocket streaming for live responses
- Mobile API β Full REST API for native mobile app integration
- Voice (OpenAI Realtime) β WebRTC speech-to-speech via ephemeral tokens
π‘ Tips & Best Practices
- Be specific β βShow my shifts for next weekβ works better than βWhatβs my schedule?β
- Use @mentions β Direct questions to specific agents with
@scheduling,@passwords, etc. - Try voice mode β Great for quick lookups when your hands are busy
- Clear conversations when switching topics for cleaner context
- Use the /help command to discover what each agent can do with example questions
- Admins: Start with conservative settings and tune based on usage analytics
- Admins: Review the Classification Review queue weekly to improve ML accuracy over time