{% extends 'app_base.html' %}{% block content %}
OMNICHANNEL

Central de Comunicação

WhatsApp, e-mail, SMS e Portal do Paciente em um único histórico.

chat
WhatsApp{{ 'Ativo' if cfg.whatsapp.enabled else 'Não configurado' }}
mail
E-mail{{ 'Ativo' if cfg.email.enabled else 'Não configurado' }}
sms
SMS{{ 'Ativo' if cfg.sms.enabled else 'Não configurado' }}
notifications_active
Portal{{ 'Ativo' if cfg.portal_enabled else 'Desativado' }}

Automações rápidas

Gere avisos a partir dos dados atuais. Com envio automático ativo, os canais externos são enviados pela API configurada.

settingsConfigurar APIs

Regras de segurança

Envio ≠ entrega.
O histórico diferencia FILA, ENVIADA, ENTREGUE, LIDA e FALHOU. Tokens e senhas ficam em variáveis de ambiente do servidor.

Histórico de mensagens

Rastreabilidade por paciente, canal, evento e status.

{% for m in messages %}{% else %}{% endfor %}
DataPacienteCanalEventoMensagemStatusAção
{{ m.created_at }}{{ m.patient_name }}{{ m.channel|upper }}{{ m.event }}{{ m.title }}
{{ m.body }}
{% if m.error %}
{{ m.error }}
{% endif %}
{{ m.status }}{% if m.channel!='portal' and m.status in ['FILA','FALHOU'] %}
{% else %}—{% endif %}
Nenhuma comunicação registrada.

Nova mensagem

{% endblock %}