Skip to content

toilville/notion-social-automation

Social Media Automation System

License Python Notion Claude ProleVibeSummer

A comprehensive automation pipeline that transforms your Notion content into engaging social media posts across multiple platforms using AI-powered content optimization.

πŸ§ͺ ProleVibeSummer Experiment

ProleVibeSummer is an AI experiment by Toilville: one week running a business entirely on AI tools to test hype vs. reality.

Goal: Answer "Is AI collaboration actually better work?" through documented business scenarios, iteration counts, and real-world results.

This social media automation system is a key deliverable from the ProleVibeSummer experiment, demonstrating practical AI collaboration in content creation and business automation.

🌟 What This Project Includes

  • πŸ€– AI Content Processing: Uses Claude 3.5 Sonnet to transform basic content into engaging social media posts
  • πŸ“… Smart Scheduling: GitHub Actions automation with optimal posting times
  • πŸ”„ Multi-Platform Publishing: Supports Bluesky, LinkedIn, and WordPress
  • πŸ“Š Notion Integration: Complete workflow management in your Notion workspace
  • πŸ› οΈ Debugging Tools: Comprehensive setup and troubleshooting utilities
  • πŸ“ˆ Analytics Ready: Framework for Phase 2 performance tracking

πŸš€ Quick Start

Prerequisites

  • Python 3.9+
  • Notion workspace with integration access
  • Anthropic Claude API key
  • Social media platform credentials

Installation

  1. Clone and setup:

    git clone https://github.com/yourusername/social-media-automation
    cd social-media-automation
    pip install -r requirements.txt
  2. Configure environment:

    cp .env.example .env
    # Edit .env with your actual API credentials
  3. Verify setup:

    python tools/setup_checker.py

πŸ“‹ Required Notion Database Schema

Create a Notion database with these properties:

Property Type Description
Title Title Your post title
Content Rich Text Original content
Publish Date Date When to publish
Platforms Multi-select Target platforms (Bluesky, LinkedIn, WordPress)
Status Select Draft β†’ Ready β†’ Posted
Generated Content Rich Text AI-processed content
AI Instructions Rich Text Custom AI prompts (optional)

πŸ”§ Setup & Configuration

1. Notion Integration

  1. Create integration at https://developers.notion.com/
  2. Share your database with the integration
  3. Add NOTION_TOKEN and NOTION_DATABASE_ID to .env

2. Claude AI Setup

  1. Get API key from https://console.anthropic.com/
  2. Add ANTHROPIC_API_KEY to .env

3. Platform Configuration

Bluesky: Add handles and app passwords
LinkedIn: Configure access token
WordPress: Set up REST API credentials

🎯 Usage

Manual Operation

# Process content with AI
python ai_content_processor.py

# Post to social media
python social_media_poster.py

# Run comprehensive tests
python testing_framework.py

Automated GitHub Actions

The system runs automatically:

  • AI Processing: Daily at 9 AM UTC
  • Publishing: 3x daily at optimal engagement times
  • Testing: Manual trigger available

πŸ› οΈ Debugging & Setup Tools

# Validate your setup
python tools/setup_checker.py

# Find suitable Notion databases
python tools/notion_database_explorer.py

# Debug database structure
python tools/debug_database.py

πŸ“Š Workflow

  1. Create content in Notion with publish date and platforms
  2. AI processing transforms Draft β†’ Ready with engaging copy
  3. Automated publishing at optimal times across platforms
  4. URLs tracked back to Notion automatically

πŸ” Security & Privacy

  • Environment variables protected by .gitignore
  • No hardcoded credentials in source code
  • Test mode available for safe development
  • Comprehensive error handling and logging

🀝 Contributing

We welcome contributions! Please see our Contributing Guide and Code of Conduct.

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Install dependencies: pip install -r requirements.txt
  4. Make your changes
  5. Test thoroughly
  6. Submit a pull request

πŸ“ˆ Roadmap

Phase 1: Core Automation βœ…

  • AI content processing with Claude
  • Multi-platform publishing
  • Notion workflow management

Phase 2: Analytics & Insights πŸ”„

  • Performance tracking across platforms
  • Content optimization recommendations
  • Umami analytics integration
  • Weekly automated reports

Phase 3: Advanced Features πŸ“‹

  • Custom AI prompts per platform
  • Content scheduling optimization
  • Advanced analytics dashboard
  • Community management tools

πŸ§ͺ Testing

The project includes comprehensive testing tools:

# Run all connection tests
python testing_framework.py

# Test specific components
python ai_content_processor.py  # AI processing
python social_media_poster.py   # Publishing

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Anthropic for Claude AI
  • Notion for workspace integration
  • Bluesky for social platform support
  • The open source community for inspiration and tools

πŸ“ž Support


Made with ❀️ for the creator economy. Share your automation success stories!

About

No description or website provided.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •  

Languages