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.
- Install dependencies:
yt-dlpandffmpeg - Import workflow to n8n:
n8n-workflows/instagram-gist-workflow.json - Add OpenAI API credentials in n8n
- Activate workflow
- Send POST request to webhook with Instagram URL
- Running n8n instance
- OpenAI API key
- yt-dlp installed on n8n server
- FFmpeg installed on n8n server
brew install yt-dlp ffmpegsudo apt update
sudo apt install ffmpeg
pip3 install yt-dlp./scripts/check-dependencies.sh-
Import Workflow
- Open n8n
- Workflows → Add Workflow → Import from File
- Select:
n8n-workflows/instagram-gist-workflow.json
-
Add OpenAI Credentials
- Credentials → Add Credential → OpenAI API
- Paste your API key
- Save
-
Link Credentials & Activate
- Open imported workflow
- Link OpenAI credential to both "Transcribe" and "Summary" nodes
- Toggle workflow to "Active"
- Copy the webhook URL
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/"{
"summary": "• Point 1\n• Point 2\n• Point 3",
"transcript": "Full transcription...",
"videoId": "EXAMPLE",
"processingTime": "45 seconds"
}| 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 |
- 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
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.
Need help? Check:
- Full Setup Guide
- Troubleshooting
- n8n execution logs