Back to Blog
Tutorials

Building Custom Topic Libraries with YAML Configuration

A technical guide to creating custom YAML topic configurations in MyPosts for tailored content generation.

David Childs
Share:

Understanding YAML Topic Configuration

MyPosts uses YAML files to define topic libraries, giving you complete control over content themes, styles, and variations. With 10+ pre-built libraries and unlimited custom options, you can create the perfect content mix.

YAML Structure Basics

Hierarchical Organization

Topics are organized in three levels:

  • Areas: Broad content categories
  • Categories: Specific topics within areas
  • Topics: Individual content prompts

Basic Structure Example

name: "Tech Innovation Library"
description: "Topics focused on technology and innovation"
areas:
  - name: "Artificial Intelligence"
    categories:
      - name: "Machine Learning"
        topics:
          - "Recent ML breakthroughs"
          - "ML applications in healthcare"
          - "Open source ML tools"
      - name: "AI Ethics"
        topics:
          - "Bias in AI systems"
          - "AI governance frameworks"

Pre-Built Libraries Available

MyPosts includes these ready-to-use libraries:

  • Tech: Technology trends and innovations
  • AI: Artificial intelligence and machine learning
  • Business: Business strategy and growth
  • Entrepreneurial: Startup and entrepreneurship topics
  • Academic: Educational and research content
  • Creative: Arts and creative industries
  • Lifestyle: Personal development and lifestyle
  • MyPosts Product: Product-specific content
  • Civics: Civic engagement and social issues
  • Politics: Political discourse and analysis

Creating Custom Libraries

Step 1: Define Your Structure

Plan your topic hierarchy:

name: "SaaS Marketing"
areas:
  - name: "Content Marketing"
  - name: "Product Marketing"
  - name: "Growth Strategies"

Step 2: Add Categories and Topics

Populate each area with specific categories:

areas:
  - name: "Content Marketing"
    categories:
      - name: "Blog Strategy"
        topics:
          - "SEO optimization tips"
          - "Content calendar planning"
          - "Guest posting strategies"

Step 3: Include Metadata

Add helpful metadata for better organization:

metadata:
  version: "1.0"
  author: "Your Name"
  created: "2025-08-25"
  tags: ["marketing", "saas", "b2b"]

Advanced Configuration Options

Topic Weights

Assign weights to prioritize certain topics:

topics:
  - text: "Product updates"
    weight: 3
  - text: "Industry news"
    weight: 1

Style Modifiers

Include style hints for AI generation:

categories:
  - name: "Thought Leadership"
    style: "authoritative, data-driven"
    topics:
      - "Industry predictions"

Time-Based Topics

Configure topics for specific times:

categories:
  - name: "Morning Motivation"
    time_window: "06:00-09:00"
    topics:
      - "Daily productivity tips"

Best Practices

Topic Variety

  • Include 15-30 topics per category
  • Mix evergreen and timely content
  • Balance promotional and value-driven topics

Naming Conventions

  • Use clear, descriptive names
  • Maintain consistent formatting
  • Avoid special characters in names

Organization Tips

  • Group related topics logically
  • Use categories for easy navigation
  • Keep hierarchy depth to 3 levels maximum

Using Your Custom Library

Upload Process

  1. Create your YAML file
  2. Navigate to Topics section in MyPosts
  3. Click "Upload Custom Library"
  4. Select your YAML file
  5. Validate and activate

Testing and Refinement

  • Generate sample content from each category
  • Monitor engagement metrics
  • Refine topics based on performance
  • A/B test different topic variations

Example: Complete E-commerce Library

name: "E-commerce Content"
description: "Comprehensive e-commerce topic library"
areas:
  - name: "Product Marketing"
    categories:
      - name: "Product Launches"
        topics:
          - "New product announcement"
          - "Feature highlights"
          - "Customer testimonials"
      - name: "Promotions"
        topics:
          - "Seasonal sales"
          - "Limited-time offers"
          - "Bundle deals"
  - name: "Customer Success"
    categories:
      - name: "Tips and Tutorials"
        topics:
          - "Product usage tips"
          - "Best practices"
          - "Common questions answered"

Start building your custom topic library today to create perfectly tailored content for your audience!

Want more insights like this?

Subscribe to our newsletter for the latest MyPosts updates and tutorials

Subscribe Now