{{ detail.thread.customer_email }}
{{ detail.thread.subject }}
{{ detail.thread.public_id }}
{% if request.args.get("message") == "triage_complete" %}AI triage complete
{% endif %} {% if request.args.get("message") == "reply_draft_complete" %}AI reply draft complete
{% endif %} {% if request.args.get("message") == "reply_saved" %}Reply saved to conversation
{% endif %} {% if request.args.get("message") == "status_updated" %}Thread status updated
{% endif %} {% if request.args.get("message") == "priority_updated" %}Thread priority updated
{% endif %} {% if request.args.get("error") == "ai_client_required" %}AI analysis is unavailable because no commerce AI client was provided by the host app.
{% endif %} {% if request.args.get("error") == "reply_body_required" %}Reply body is required before saving an admin reply.
{% endif %} {% if request.args.get("error") == "status_invalid" %}Invalid support thread status.
{% endif %} {% if request.args.get("error") == "priority_invalid" %}Invalid support thread priority.
{% endif %}AI Triage
{{ detail.thread.metadata["triage"]["summary"] }}
{% if detail.thread.metadata["triage"]["missing_information"] %}Missing: {{ detail.thread.metadata["triage"]["missing_information"]|join(", ") }}
{% endif %}AI Reply Draft
Draft only. Review before sending.
{% if detail.thread.metadata["reply_draft"]["next_actions"] %}Next actions: {{ detail.thread.metadata["reply_draft"]["next_actions"]|join(", ") }}
{% endif %}Conversation
{% if detail.messages %} {% else %}No messages recorded for this thread yet.
{% endif %}