Docs/Concepts|4 min

How the AI generates emails

When you click Generate Draft, here's what happens behind the scenes.


The generation pipeline

1. Gather context
   - Product code, name, market, description
   - Lead details (company, contact, segment, notes)
   - Lead's pain cards (if any)
   - Knowledge Base search (relevant docs)
   - Writing style profile (if configured)

2. Build prompt
   - All context assembled into an instruction

3. Generate
   - LLM creates a personalized email draft

4. Post-process
   - Check quality (length, personalization)
   - Apply A/B test variant (if active)
   - Save as pending draft

Why emails are personalized

The AI doesn't just swap names. It uses multiple layers:

LayerExample
Role-basedDifferent tone for CTO vs Sales Manager
Company-basedReferences their industry, size
Pain-basedAddresses their specific problems
Context-basedPulls from Knowledge Base
Style-basedMatches your writing patterns

AI providers used

Outlix uses different models for different tasks:

TaskWhat's used
Email draftsFast LLM (Groq/Llama)
Pain extractionFast LLM (Groq/Llama)
Niche documentsClaude Opus (deep analysis)
Document searchOpenAI embeddings

You never interact with these directly — the platform routes automatically based on the task.


Human-in-the-loop

The AI generates. You decide.

Every email is a draft until you approve it. The AI never sends anything on its own. This is by design:

  • Prevents spam
  • Protects your reputation
  • Ensures quality
  • Keeps you in control

Ready to try Outlix?

Start sending AI-powered emails today.