Overview
AIInsightsTab provides AI-powered analysis of survey/form response data. It displays an executive summary, key themes with sentiment analysis, prioritized recommendations, and a conversational Q&A interface for asking questions about the data.
Key Features
- Executive summary with refresh capability
- Key themes with sentiment indicators (positive/neutral/negative)
- Prioritized recommendations (high/medium/low)
- Conversational Q&A with suggested questions
- Minimum 10 submissions required for insights
- Background job processing via Inngest
Examples
With Insights Data
Demo with mock data showing all insight sections.
This survey received 847 responses with an 89% completion rate. The majority of respondents (67%) rated the product positively, with particular enthusiasm for the mobile experience. Key areas of concern include pricing transparency and onboarding complexity. Enterprise users showed higher satisfaction levels compared to individual users, suggesting the product better serves team use cases.
Generated: 1/30/2026, 3:32:50 AM
Users consistently praised the mobile app experience and responsiveness
Multiple users expressed confusion about pricing tiers and feature limits
The initial setup process was mentioned as needing simplification
Users requested better integration with third-party tools
- 1Prioritize mobile optimizationHigh Priority
Continue investing in mobile performance as it is the primary driver of positive sentiment
- 2Simplify pricing structureHigh Priority
Consider a clearer pricing page with feature comparison to address confusion
- 3Streamline onboardingMedium Priority
Reduce initial setup steps and add a quick-start option for new users
Suggested questions:
Empty State
State shown when no insights have been generated yet.
No insights generated yet. Click refresh to analyze your data.
Insufficient Data State
Shown when resource has fewer than 10 submissions.
Insights require at least 10 completed submissions
Completed: 5
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
resourceId | string | required | The ID of the resource to fetch/generate insights for |
submissionCount | number | required | Current submission count to check against minimum threshold (10 required) |
Usage
import { AIInsightsTab } from '@/features/resources';
// In your analytics page component:
<AIInsightsTab
resourceId={resource.id}
submissionCount={analytics.universal.completed}
/>
// The component handles:
// - Fetching cached insights via useResourceInsights hook
// - Triggering new insight generation via useRefreshInsights
// - Q&A functionality via useAskAboutData
// - Minimum submission threshold check (10 required)