Social Media Content Creator Bot

An intelligent social media bot that automatically generates and posts engaging content across multiple platforms.

Features

  • šŸ¤– AI-powered content generation
  • šŸ“… Automated scheduling with cron jobs
  • šŸŽÆ Multiple content types (quotes, tips, facts, etc.)
  • šŸ”„ Multi-platform support (Twitter, LinkedIn, etc.)
  • šŸ“Š Content tracking and analytics
  • šŸŽØ Dynamic hashtag generation
  • āš™ļø Configurable posting frequency

Project Structure

ā”œā”€ā”€ backend/
│   ā”œā”€ā”€ index.ts              # Main HTTP API
│   ā”œā”€ā”€ content-generator.ts  # AI content generation
│   ā”œā”€ā”€ social-platforms.ts   # Platform integrations
│   └── scheduler.ts          # Posting scheduler
ā”œā”€ā”€ cron-poster.ts           # Automated posting cron job
ā”œā”€ā”€ shared/
│   └── types.ts             # Shared types and interfaces
└── README.md

Setup

  1. Set up environment variables:

    • OPENAI_API_KEY (for content generation)
    • TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_SECRET
    • LINKEDIN_ACCESS_TOKEN (optional)
  2. Configure content settings in backend/content-generator.ts

  3. Set up the cron job schedule in Val Town UI for automated posting

Usage

  • Manual posting: Make HTTP requests to trigger content generation and posting
  • Automated posting: Cron job runs on schedule to post content automatically
  • Content management: View and manage generated content through the API

API Endpoints

  • GET / - Dashboard and manual controls
  • POST /generate - Generate new content
  • POST /post - Post content to social media
  • GET /content - View recent content
  • POST /schedule - Schedule content for later

Content Types

The bot can generate various types of content:

  • Motivational quotes
  • Tech tips and insights
  • Daily facts and trivia
  • Industry news commentary
  • Inspirational stories
  • Educational content

Customize content types in the configuration to match your brand voice and audience.