• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Venny

Venny

Chatbrain

Public
Like
Chatbrain
Home
Code
5
backend
3
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 milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/25/2025
Viewing readonly version of main branch: v11
View latest version
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.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.