Skip to content

Add Protocolo_Soberania_V10_Social_Sync bridge (Drive → OpenAI → Instagram)#103

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/create-social-sync-protocol
Draft

Add Protocolo_Soberania_V10_Social_Sync bridge (Drive → OpenAI → Instagram)#103
Copilot wants to merge 1 commit intomainfrom
copilot/create-social-sync-protocol

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

Implements the Protocolo_Soberania_V10_Social_Sync Make.com automation flow that watches a Google Drive folder, generates an aristocratic caption via OpenAI (referencing patent PCT/EP2025/067317), and publishes to Instagram Business.

Changes

  • api/social_sync_bridge.py — new module containing:
    • SOCIAL_SYNC_FLOW constant encoding the 3-step Make.com scenario
    • POST /api/social_sync — validates social_post_pau event, forwards payload to MAKE_SOCIAL_SYNC_WEBHOOK_URL asynchronously
    • GET /api/social_sync/flow — exposes the flow config as JSON
  • api/index.py — mounts social sync routes via register_social_sync_fastapi(app)
  • tests/test_social_sync_bridge.py — 13 unit tests covering flow structure, module metadata, event allowlist, and webhook URL resolution

Flow structure

SOCIAL_SYNC_FLOW = {
    "name": "Protocolo_Soberania_V10_Social_Sync",
    "flow": [
        {"id": 1, "module": "google-drive:watch-files",              # watches PAU_ASSETS_STIRPE
         "metadata": {"folder": "PAU_ASSETS_STIRPE", ...}},
        {"id": 2, "module": "openai:create-completion",              # Stirpe Lafayette caption
         "metadata": {"model": "gpt-4-luxury-edition", ...}},
        {"id": 3, "module": "instagram-business:create-photo-post",  # publishes asset
         "metadata": {"image_url": "{{1.webContentLink}}", "caption": "{{2.choices[].text}}"}},
    ],
    "metadata": {"version": "V10_OMEGA", "author": "P.A.U. Agent"},
}

Requires env var MAKE_SOCIAL_SYNC_WEBHOOK_URL.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-pilot Error Error Apr 6, 2026 8:56pm

Request Review

Copilot AI changed the title [WIP] Add social sync protocol for Pau and Tía Loki Add Protocolo_Soberania_V10_Social_Sync bridge (Drive → OpenAI → Instagram) Apr 6, 2026
Copilot AI requested a review from LVT-ENG April 6, 2026 20:57
Copy link
Copy Markdown
Member

@LVT-ENG LVT-ENG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants