# Goal Description
The objective is to sever dependence on third-party SaaS platforms (Apollo.io) by building a proprietary, mathematically-hardened email dispatch system natively into the Axeon Prime architecture. This internal "Communications Blade" will live at `/admin/communications` and allow the direct uploading of CSV manifests to dispatch automated kinetic payloads (emails) directly from the APACC Overseer.

## User Review Required
> [!IMPORTANT]
> **SMTP Relay Requirement:** We can write the code to orchestrate the email dispatch, but to physically route emails across the global internet without instantly triggering spam filters, we must use an SMTP Relay. 
> You will need to provide an API key from either **SendGrid**, **Postmark**, **Amazon SES**, or an App Password from your **Google Workspace** account. 

## Open Questions
1. **Which SMTP Provider?** To send these emails, you still need an SMTP provider. Are we using SendGrid, Amazon SES, or hooking into a Google Workspace SMTP via App Password?

## Proposed Changes

### [Frontend Dashboard & Edge Routing]
Creates the internal command center for uploading CSV manifests and triggering mass-dispatch sequences.

#### [NEW] [communications dashboard](file:///C:/AxeonPrime/gateway/src/routes/communications/+page.svelte)
- Build the `communications` route within the existing SvelteKit `gateway`. 
- Because `axeon-prime-edge-router` already proxies the `admin.axeon-prime.com` subdomain to your frontend, this route will automatically be accessible at `admin.axeon-prime.com/communications`.
- Build a brutalist, cyber-aesthetic UI matching the APACC Overseer vibe.
- Include a drag-and-drop zone for CSV ingestion.
- Include a visual terminal log mapping dispatch status in real-time.

### [Backend Execution Blade]
Creates the API endpoints in Modal to receive the payload and interface with the SMTP relay.

#### [MODIFY] [main.py](file:///C:/AxeonPrime/core/main.py)
- Add a new FastAPI router: `/api/communications/dispatch`
- Build the CSV parsing logic to extract `Target`, `Email`, and `Personalized Gateway Link`.
- Implement asynchronous batch processing to throttle outbound emails (e.g., 1 email every 30 seconds) to perfectly bypass enterprise spam filters.
- Integrate the chosen SMTP API (SendGrid / Gmail) to physically fire the payloads.

## Verification Plan

### Manual Verification
1. I will deploy the frontend UI locally and verify the CSV upload mechanics.
2. I will spin up the Modal backend and send a test payload to your personal email address.
3. Once verified, we will deploy it to Cloudflare and execute Wave 3 directly from our own infrastructure.
