> ## Documentation Index
> Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto Communication Templates

> YouNegotiate wants a specific reminder to send when a payment plan is active.

## Real-World Example

YouNegotiate wants a specific reminder to send when a payment plan is active. Super Admin reviews the automated template/status configuration to make sure the message is active and correct.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Super Admin configures auto template"] --> B["System saves communication status"]
    B --> C["Triggering event occurs"]
    C --> D{"Template active?"}
    D -->|Yes| E["Automated message can send"]
    D -->|No| F["Message is skipped"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A actor;
    class B,C system;
    class D decision;
    class E outcome;
    class F risk;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should let Super Admin configure automated communication templates/statuses.
* It should keep automated messages tied to the right trigger meaning.
* It should support consistent event-based communication.

## How It Should Not Work

* It should not send inactive automated messages.
* It should not attach the wrong template to an event.
* It should not make automated communication changes without preserving auditability.

## Developer Notes

* Automated communication configuration affects background/event-driven messaging.
* Template codes and statuses should stay aligned with communication enums and jobs.

## Related App Areas

* `routes/superadmin.php`
* `app/Livewire/Creditor/AutomatedCommunication`
* `app/Services/ScheduledCommunicationService.php`
