Template repo for per-handle Twitter/X automation bots. Used by the Trend2Reels dashboard to auto-provision new Twitter handles.
- Create a new repo from this template (or use the Trend2Reels "Add Handle" flow)
- Update
config.jsonwith your handle's niche, persona, topics, and CTAs - Replace seeds in
src/content_vault.pywith niche-specific content - Set GitHub Secrets (see
.env.examplefor the full list) - The
tweet.ymlworkflow runs on cron (5x/day) and manual dispatch
| Secret | Description |
|---|---|
TWITTER_API_KEY |
Twitter OAuth consumer key |
TWITTER_API_SECRET |
Twitter OAuth consumer secret |
TWITTER_ACCESS_TOKEN |
Twitter OAuth access token |
TWITTER_ACCESS_TOKEN_SECRET |
Twitter OAuth access token secret |
HANDLE_ID |
UUID from twitter_handles table (for Trend2Reels sync) |
ANTHROPIC_API_KEY |
Anthropic Claude API key |
SUPABASE_URL |
Supabase project URL |
SUPABASE_SERVICE_ROLE_KEY |
Supabase service role key |
Optional: OPENAI_API_KEY, GOOGLE_GEMINI_API_KEY, EMAIL_SENDER, EMAIL_SENDER_PASSWORD, EMAIL_RECIPIENT