Step 15: Master Prompt Assembly (2026 Guide)
Assemble all research into one optimized prompt for the AI writer.
All 14 preparation steps converge here. Step 15 — Master Prompt Assembly — is the moment where everything seorankar.com has researched, analyzed, and structured gets compiled into a single, coherent, precisely formatted prompt that will be sent to the AI writing model. This step is less about discovering new data and more about engineering the perfect communication — ensuring the AI model receives its instructions in the optimal format for its specific architecture.
Different AI models (GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro) respond differently to different prompt structures. GPT-4o performs best with structured JSON-style instructions. Claude responds better to natural language descriptions with clear hierarchy. Gemini prefers explicit section-by-section writing plans. seorankar.com's master prompt assembler knows these differences and tailors the output accordingly — the same research data, formatted differently for each AI model to extract maximum performance.
What the Master Prompt Contains
The step15-masterprompt.ts module assembles these components in optimized order:
1. System role: Who the AI is and what its primary goal is 2. Article brief: Keyword, audience, content type, estimated length 3. Writing requirements: Grammar rules, prohibited phrases, formatting standards 4. SEO constraints: Density, heading rules, link requirements 5. Required vocabulary: Entities (must/should), n-grams, LSI terms with section assignments 6. Full outline: H2/H3 structure with per-section word count targets 7. Internal links: Anchor text → URL map with placement guidance 8. FAQ questions: Exact phrasing to answer 9. Output format: Precise HTML structure requirements 10. Section-by-section writing plan: For each H2 section: topic, keywords to include, word count, key points to cover
The token budget is managed carefully. The assembler monitors total token count and, if the prompt exceeds the model's input context window, intelligently compresses lower-priority sections (vocabulary lists get summarized, some LSI terms are trimmed) while preserving the outline, SEO rules, and required entities at full fidelity.
Output of This Step
Final master prompt (4,000–6,000 tokens) tailored to the selected AI model, ready for article generation.
💡 Pro Tips
- →The writing plan section (per-section key points) is the most impactful part of the prompt — the more specific the key points, the more accurate the AI's content coverage.
- →Test prompt variants on the same topic with different AI models to discover which produces the best output for your niche.
- →Save your best-performing master prompts as templates for similar content types — the reusable parts (style rules, format instructions) don't need to be regenerated every time.
- →Monitor token usage — prompts that approach the context window limit produce lower-quality output as the model struggles with attention across the full context.
Frequently Asked Questions
Q: Which AI model does seorankar.com use for article generation?
seorankar.com supports GPT-4o, GPT-4o mini, Claude 3.5 Sonnet, Claude 3 Haiku, Gemini 1.5 Pro, and any OpenRouter-compatible model. The model is configured per-project in your settings.
Q: What is the maximum prompt length that works well?
Most AI models perform optimally with prompts under 8,000 tokens. seorankar.com targets 4,000–6,000 tokens for the master prompt, leaving sufficient context for the generated article output.
Q: Can I view the master prompt before generation?
Yes. The master prompt is stored in the project JSON under `masterPrompt` after Step 15 runs. You can review and edit it before triggering Step 16.
Ready to automate your SEO pipeline?
seorankar.com runs all 20 steps automatically — from keyword research to WordPress publish.