CentercodeDitto
DittoPorygonAPI

AIInsightsTab

AI-powered analytics with summary, themes, recommendations, and Q&A

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.

Executive Summary

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

Key Themes
Mobile Performance
Positive

Users consistently praised the mobile app experience and responsiveness

34 mentions
Pricing Concerns
Negative

Multiple users expressed confusion about pricing tiers and feature limits

28 mentions
Onboarding Flow
Neutral

The initial setup process was mentioned as needing simplification

22 mentions
Feature Requests
Neutral

Users requested better integration with third-party tools

19 mentions
Recommendations
  1. 1
    Prioritize mobile optimization
    High Priority

    Continue investing in mobile performance as it is the primary driver of positive sentiment

  2. 2
    Simplify pricing structure
    High Priority

    Consider a clearer pricing page with feature comparison to address confusion

  3. 3
    Streamline onboarding
    Medium Priority

    Reduce initial setup steps and add a quick-start option for new users

Ask About This Data

Suggested questions:

Empty State

State shown when no insights have been generated yet.

Executive Summary

No insights generated yet. Click refresh to analyze your data.

Ask About This Data

Insufficient Data State

Shown when resource has fewer than 10 submissions.

Insights require at least 10 completed submissions

Completed: 5

Props Reference

PropTypeDefaultDescription
resourceIdstringrequiredThe ID of the resource to fetch/generate insights for
submissionCountnumberrequiredCurrent 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)