FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
Venny
VennyChatbrain
Public
Like
Chatbrain
Home
Code
5
backend
6
frontend
1
shared
1
README.md
C
cron-poster.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
README.md

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.

Code
backendfrontendsharedREADME.md
C
cron-poster.ts
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.