All projects · AI Agents & RAG
PulseDistributor: Dual AI Caption Agents & Meta Graph API Pipeline
An autonomous social media distribution engine consuming yesterday's Vertex AI generated creative to craft platform-specific copy via dual OpenAI…
An autonomous social media distribution engine consuming yesterday's Vertex AI generated creative to craft platform-specific copy via dual OpenAI GPT-4o agents and execute automated multi-channel publishing to Instagram and Facebook via Meta Graph API v20.0.
- Consumes persisted creative assets from yesterday's upstream Google Vertex AI generation pipeline (#37)
- Orchestrates dual specialized OpenAI GPT-4o agents: mobile high-hook copy for Instagram vs narrative storytelling for Facebook
- Solves the Meta Token Hierarchy: short-lived user tokens to long-lived tokens to permanent Facebook Page Access Tokens
- Resolves connected Instagram Professional Account ID from the Facebook Page connection via Graph API fields
- Executes Instagram's mandatory 2-step media container lifecycle (POST /{ig_id}/media -> POST /media_publish)
- Executes Facebook Page photo publishing (POST /{page_id}/photos) and tracks live status in Supabase table social_distributions
- Features interactive 19-node n8n canvas, token hierarchy studio, live mobile Instagram & Facebook feed mockups, and 8-point diagnostic test suite
Built with: n8n, Meta Graph API, Instagram Graph API, Facebook Graph API, OAuth2, OpenAI GPT-4o, LangChain, Supabase Database, Python