暂无简介
- License 许可
- MIT
- 最近更新
- 2026-07-16
- Stars
- ★ 7
- Forks
- 0
03 SKILL.md 正文
Instagram Channel
Connect Automyx to Instagram Direct Messages via the Instagram Graph API.
Requirements
- Facebook Business account connected to an Instagram Professional or Creator account
- Facebook App with these permissions:
instagram_business_basicinstagram_business_manage_messagespages_show_listpages_messaging
- A Page Access Token that includes the
instagram_business_manage_messagespermission
Setup
- Create a Meta App at https://developers.facebook.com/apps
- Add the Instagram product
- Connect your Instagram Professional account to a Facebook Page
- Generate a Page Access Token with the required permissions
- Set in
.env:INSTAGRAM_PAGE_ID=17841234567890123 INSTAGRAM_ACCESS_TOKEN=EAAJ...
Run
python instagram_bot.py
Features
| Capability | Status |
|---|---|
| Text DMs | ✅ |
| Image attachments | ✅ (via file.io fallback) |
| Story replies | ⏳ planned |
| Quick replies | ⏳ planned |
| Webhook (real-time) | ⏳ needs server |
Webhook Setup (Recommended)
The polling skeleton in instagram_bot.py is for development. For production:
- Expose
https://your-domain.com/webhook/instagram(HTTPS required) - Verify the webhook at https://developers.facebook.com/apps → Webhooks
- Subscribe to
messagesfield - Forward events to
handle_event(event, page_id, token)
Example webhook server (Flask)
from flask import Flask, request
from instagram_bot import handle_event
import os
app = Flask(__name__)
PAGE_ID = os.environ["INSTAGRAM_PAGE_ID"]
TOKEN = os.environ["INSTAGRAM_ACCESS_TOKEN"]
@app.post("/webhook/instagram")
def webhook():
body = request.get_json()
for entry in body.get("entry", []):
for event in entry.get("messaging", []):
handle_event(event, PAGE_ID, TOKEN)
return "ok", 200
Limits
- Text messages: 1000 chars max
- Image: must be public URL (IG doesn't accept base64 directly) — we use file.io as a temporary public host
- Rate limits: 200 calls/hour per page
Troubleshooting
- Token rejected: regenerate from Graph API Explorer with the right permissions
- No messages arriving: confirm the IG account is Professional (not Personal) and linked to a Page
- Can't send image: check that file.io is reachable from your server (or replace with S3/your CDN)
04 同仓库更多 Skills
youtube-creator-pro
YouTuber pro. Retention, CTR, thumbnails, titles, SEO, monetización, Shorts, memberships.
web_development
y actualiza esto en el repo en readme y en doc osea porque sale q vale 375 mil a 500k y se supone qu
wallstreet-analyst
Trader Cuantitativo institucional. Analiza gráficos web, datos CSV, Order Blocks y Liquidity Pools.
vyrex-studio-expert
Experto en producción de video profesional: cloud (Vyrex Studio, Gemini Veo 3.1) + local con VideoProTools (intro, promo, lower third, join con transiciones, slideshow, edición).
voice-engineer
Ingeniero de voz senior. TTS, STT, voice cloning, ElevenLabs, Whisper, audio pipelines, accesibilidad.
video_editing
el diseño esta bueno pero se puede mejorar, mejoralo añade videos de comidas rapidas, y ordena el di