SEO Machine’s content quality depends on well-configured context files and API integrations. This guide covers everything you need to set up for production-quality content.
Context files are the foundation of SEO Machine. They teach the AI about your brand, style, and SEO requirements so every article sounds like your company wrote it.
All context files are located in the context/ directory and are provided as templates. You must fill them out with your company’s information.
Defines your brand’s voice, tone, and messaging framework.
1
Define Voice Pillars
Identify 3-5 core characteristics of your brand voice:
## Voice Pillars1. **Authentic & Honest**: We speak plainly about challenges and solutions2. **Empowering**: We help creators take control of their content3. **Technical but Accessible**: We explain complex topics in simple terms4. **Supportive**: We're here to help, not sell5. **Data-Driven**: We back claims with evidence and research
2
Set Tone Guidelines
Define tone for different content types:
## Tone Guidelines by Content Type### Educational Content (How-to Guides)- Informative and patient- Step-by-step and clear- Encouraging and supportive### Product Content (Features, Comparison)- Confident but not arrogant- Benefit-focused, not feature-listing- Clear about limitations### Thought Leadership- Bold and opinionated- Backed by data and experience- Conversational but authoritative
3
Establish Do's and Don'ts
Be specific about what to do and avoid:
## Writing Do's✅ Use "you" and "your" (direct address to reader)✅ Use contractions (we're, you'll, it's) for conversational tone✅ Include specific examples with names and numbers✅ Cite sources for all statistics and claims✅ Break up long paragraphs (2-4 sentences max)## Writing Don'ts❌ Never use jargon without explanation❌ Don't make unsubstantiated claims❌ Avoid speaking negatively about competitors by name❌ Don't use corporate buzzwords (synergy, leverage, etc.)❌ Never open articles with generic definitions
4
Define Terminology Preferences
## Terminology Guide**Preferred Terms**:- "podcast creator" (not "podcaster")- "private podcast" (not "subscription podcast")- "RSS feed" (not "podcast feed")**Terms to Avoid**:- "utilize" → use "use"- "leverage" → use "use" or "take advantage of"- "best-in-class" → be specific about what makes it good
See examples/castos/brand-voice.md for a complete real-world example from a podcast hosting company.
Provides 3-5 exemplary blog posts so the AI learns your style through real examples.
This is one of the most important context files. Quality examples = quality output.
1
Select Your Best Posts
Choose 3-5 articles that represent:
Your best writing
Different content types (how-to, comparison, strategy)
Your ideal brand voice
Strong SEO performance
2
Include Full Content
Critical: Copy the entire article, not just excerpts:
# Writing Examples## Example 1: How to Start a Podcast in 2025**URL**: https://yoursite.com/blog/start-podcast**Type**: How-to Guide**Word Count**: 3,200**Published**: January 2025**What makes this great**:- Opens with a compelling scenario, not a definition- Uses specific numbers throughout ("73% of creators")- Includes real examples with names- Natural product mentions without being salesy- Clear step-by-step structure**Full Content**:[Paste the complete article markdown here, including all headings,paragraphs, lists, and formatting]---## Example 2: [Next Article]...
Lists your product or service features, benefits, and differentiators.
# Product/Service Features## Overview[Brief description of what your product/service does]## Core Features### Feature 1: [Name]**Description**: [What it does]**Benefit**: [Why it matters to users]**Use Case**: [When/how users would use this]### Feature 2: [Name]...## Key DifferentiatorsWhat makes us different from competitors:1. **[Differentiator 1]**: [Specific advantage]2. **[Differentiator 2]**: [Specific advantage]## Common Pain Points We Solve- **Pain Point 1**: [How we solve it]- **Pain Point 2**: [How we solve it]## When to Mention Features- **Natural Context**: When discussing [topic], mention [feature]- **Problem-Solution**: For [pain point], highlight [feature]
Catalog of key pages for strategic internal linking in articles.
1
Organize by Category
Group pages by type:
# Internal Links Map## Product Pages- **[Podcast Hosting](https://yoursite.com/hosting)** Description: Main hosting service overview Use when: Discussing podcast infrastructure, hosting choices- **[Private Podcasting](https://yoursite.com/private)** Description: Private/members-only podcast feature Use when: Talking about monetization, exclusive content## Pillar Content- **[Complete Podcasting Guide](https://yoursite.com/blog/guide)** Description: 5,000-word comprehensive guide Use when: Any beginner-focused content
2
Map Topic Clusters
Organize related content into clusters:
## Topic Cluster: Podcast Growth**Pillar**: [Growing Your Podcast](https://yoursite.com/blog/grow-podcast)**Cluster Articles**:- [Podcast Marketing Strategies](https://yoursite.com/blog/marketing)- [Getting More Listeners](https://yoursite.com/blog/get-listeners)- [Podcast Promotion Guide](https://yoursite.com/blog/promotion)- [Cross-Promotion Strategies](https://yoursite.com/blog/cross-promotion)
3
Include Anchor Text Suggestions
## Anchor Text Recommendations**For Product Links**:- "podcast hosting platform"- "reliable podcast hosting"- "podcast hosting service"- Avoid: "click here", "learn more"**For Content Links**:- Descriptive phrases that hint at the destination- Include target keyword where natural- Use variations to avoid repetition
Editorial and formatting standards for consistency.
Grammar & Mechanics
## Grammar & Mechanics**Capitalization**:- Product names: Capitalize (WordPress, Google Analytics)- Features: Lowercase unless proper noun (private podcasting)- Headings: Title case for H1, sentence case for H2/H3**Numbers**:- Spell out one through nine- Use numerals for 10 and above- Exception: Always use numerals for percentages, prices, dates**Lists**:- Use parallel structure (all sentences or all fragments)- End with period if items are complete sentences- No period if items are fragments
Formatting Standards
## Formatting Standards**Headings**:- One H1 per article (the title)- H2 for main sections- H3 for subsections- Never skip heading levels (H1 → H3)**Paragraphs**:- Maximum 4 sentences- Prefer 2-3 sentences- Single sentence paragraphs OK for emphasis**Emphasis**:- **Bold** for key concepts and important terms- *Italics* for emphasis or introducing new terms- `Code formatting` for technical terms and file names
Link Standards
## Link Standards**Internal Links**:- 3-5 per article minimum- Descriptive anchor text with keywords- Open in same tab**External Links**:- 2-3 per article minimum- Link to authoritative sources for statistics- Open in new tab (_blank)- Use rel="noopener noreferrer" for security**Link Placement**:- First internal link in first 500 words- Distribute throughout article- At least one link per major section
SEO requirements and best practices specific to your needs.
# SEO Guidelines## Content Length- **Minimum**: 2,000 words- **Target**: 2,500-3,000 words- **Competitive niches**: 3,500+ words## Keyword Optimization**Primary Keyword Density**: 1-2%- Too low (<1%): May not rank- Too high (>2%): Risk of keyword stuffing**Primary Keyword Placement**:- [ ] H1 headline- [ ] First 100 words- [ ] At least 2-3 H2 headings- [ ] Meta title- [ ] Meta description- [ ] URL slug- [ ] First and last paragraph## Meta Elements**Meta Title**:- Length: 50-60 characters- Include primary keyword (preferably at start)- Include brand name at end (if room)- Compelling and click-worthy**Meta Description**:- Length: 150-160 characters- Include primary keyword- Clear value proposition- Call-to-action when appropriate## Content Structure**Introduction**:- Hook in first 1-2 sentences- Primary keyword in first 100 words- Clear value proposition- 150-200 words total**Body**:- H2 section every 400-500 words- H3 subsections for complex topics- Lists for scannability- 2-3 images or visuals**Conclusion**:- Summarize key takeaways- Clear call-to-action- 150-200 words## Link Requirements**Internal Links**: 3-5 minimum- Link to pillar content- Link to related cluster articles- Link to product/service pages naturally- Vary anchor text**External Links**: 2-3 minimum- Link to authoritative sources- Cite statistics and data- Use rel="nofollow" for competitor links## Readability**Target Reading Level**: 8th-10th grade- Use Flesch Reading Ease: 60-70- Average sentence length: 15-20 words- Paragraphs: 2-4 sentences max- Use transition words- Active voice preferred (80%+ of sentences)
Create data_sources/config/.env with your API credentials:
# Google Analytics 4GA4_PROPERTY_ID=123456789GA4_CREDENTIALS_PATH=./credentials/ga4-credentials.json# Google Search ConsoleGSC_SITE_URL=https://yoursite.com/GSC_CREDENTIALS_PATH=./credentials/gsc-credentials.json# DataForSEODATAFORSEO_LOGIN=[email protected]DATAFORSEO_PASSWORD=your_api_password_here# WordPress PublishingWP_URL=https://yoursite.comWP_USERNAME=your_usernameWP_APP_PASSWORD=your_application_password# Optional ConfigurationBLOG_PATH=/blog/COMPANY_NAME=Your Company NameCOMPANY_DOMAIN=yoursite.comTARGET_INDUSTRY=your-industry
Never commit your .env file to version control! It should already be in .gitignore.