@extends('layouts.app') @section('content')

{{ $agent->name }} - Conversation Analytics

Model: {{ $agent->model_type }} | Created: {{ $agent->created_at->format('M d, Y') }}

Conversation Quality Summary

{{ $conversationQuality['average_conversation_length'] }}

Avg Conversation Length

{{ number_format($conversationQuality['average_user_satisfaction'] * 100, 1) }}%

User Satisfaction

{{ number_format($conversationQuality['task_completion_rate'] * 100, 1) }}%

Task Completion Rate

{{ number_format($advancedAnalytics['semantic_accuracy'] * 100, 1) }}%

Semantic Accuracy

Conversation Depth
User Engagement
Topic Distribution
Sentiment Analysis
Response Quality Metrics
Factual Accuracy
{{ number_format($advancedAnalytics['response_quality']['factual_accuracy'] * 100, 1) }}%
Coherence Score
{{ number_format($advancedAnalytics['response_quality']['coherence_score'] * 100, 1) }}%
Helpfulness Rating
{{ number_format($advancedAnalytics['response_quality']['helpfulness_rating'], 1) }}/5
Hallucination Rate
{{ number_format($advancedAnalytics['response_quality']['hallucination_rate'] * 100, 1) }}%
Common Failure Points
@foreach($conversationQuality['common_failure_points'] as $point => $rate)
{{ ucfirst(str_replace('_', ' ', $point)) }}
{{ number_format($rate * 100, 1) }}%
@endforeach
Conversation Improvement Recommendations
    @if($advancedAnalytics['response_quality']['hallucination_rate'] > 0.05)
  • Reduce Hallucinations: Your agent has a relatively high hallucination rate. Consider improving your prompts with more factual constraints or using a more recent model version.
  • @endif @if($conversationQuality['task_completion_rate'] < 0.8)
  • Improve Task Completion: Your agent's task completion rate could be improved. Review common failure patterns and enhance your agent's instructions for handling complex requests.
  • @endif @if($advancedAnalytics['user_engagement']['abandonment_rate'] > 0.15)
  • Reduce Abandonment: Users are abandoning conversations at a high rate. Consider improving initial responses and making your agent more engaging.
  • @endif @if($advancedAnalytics['contextual_relevance'] < 0.85)
  • Enhance Contextual Understanding: Your agent could better maintain context throughout conversations. Consider increasing context window or improving memory mechanisms.
  • @endif @if($advancedAnalytics['sentiment_analysis']['overall_sentiment'] < 1)
  • Improve Sentiment: User sentiment is neutral or negative. Consider training your agent to be more helpful, friendly, and solution-oriented.
  • @endif
@push('scripts') @endpush @endsection