{# Drafts written by routines (hermitcrm/routines.py): shown on Home while there are any. Nothing here is ever sent: the user sends it, then logs it with "I sent it". #}

Drafts from routines ({{ routine_drafts|length }})

Written by your routines with your AI CLI. Nothing has been sent. Check and edit a draft, send it yourself, then click I sent it to log it. Discard drops it; the routine will not write it again for the same thread.

{% for row in routine_drafts %}{% set d = row.draft %}

{{ row.contact_name or row.company_name }}{% if row.contact_name %} {{ row.company_name }}{% endif %} {{ d.channel }}

{{ d.reason }} · {{ row.routine_title }}, {{ fmt_datetime(d.made) | replace('T', ' ') }}

{% if d.channel == 'email' %}{% endif %}
{% endfor %}