AI Integration
:::info Source
Sourced from services/notification-service/AI_INTEGRATION.md in the documentation repo.
:::
1. Capabilities
| Capability | Prompt | Classification |
|---|---|---|
| Notification copy personalization | notification.copy.personalize | Limited-risk |
| Digest summarization | notification.digest.summarize | Limited-risk |
| Send-time optimization (M5+) | notification.send_time.optimize | Limited-risk |
| Subject line A/B (M5+) | notification.subject.test | Limited-risk |
All via AIClient port.
2. Safety
- Pre-call moderation of tenant-provided templates.
- Never include sensitive data (passwords, tokens) in AI input.
- Output validated against template schema.
3. Provenance
Every AI-generated copy tagged with AIProvenance; tenant admin can toggle on/off per template.
4. Cost
- Per-tenant budget.
- Cache: same (template, audience segment) → 24h TTL.
5. HITL
- Templates AI-generated go through
draft_aireview by tenant admin before activating.
6. Data Privacy
- Recipient names allowed (for personalization); PII beyond name redacted from AI input.
noTrainverified.
7. Bias
- Send-time optimizer quarterly fairness eval (no deprioritizing specific demographics).