{% extends "cms/base.html" %} {% block title %}Chat Session{% endblock %} {% block page_title %}Chat Session — {{ session.session_id.hex|slice:":8" }}{% endblock %} {% block cms_content %}

Chat Transcript

Back
{% for msg in session.messages.all %} {% if msg.role == 'user' %}
{{ msg.content }}
{{ msg.created_at|date:"H:i" }}
{% elif msg.role == 'assistant' %}
{{ msg.content }}
{{ msg.created_at|date:"H:i" }} · {{ msg.tokens }} tokens
{% endif %} {% empty %}

No messages in this session.

{% endfor %}
Visitor
{{ session.display_label }}
{% if session.visitor_name and session.topic %}
{{ session.topic }}
{% endif %} {% if session.visitor_email %}
{{ session.visitor_email }}
{% endif %} {% if session.visitor_ip %}
IP: {{ session.visitor_ip }}
{% endif %}
Session Info
Status: {{ session.get_status_display }}
Messages: {{ session.message_count }}
Started: {{ session.created_at|date:"d M Y H:i" }}
Updated: {{ session.updated_at|date:"d M Y H:i" }}
{% if session.handoff_triggered %}
WhatsApp Handoff
Triggered
Keyword: "{{ session.handoff_keyword }}"
{% if session.handoff_at %}
At: {{ session.handoff_at|date:"H:i" }}
{% endif %}
{% endif %}
{% endblock %}