Companion to saas_template_playbook.md . That file covers everything every SaaS needs. This file covers what changes β and what's new β when AI is core to the product. Practical-first. Code snippets, decision tables, real defaults, no buzzwords. If a section doesn't help you ship next week, it doesn't belong here. π Table of Contents β‘ The Shift in 60 Seconds π― Pick One: AI-Native vs AI-Augmented πͺ 2.5 Two Starting Points: Greenfield vs Retrofit ποΈ Reference Architecture π€ Agents as First-Class Actors π The LLM Gateway (Provider Abstraction) π Prompts as Code π οΈ Tools, Function Calling & MCP π§ Memory & RAG (the practical version) π Structured Outputs π§ Streaming UX π΅ Cost Control, Budgets & Model Routing π§Ύ Outcome-Based & Metered Pricing β the implementation β
Evals β how to actually test agents π Observability for Agents β‘ Caching (Prompt + Semantic) π‘οΈ Safety, Abuse & PII π Human-in-the-Loop & Autonomy Levels β³ Long-Running Agent Jobs π’ AI-Specific Multi-Tenancyβ¦