Skip to content

Latest commit

 

History

History
114 lines (86 loc) · 2.63 KB

File metadata and controls

114 lines (86 loc) · 2.63 KB

InstaGist Quick Start - Local/Self-Hosted

Get your Instagram Gist bot running in 5 minutes on a self-hosted n8n instance.

For Render.com deployment: See DEPLOY_TO_RENDER.md instead.

TL;DR

  1. Install dependencies: yt-dlp and ffmpeg
  2. Import workflow to n8n: n8n-workflows/instagram-gist-workflow.json
  3. Add OpenAI API credentials in n8n
  4. Activate workflow
  5. Send POST request to webhook with Instagram URL

Prerequisites Checklist

  • Running n8n instance
  • OpenAI API key
  • yt-dlp installed on n8n server
  • FFmpeg installed on n8n server

Installation Commands

macOS

brew install yt-dlp ffmpeg

Linux (Ubuntu/Debian)

sudo apt update
sudo apt install ffmpeg
pip3 install yt-dlp

Verify

./scripts/check-dependencies.sh

n8n Setup (3 steps)

  1. Import Workflow

    • Open n8n
    • Workflows → Add Workflow → Import from File
    • Select: n8n-workflows/instagram-gist-workflow.json
  2. Add OpenAI Credentials

    • Credentials → Add Credential → OpenAI API
    • Paste your API key
    • Save
  3. Link Credentials & Activate

    • Open imported workflow
    • Link OpenAI credential to both "Transcribe" and "Summary" nodes
    • Toggle workflow to "Active"
    • Copy the webhook URL

Test It

curl -X POST YOUR_WEBHOOK_URL \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.instagram.com/reel/EXAMPLE/"}'

Or use the test script:

export WEBHOOK_URL="YOUR_WEBHOOK_URL"
./scripts/test-webhook.sh "https://www.instagram.com/reel/EXAMPLE/"

What You Get

{
  "summary": "• Point 1\n• Point 2\n• Point 3",
  "transcript": "Full transcription...",
  "videoId": "EXAMPLE",
  "processingTime": "45 seconds"
}

Common Issues

Problem Solution
"yt-dlp not found" Install on n8n server, not local machine
"ffmpeg not found" Install FFmpeg on n8n server
"Invalid API key" Check OpenAI credentials in n8n
"Video not accessible" Try a different public Instagram reel

Next Steps

  • Read full SETUP.md for detailed configuration
  • Review ARCHITECTURE.md to understand the system
  • Customize summary prompts in the GPT-4 node
  • Add caching to avoid reprocessing same URLs

Cost Estimate

Per video (30-60 seconds):

  • Whisper transcription: $0.01
  • GPT-4 summary: $0.02
  • Total: ~$0.03 per video

Use GPT-3.5-turbo instead of GPT-4 to reduce to ~$0.01 per video.

Support

Need help? Check:

  1. Full Setup Guide
  2. Troubleshooting
  3. n8n execution logs