Tasks where AI features work well
AI features that last tend to do one narrow task whose output a person can check:
| Good fit | Why |
|---|---|
| Summarising long documents for a human reviewer | Saves time; a person still decides |
| Extracting fields from semi-structured files | Output can be validated against a schema |
| Drafting replies from a knowledge base | Grounded in your content; a person sends |
| Classifying and routing incoming messages | Mistakes are cheap and correctable |
Poor fits are tasks where a wrong answer is expensive and hard to spot, or where a simple rule or search box would do the job.
Production requirements for LLM features
The model call itself is a few lines of code. Most of the work is around it:
- Keys on the server only. Never expose provider keys through client-side environment variables. It’s the first thing I check in any AI codebase.
- Validation. Parse model output with a schema; reject or retry when it doesn’t conform.
- Limits. Rate limits per user and quotas per plan, enforced before calling the model.
- Observability. Log prompts, latency, token usage and failures (without logging sensitive data) so cost and quality are visible.
- Fallbacks. Time-outs and a graceful path when the provider is down.
Evidence
Zap PDF AI is a personal SaaS prototype: PDF upload and text extraction, summarisation through an LLM chat-completions API, Clerk authentication, Stripe subscription billing and a rate limiter on the analysis endpoint. Building it covered the requirements above. I don’t yet have a production AI deployment for a client.