Social Media Bot Setup Guide #

This guide will help you configure the Social Media Automation Bot workflow.

Required GitHub Secrets #

The workflow requires the following secrets to be set up in your GitHub repository. Add them by going to:
Settings → Secrets and variables → Actions → New repository secret

Required Secrets: #

Secret Name Description Example
GROQ_API_KEY API key from Groq for content generation gsk_xxxxxxxxxxxxx
META_ACCESS_TOKEN Facebook/Instagram access token EAAxxxxxxxxxxxx
FB_PAGE_ID Your Facebook Page ID 123456789
IG_USER_ID Your Instagram Business Account ID 987654321

Optional: #

How to Get Each Secret: #

1. GROQ_API_KEY #

2. META_ACCESS_TOKEN #

3. FB_PAGE_ID #

4. IG_USER_ID #

Workflow Behavior #

The workflow runs automatically every 8 hours (configured via cron: 0 */8 * * *) or manually via GitHub Actions.

On Success: #

On Failure: #

Workflow Logs #

To check workflow logs:

  1. Go to your repository
  2. Click on Actions tab
  3. Click on Social Media Automation Bot
  4. Select the most recent run
  5. Click on the post job to view detailed logs

Troubleshooting #

"Missing required secrets" error #

"Failed to post to social media" error #

No posts happening #

Manual Trigger #

To run the bot manually:

  1. Go to Actions tab in your repository
  2. Select Social Media Automation Bot
  3. Click Run workflow
  4. Select the branch (main) and click Run workflow

Notes #