# Blog Writer Workflow Guide A comprehensive guide to using the ALwrity Blog Writer, from initial research to published content. This guide walks you through each phase of the blog writing process with practical examples and best practices. ## 🎯 Overview The ALwrity Blog Writer follows a sophisticated 6-phase workflow designed to create high-quality, SEO-optimized blog content: ```mermaid flowchart TD A[Start: Keywords & Topic] --> B[Phase 1: Research & Strategy] B --> C[Phase 2: Intelligent Outline] C --> D[Phase 3: Content Generation] D --> E[Phase 4: SEO Analysis] E --> F[Phase 5: SEO Metadata] F --> G[Phase 6: Publish & Distribute] B --> B1[Google Search Grounding] B --> B2[Competitor Analysis] B --> B3[Research Caching] C --> C1[AI Outline Generation] C --> C2[Source Mapping] C --> C3[Title Generation] D --> D1[Section-by-Section Writing] D --> D2[Context Memory] D --> D3[Flow Analysis] E --> E1[SEO Scoring] E --> E2[Actionable Recommendations] E --> E3[AI-Powered Refinement] F --> F1[Comprehensive Metadata] F --> F2[Open Graph & Twitter Cards] F --> F3[Schema.org Markup] G --> G1[Multi-Platform Publishing] G --> G2[Scheduling] G --> G3[Version Management] style A fill:#e3f2fd style B fill:#e8f5e8 style C fill:#fff3e0 style D fill:#fce4ec style E fill:#f1f8e9 style F fill:#e0f2f1 style G fill:#f3e5f5 ``` ## ⏱️ Timeline Overview Each phase has specific time requirements and dependencies: ```mermaid gantt title Blog Writing Workflow Timeline dateFormat X axisFormat %M:%S section Phase 1 Research Keyword Analysis :0, 10 Google Search :10, 40 Source Extraction :30, 50 Competitor Analysis :40, 60 Research Caching :50, 60 section Phase 2 Outline AI Structure Planning :60, 80 Section Definition :75, 90 Source Mapping :85, 100 Title Generation :95, 110 section Phase 3 Content Section 1 Writing :110, 140 Section 2 Writing :130, 160 Section 3 Writing :150, 180 Context Continuity :170, 200 section Phase 4 SEO Parallel Analysis :200, 215 AI Scoring :210, 230 Recommendations :220, 235 Apply Refinement :230, 250 section Phase 5 Metadata Core Metadata :250, 265 Social Tags :260, 275 Schema Markup :270, 285 section Phase 6 Publish Platform Setup :285, 295 Content Publishing :290, 310 Verification :305, 320 ``` ## 📋 Prerequisites Before starting, ensure you have: - **API Access**: Valid ALwrity API key - **Research Keywords**: 3-5 relevant keywords for your topic - **Target Audience**: Clear understanding of your audience - **Content Goals**: Defined objectives for your blog post - **Word Count Target**: Desired length (typically 1000-3000 words) ## 🔍 Phase 1: Research & Strategy ### Step 1: Initiate Research **Endpoint**: `POST /api/blog/research/start` **Request Example**: ```json { "keywords": ["artificial intelligence", "healthcare", "medical diagnosis"], "topic": "AI in Medical Diagnosis", "industry": "Healthcare Technology", "target_audience": "Healthcare professionals and medical researchers", "tone": "Professional and authoritative", "word_count_target": 2000, "persona": { "persona_id": "healthcare_professional", "tone": "authoritative", "audience": "healthcare professionals", "industry": "healthcare" } } ``` **What Happens**: 1. **Keyword Analysis**: AI analyzes your keywords for search intent and relevance 2. **Web Search**: Google Search grounding finds current, credible sources 3. **Source Collection**: Gathers 10-20 high-quality research sources 4. **Competitor Analysis**: Identifies competing content and gaps 5. **Research Caching**: Stores results for future use **Expected Duration**: 30-60 seconds ### Step 2: Monitor Research Progress **Endpoint**: `GET /api/blog/research/status/{task_id}` **Progress Messages**: - "🔍 Starting research operation..." - "📋 Checking cache for existing research..." - "🌐 Conducting web search..." - "📊 Analyzing sources..." - "✅ Research completed successfully! Found 15 sources and 8 search queries." **Success Indicators**: - `status: "completed"` - 10+ credible sources - Comprehensive keyword analysis - Identified content gaps and opportunities ### Step 3: Review Research Results **Key Data Points**: - **Sources**: Credible, recent research materials - **Keyword Analysis**: Primary and secondary keywords - **Competitor Analysis**: Top competing content - **Suggested Angles**: Unique content opportunities - **Search Queries**: AI-generated search terms **Quality Checklist**: - ✅ Sources are recent (within 2 years) - ✅ High credibility scores (0.8+) - ✅ Diverse source types (academic, industry, government) - ✅ Relevant to your target audience - ✅ Covers multiple aspects of your topic ## 📝 Phase 2: Intelligent Outline ### Step 1: Generate Outline **Endpoint**: `POST /api/blog/outline/start` **Request Example**: ```json { "research": { "success": true, "sources": [...], "keyword_analysis": {...}, "competitor_analysis": {...}, "suggested_angles": [...], "search_queries": [...], "grounding_metadata": {...} }, "persona": { "persona_id": "healthcare_professional", "tone": "authoritative", "audience": "healthcare professionals", "industry": "healthcare" }, "word_count": 2000, "custom_instructions": "Focus on practical implementation examples and case studies" } ``` **What Happens**: 1. **Content Structure Planning**: Creates logical flow and organization 2. **Section Definition**: Defines headings, subheadings, and key points 3. **Source Mapping**: Maps research sources to specific sections 4. **Word Count Distribution**: Optimizes word count across sections 5. **Title Generation**: Creates multiple compelling title options **Expected Duration**: 15-30 seconds ### Step 2: Review Generated Outline **Key Components**: - **Title Options**: 3-5 compelling, SEO-optimized titles - **Outline Sections**: 5-8 well-structured sections - **Source Mapping**: Research sources mapped to sections - **Word Distribution**: Balanced word count across sections - **Quality Metrics**: Overall outline quality score **Quality Checklist**: - ✅ Logical content flow and progression - ✅ Balanced word count distribution - ✅ Strong source coverage (80%+ sources mapped) - ✅ SEO-optimized headings and structure - ✅ Engaging title options ### Step 3: Refine Outline (Optional) **Endpoint**: `POST /api/blog/outline/refine` **Common Refinements**: - **Enhance Flow**: Improve section transitions - **Optimize Structure**: Better heading hierarchy - **Rebalance Word Count**: Adjust section lengths - **Add Sections**: Include missing content areas - **Improve SEO**: Better keyword distribution ### 🖼️ Generate Images for Sections (Optional) While in Phase 2, you can generate images for your outline sections. **How It Works:** 1. Click the **"🖼️ Generate Image"** button on any section in the outline 2. Image modal opens with auto-generated prompt based on section heading 3. Click **"Suggest Prompt"** for AI-optimized suggestions 4. Optionally open **"Advanced Image Options"** for custom settings 5. Choose provider: Stability AI, Hugging Face, or Gemini 6. Generate and images auto-insert into outline and metadata **Best Practices:** - Generate images during outline review - Use specific, descriptive prompts - Match image style to your brand - Generate multiple variations if needed **Image Features:** - Provider selection (Stability AI, Hugging Face, Gemini) - Aspect ratio options (1:1, 16:9, 4:3) - Style customization - Auto-prompt suggestions - Platform-optimized outputs ## ✍️ Phase 3: Content Generation ### Step 1: Generate Section Content **Endpoint**: `POST /api/blog/section/generate` **Request Example**: ```json { "section": { "id": "intro", "heading": "Introduction: AI Revolution in Medical Diagnosis", "subheadings": [ "Current State of Medical Diagnosis", "The Promise of AI Technology" ], "key_points": [ "AI adoption rates in healthcare", "Key benefits of AI diagnosis", "Overview of current applications" ], "references": [...], "target_words": 300, "keywords": ["AI healthcare", "medical diagnosis", "healthcare technology"] }, "keywords": ["AI healthcare", "medical diagnosis"], "tone": "professional", "persona": { "persona_id": "healthcare_professional", "tone": "authoritative", "audience": "healthcare professionals", "industry": "healthcare" }, "mode": "polished" } ``` **What Happens**: 1. **Content Generation**: AI writes section content based on outline 2. **Citation Integration**: Automatically includes source citations 3. **Continuity Tracking**: Maintains content flow and consistency 4. **Quality Assurance**: Implements quality checks during generation **Expected Duration**: 20-40 seconds per section ### Step 2: Review Generated Content **Key Components**: - **Markdown Content**: Well-formatted, engaging content - **Citations**: Properly integrated source references - **Continuity Metrics**: Content flow and consistency scores - **Quality Scores**: Readability and engagement metrics **Quality Checklist**: - ✅ Meets target word count (±10%) - ✅ Includes relevant citations - ✅ Maintains professional tone - ✅ Good readability score (70+) - ✅ Proper keyword integration ### Step 3: Generate Remaining Sections Repeat the process for each outline section: 1. **Introduction** (300 words) 2. **Key Applications** (500 words) 3. **Benefits and Challenges** (400 words) 4. **Implementation Strategies** (500 words) 5. **Future Outlook** (300 words) **Pro Tips**: - Generate sections in order for better continuity - Review each section before proceeding - Use continuity metrics to ensure flow - Adjust tone and style as needed ### Advanced Features in Phase 3 #### ✨ Assistive Writing (Continue Writing) As you write in any blog section, the AI provides contextual suggestions to help you continue. **How It Works:** 1. Type 20+ words in any section 2. First suggestion appears automatically below your cursor 3. Click **"Accept"** to insert or **"Dismiss"** to skip 4. Click **"✍️ Continue Writing"** to request more suggestions 5. Suggestions include source citations when available **Benefits:** - Real-time writing assistance - Context-aware continuations - Source-backed suggestions - Cost-optimized (first auto, then manual) #### Quick Edit Options Select text to access quick edit options in the context menu: **Available Quick Edits:** - **✏️ Improve**: Enhance readability and engagement - **➕ Add Transition**: Insert transitional phrases (Furthermore, Additionally, Moreover) - **📏 Shorten**: Condense while maintaining meaning - **📝 Expand**: Add explanatory content and insights - **💼 Professionalize**: Make more formal (convert contractions, improve tone) - **📊 Add Data**: Insert statistical backing statements **How It Works:** 1. Select any text in your blog content 2. Context menu appears near your cursor 3. Choose a quick edit option 4. Text updates instantly **Best For:** - Improving flow between sentences - Adjusting tone and formality - Adding supporting statements - Professionalizing casual language #### 🔍 Fact-Checking Verify claims and facts in your content with AI-powered checking. **How It Works:** 1. Select any paragraph or claim text 2. Right-click or use the context menu 3. Click **"🔍 Fact Check"** 4. Wait 15-30 seconds for analysis 5. Review detailed results with supporting/refuting sources 6. Click **"Apply Fix"** to insert source links if needed **What Gets Analyzed:** - Verifiable claims and statements - Statistical data and percentages - Dates, names, and events - Industry-specific facts **Results Include:** - Claim-by-claim confidence scores - Supporting evidence URLs - Refuting sources (if applicable) - Overall factual accuracy score ## 🔍 Phase 4: SEO Analysis ### Step 1: Perform SEO Analysis **Endpoint**: `POST /api/blog/seo/analyze` **Request Example**: ```json { "content": "# AI in Medical Diagnosis\n\nComplete blog content here...", "blog_title": "AI in Medical Diagnosis: Transforming Healthcare Through Technology", "keywords": ["AI healthcare", "medical diagnosis", "healthcare technology"], "research_data": { "sources": [...], "keyword_analysis": {...}, "competitor_analysis": {...} } } ``` **What Happens**: 1. **Content Structure Analysis**: Evaluates heading hierarchy and organization 2. **Keyword Optimization**: Analyzes keyword density and placement 3. **Readability Assessment**: Checks content readability and flow 4. **SEO Scoring**: Generates comprehensive SEO scores 5. **Recommendation Generation**: Provides actionable optimization suggestions **Expected Duration**: 10-20 seconds ### Step 2: Review SEO Analysis **Key Metrics**: - **Overall SEO Score**: 0-100 (aim for 80+) - **Keyword Density**: Optimal range (1-3%) - **Readability Score**: Flesch Reading Ease (aim for 70+) - **Structure Analysis**: Heading hierarchy and organization - **Recommendations**: Specific improvement suggestions **Quality Checklist**: - ✅ SEO score above 80 - ✅ Optimal keyword density - ✅ Good readability score - ✅ Proper heading structure - ✅ Actionable recommendations ### Step 3: Apply SEO Recommendations (Optional) **Endpoint**: `POST /api/blog/seo/apply-recommendations` Use the "Apply Recommendations" button to automatically improve your content based on SEO analysis. The AI will: - Optimize keyword density and placement - Improve content structure and headings - Enhance readability and flow - Maintain your original voice and intent **Expected Duration**: 20-40 seconds ## 📝 Phase 5: SEO Metadata ### Step 1: Generate Core Metadata **Endpoint**: `POST /api/blog/seo/metadata` **Request Example**: ```json { "content": "# AI in Medical Diagnosis\n\nComplete blog content here...", "title": "AI in Medical Diagnosis: Transforming Healthcare Through Technology", "keywords": ["AI healthcare", "medical diagnosis", "healthcare technology"], "research_data": { "sources": [...], "keyword_analysis": {...} } } ``` **What Happens** (First AI Call): 1. **SEO Title**: Optimized for search engines (50-60 chars) 2. **Meta Description**: Compelling description with CTA (150-160 chars) 3. **URL Slug**: Clean, hyphenated, keyword-rich (3-5 words) 4. **Blog Tags**: Mix of primary, semantic, and long-tail keywords (5-8) 5. **Blog Categories**: Industry-standard classification (2-3) 6. **Social Hashtags**: Industry-specific with trending terms (5-10) 7. **Reading Time**: Calculated from word count **Expected Duration**: 10-15 seconds ### Step 2: Generate Social Media & Schema Metadata **What Happens** (Second AI Call): 1. **Open Graph Tags**: Optimized for Facebook/LinkedIn sharing 2. **Twitter Cards**: Twitter-specific optimization 3. **JSON-LD Schema**: Structured data for search engines 4. **Multi-Format Export**: WordPress, Wix, HTML, JSON-LD ready formats **Generated Metadata Output**: - **Core Elements**: Title, description, URL slug, tags, categories - **Social Optimization**: Open Graph and Twitter Card tags - **Structured Data**: Article schema with author, dates, organization - **Platform Formats**: Copy-ready for WordPress, Wix, custom **Expected Duration**: 10-15 seconds ### Step 3: Review & Export Metadata **Quality Checklist**: - ✅ SEO title is 50-60 characters with primary keyword - ✅ Meta description includes CTA in first 120 chars - ✅ URL slug is clean, readable, and keyword-rich - ✅ Tags and categories are relevant and varied - ✅ Social tags are optimized for each platform - ✅ Schema markup is valid JSON-LD **Export Options**: - Copy HTML meta tags directly to your platform - Export JSON-LD for search engines - WordPress-ready format with Yoast compatibility - Wix integration format ## 🚀 Phase 6: Publish & Distribute ### Step 1: Prepare for Publishing **Endpoint**: `POST /api/blog/publish` **Request Example**: ```json { "platform": "wordpress", "html": "
Content here...
", "metadata": { "seo_title": "AI in Medical Diagnosis: Transforming Healthcare Through Technology", "meta_description": "Discover how AI is transforming medical diagnosis...", "url_slug": "ai-medical-diagnosis-healthcare-technology", "blog_tags": ["AI healthcare", "medical diagnosis", "healthcare technology"], "blog_categories": ["Healthcare Technology", "Artificial Intelligence"], "social_hashtags": ["#AIHealthcare", "#MedicalAI", "#HealthTech"] }, "schedule_time": "2024-01-20T09:00:00Z" } ``` **What Happens**: 1. **Platform Integration**: Connects to WordPress or Wix 2. **Content Formatting**: Formats content for target platform 3. **Metadata Application**: Applies SEO metadata and tags 4. **Publishing**: Publishes content or schedules for later **Expected Duration**: 5-15 seconds ### Step 2: Verify Publication **Success Indicators**: - ✅ Content published successfully - ✅ SEO metadata applied correctly - ✅ Social media tags included - ✅ URL generated and accessible - ✅ Scheduled publication confirmed (if applicable) ## 🔄 Blog Rewrite Workflow The Blog Writer includes a sophisticated rewrite system for content improvement: ```mermaid flowchart TD Start([User Provides Feedback]) --> Analyze[Analyze Original Content] Analyze --> Extract[Extract Improvement Areas] Extract --> Plan[Plan Rewrite Strategy] Plan --> Preserve[Preserve Core Elements] Plan --> Enhance[Enhance Identified Areas] Plan --> Add[Add New Elements] Preserve --> Structure[Maintain Structure] Preserve --> Arguments[Keep Main Arguments] Preserve --> Data[Preserve Key Data] Enhance --> Engagement[Improve Engagement] Enhance --> Clarity[Enhance Clarity] Enhance --> Examples[Add Examples] Add --> Hook[Compelling Hook] Add --> Transitions[Better Transitions] Add --> CTA[Strong Call-to-Action] Structure --> Rewrite[Generate Rewritten Content] Arguments --> Rewrite Data --> Rewrite Engagement --> Rewrite Clarity --> Rewrite Examples --> Rewrite Hook --> Rewrite Transitions --> Rewrite CTA --> Rewrite Rewrite --> Quality[Quality Assessment] Quality --> Compare[Compare Improvements] Compare --> Final[Final Review] Final --> Complete([Enhanced Blog]) style Start fill:#e3f2fd style Analyze fill:#e8f5e8 style Plan fill:#fff3e0 style Rewrite fill:#fce4ec style Quality fill:#f1f8e9 style Complete fill:#e1f5fe ``` ## 🔀 Workflow Decision Tree The Blog Writer adapts its workflow based on your specific needs: ```mermaid flowchart TD Start([Start Blog Creation]) --> Input{What's your content goal?} Input -->|Quick Content| Quick[Medium Blog Generation