Skip to content

Repository files navigation

🤖 Twitter Autopilot Agent

Hệ thống quản lý Twitter tự động 100% — từ tìm content, tạo bài, chọn giờ, đăng bài, trả lời, phân tích đến tối ưu.

✨ Tính năng chính

  • 🔄 Autopilot Daily Cycle — Chạy tự động hàng ngày
  • ✍️ Auto Content Generation — Tự tạo nội dung từ tin tức
  • 📅 Smart Scheduling — 7 khung giờ tối ưu mỗi ngày
  • 💬 Auto Reply — Trả lời mentions tự động
  • 📊 Analytics & Reports — Phân tích hiệu suất
  • 🔥 Viral Strategy — 8 mẫu nội dung viral
  • 👀 Competitor Tracking — Theo dõi đối thủ
  • ♻️ Content Recycling — Tái sử dụng nội dung evergreen
  • Rate Limit Protection — Quản lý API limits

🏗️ Kiến trúc

twitter-agent/
├── agent.js                        # Core agent
├── twitter-api.js                  # Twitter API v2 client
├── scheduler.js                    # Tweet scheduler
├── replier.js                      # Auto-reply engine
├── analytics.js                    # Performance analytics
├── viral-strategy.js               # Viral content strategy
├── autopilot/                      # Autopilot system
│   ├── autopilot.js                # Daily cycle orchestrator
│   └── autopilot-cli.js            # Full CLI
├── content-engine/                 # Content engine
│   ├── content-engine.js           # Content generation
│   ├── project-tracker.js          # Project tracking (32+ presets)
│   ├── web-fetcher.js              # Web content fetching
│   ├── quote-finder.js             # Viral tweet finder
│   ├── competitor-tracker.js       # Competitor analysis
│   ├── daily-report.js             # Daily reports
│   ├── rate-limit-manager.js       # API rate limiting
│   └── content-recycler.js         # Evergreen recycling
└── cli.js                          # Basic CLI

🚀 Quick Start

1. Clone

git clone https://github.com/YOUR_USERNAME/twitter-autopilot.git
cd twitter-autopilot

2. Get Twitter API Keys

  1. Vào developer.twitter.com
  2. Tạo Project & App
  3. Set permissions = "Read and Write"
  4. Lấy API Key, API Secret, Access Token, Access Token Secret

3. Initialize

node autopilot/autopilot-cli.js init \
  --api-key YOUR_API_KEY \
  --api-secret YOUR_API_SECRET \
  --token YOUR_ACCESS_TOKEN \
  --token-secret YOUR_ACCESS_TOKEN_SECRET

4. Quick Start

# Thêm dự án
node autopilot/autopilot-cli.js quickstart all

# Set profile
node autopilot/autopilot-cli.js profile --handle @you --niche crypto --tone professional

# Test (dry run)
node autopilot/autopilot-cli.js run --dry

# Live
node autopilot/autopilot-cli.js run --wet

📋 Commands

# Quản lý dự án
node autopilot/autopilot-cli.js track list          # Xem danh sách
node autopilot/autopilot-cli.js track crypto         # Thêm crypto projects
node autopilot/autopilot-cli.js track ai             # Thêm AI projects
node autopilot/autopilot-cli.js track all            # Thêm tất cả

# Profile
node autopilot/autopilot-cli.js profile --handle @you --niche crypto

# Content
node autopilot/autopilot-cli.js content stats        # Thống kê content pool
node autopilot/autopilot-cli.js fetch                # Tìm nội dung mới

# Autopilot
node autopilot/autopilot-cli.js run --dry            # Test mode
node autopilot/autopilot-cli.js run --wet            # Live mode

# Tweet
node autopilot/autopilot-cli.js tweet "Hello!"       # Đăng tweet
node autopilot/autopilot-cli.js thread "T1" "T2"     # Đăng thread
node autopilot/autopilot-cli.js analyze "My tweet"   # Phân tích viral

# Status & Config
node autopilot/autopilot-cli.js status               # Xem trạng thái
node autopilot/autopilot-cli.js config autoPost on   # Bật auto post

📦 32+ Preset Projects

Category Projects
Crypto Bitcoin, Ethereum, Solana, BNB, Avalanche, Polygon, Arbitrum, Optimism, Cardano, Polkadot, Chainlink, Uniswap, Aave, MakerDAO
AI OpenAI, Anthropic, Google AI, Meta AI, Mistral, Stability AI, Midjourney, NVIDIA
Tech Tesla, Apple, Microsoft, SpaceX
DeFi Jupiter, Raydium, PancakeSwap, Curve
NFT Blur, OpenSea

🔄 Daily Cycle

08:30  📰 News Update
10:00  📊 Analysis
12:00  💬 Engagement
14:30  💭 Quote Tweet
17:00  🧵 Thread
19:30  📰 Evening News
21:00  📋 Daily Summary

💰 Chi phí

Khoản Chi phí
Twitter API (Free tier) $0
Developer Account $0
Code $0
Server (tùy chọn) $0 - $5/tháng
Tổng $0 - $5/tháng

⚠️ Lưu ý

  • Cần Twitter Developer Account (miễn phí)
  • Free tier: 1,500 tweets/tháng
  • Luôn test với --dry trước khi live
  • Không spam — tuân thủ rate limits

📄 License

MIT

About

Twitter Autopilot Agent - Quản lý Twitter tự động 100%

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages