# Plappi Social-Marketing Engine
Läuft als `agent` unter `/home/agent/plappi-marketing/`. Spiegelt die LinkedIn-Pipeline
(SQLite + Draft → WhatsApp-Approval → Send/Post). Tool für Lena: `/home/agent/bin/lena-marketing`.

## Zwei Kanäle, drei Modi (ban-sicher, Entscheidung Nemanja 2026-06-07)
- **press / email** → Lena entwirft Pitch-Mail → Approval → **sendet automatisch** via `lena-mail.py` (BCC Nemanja).
- **social / auto_own** → eigene Plappi-Kanäle (IG/TikTok/LinkedIn) → Draft → Approval → posten.
  *(Auto-Poster pro Plattform = nächster Ausbau; LinkedIn kann die bestehende Pipeline nutzen.)*
- **social / manual_community** → Reddit/FB-Gruppen/Foren → Draft → Approval → **Nemanja postet manuell**
  (Account-Schutz; Auto-Posting dort = Bann). Lena liefert fertigen Copy-Paste-Block + Regel.

## Befehle (über `lena-marketing …`)
```
targets [--channel press|social] [--wave A] [--status active]   # Zielliste
draft-press --wave A --auto-send        # ganze Welle entwerfen + per WA zur Freigabe
draft-press --target-id 1               # ein Outlet
draft-social --target-id 25 --topic "…" # Community/Eigenkanal-Beitrag
list --status pending                    # offene Drafts
approve <id> [--dry]                      # press: sendet Mail · community: Paste-Block · own: freigeben
reject <id> --reason "…"  ·  fix <id> --hint "…"  ·  mark-posted <id>
send-pending                             # alle pending per WA pushen
reply-watch [--dry]                      # Inbox scannen → Folge-Entwürfe (cron)
report                                    # Statusübersicht
```

## WhatsApp-Flow (was Lena macht, wenn Nemanja antwortet)
Nemanja: „ok 3" → Lena ruft `approve 3`. „fix 3: kürzer + Datenschutz betonen" → `fix 3 --hint …`.
„nein 3" → `reject 3`. „posted 12" → `mark-posted 12`.

## Cron (Vorschlag — noch NICHT aktiv, siehe AGENTS.md)
```
*/20 * * * *  reply-watch     # Presse-Antworten → Folge-Entwürfe
```

## Dateien
`bin/marketing_lib.py` Kern · `init_db.py` Schema+Seed · `marketing_cli.py` CLI ·
`press_outreach.py` Mail-Drafts · `social_draft.py` Social-Drafts · `press_reply_watch.py` Reply-Loop.
Quelle/Plan: `otto/projekte/plappi/marketing/` (PRESSE-SCHLACHTPLAN / PLATTFORM-LANDSCHAFT / PLATTFORM-RICHTLINIEN).
