📱 Social Media Automation - Quick Start Guide banner
hoangsonww hoangsonww

📱 Social Media Automation - Quick Start Guide

Data community intermediate

Description

An AI-powered social media automation system built on the Agentic AI Pipeline.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for hoangsonww/Agentic-AI-Pipeline, shared by 3 entries in this directory. It describes the repository, not this entry specifically.

📱 Social Media Automation - Quick Start Guide

An AI-powered social media automation system built on the Agentic AI Pipeline.

🚀 Features

  • AI Content Generation: Create engaging posts with GPT-4 or Claude
  • Multi-Platform Support: Twitter, LinkedIn, Instagram, Facebook
  • Smart Scheduling: Post at optimal times automatically
  • Campaign Management: Run multi-day, multi-platform campaigns
  • Thread Generation: Create Twitter threads automatically
  • Hashtag Recommendations: AI-powered hashtag suggestions
  • Analytics: Track performance across platforms
  • Web Dashboard: Beautiful UI for managing everything

âš¡ Quick Start

1. Install Dependencies

pip install -r requirements.txt

2. Set Up API Keys

Copy the example environment file:

cp .env.social_media.example .env

Edit `.env` and add your API keys:

# Minimum required (for content generation)
OPENAI_API_KEY=your_key_here

# Optional: Social media platform keys
TWITTER_BEARER_TOKEN=your_token_here
LINKEDIN_ACCESS_TOKEN=your_token_here
# ... etc

**Note**: The system works in **simulation mode** without social media API keys. Posts will be created and scheduled but not actually published.

3. Start the Server

uvicorn agentic_ai.app:app --reload --host 0.0.0.0 --port 8000

4. Open the Dashboard

Navigate to: http://localhost:8000/social_media.html

📖 Usage Examples

Generate Content with AI

from agentic_ai.tools.content_generation import ContentGenerator
from agentic_ai.llm.client import get_llm

llm = get_llm()
generator = ContentGenerator(llm)

# Generate a post
content = await generator.generate_post_content(
    topic="AI innovation",
    platform="twitter",
    tone="professional"
)

# Generate hashtags
hashtags = await generator.generate_hashtags(content, "twitter", count=5)

Schedule a Post

from agentic_ai.social_media_scheduler import SocialMediaScheduler, ScheduledPost
from datetime import datetime, timedelta

scheduler = SocialMediaScheduler()

post = ScheduledPost(
    platform="twitter",
    content="Exciting AI news! 🚀",
    hashtags=["AI", "Tech"],
    scheduled_time=datetime.now() + timedelta(hours=2)
)

post_id = scheduler.schedule_post(post)

Create a Campaign

from agentic_ai.agents.social_media_agent import create_social_media_agent

agent = create_social_media_agent(llm)

result = await agent.create_content_campaign(
    topic="AI Innovation",
    platforms=["twitter", "linkedin"],
    duration_days=7,
    posts_per_day=2
)

Using the REST API

# Generate content
curl -X POST http://localhost:8000/api/social/generate-content \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "AI in Healthcare",
    "platform": "linkedin",
    "count": 3
  }'

# Schedule a post
curl -X POST http://localhost:8000/api/social/post \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "twitter",
    "c