{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block content %}

Dashboard

Emails Today
{{ total_today }}
{{ total_week }} this week
Total Processed
{{ total_all }}
all time
Failures
{{ failed_count }}
processing errors
Avg Confidence
{% if avg_conf %}{{ avg_conf }}%{% else %}—{% endif %}
LLM classification

Action Breakdown

{% if action_counts %}
{% set max_count = action_counts[0].count if action_counts else 1 %} {% for item in action_counts %} {% endfor %}
Action Count
{{ item.label }} {{ item.count }}
{% else %}

No data yet.

{% endif %}

Rule Overrides

{{ override_count }}

Times a business rule changed the LLM's recommended action.

Recent Activity

View all →
{% if recent %}
{% for e in recent %} {% endfor %}
Received Sender Subject Type Action Status
{{ e.received_at.strftime('%m/%d %H:%M') if e.received_at else '—' }} {{ e.sender_address }} {{ e.subject or '—' }} {{ e.sender_type }} {{ action_labels.get(e.final_action, e.final_action) }} {% if e.status == 'completed' %} done {% elif e.status == 'failed' %} failed {% elif e.status == 'processing' %} processing {% else %} {{ e.status }} {% endif %}
{% else %}

No emails processed yet.

{% endif %}
{% endblock %}