{
  "skill_name": "Glitch Mega-Skill",
  "version": "1.0.0",
  "base_url": "https://agents.realtalkha.com/api/webhooks/glitch",
  "description": "Unified skill combining GHL MCP (36 tools), Skillboss (687 endpoints), and Arcee Trinity (400B reasoning)",
  "endpoints": {
    "unified": {
      "method": "POST",
      "path": "/",
      "description": "Single endpoint that routes to all capabilities based on 'action' field"
    },
    "ghl": {
      "method": "POST",
      "path": "/ghl",
      "description": "Execute any GHL MCP tool (contacts, conversations, opportunities, etc.)"
    },
    "search": {
      "method": "POST",
      "path": "/search",
      "description": "Web search via Perplexity or Linkup"
    },
    "scrape": {
      "method": "POST",
      "path": "/scrape",
      "description": "Scrape any URL to markdown"
    },
    "image": {
      "method": "POST",
      "path": "/image",
      "description": "Generate images (Flux HD, Gemini, Ghibli)"
    },
    "video": {
      "method": "POST",
      "path": "/video",
      "description": "Generate videos (Google Veo 3.1)"
    },
    "social": {
      "method": "POST",
      "path": "/social",
      "description": "Fetch social media profile data"
    },
    "tts": {
      "method": "POST",
      "path": "/tts",
      "description": "Text to speech (ElevenLabs)"
    },
    "stt": {
      "method": "POST",
      "path": "/stt",
      "description": "Speech to text (Whisper)"
    },
    "email": {
      "method": "POST",
      "path": "/email",
      "description": "Send emails via AWS SES"
    },
    "think": {
      "method": "POST",
      "path": "/think",
      "description": "Deep reasoning via Arcee Trinity 400B"
    },
    "slides": {
      "method": "POST",
      "path": "/slides",
      "description": "Generate presentations (Gamma)"
    },
    "landing": {
      "method": "POST",
      "path": "/landing",
      "description": "Generate landing pages (Stitch)"
    },
    "blog": {
      "method": "POST",
      "path": "/blog",
      "description": "Create blog posts in GHL"
    },
    "social_post": {
      "method": "POST",
      "path": "/social-post",
      "description": "Create/edit social media posts in GHL"
    },
    "tools": {
      "method": "GET",
      "path": "/tools",
      "description": "List all available capabilities"
    }
  },
  "ghl_workflow_examples": {
    "get_contacts": {
      "description": "Fetch contacts from a GHL workflow",
      "url": "https://agents.realtalkha.com/api/webhooks/glitch/ghl",
      "method": "POST",
      "body": {
        "tool": "contacts_get-contacts",
        "params": {"query_limit": "10"}
      }
    },
    "add_tags": {
      "description": "Add tags to a contact",
      "url": "https://agents.realtalkha.com/api/webhooks/glitch/ghl",
      "method": "POST",
      "body": {
        "tool": "contacts_add-tags",
        "contact_id": "{{contact.id}}",
        "tags": ["VIP", "New Lead"]
      }
    },
    "send_message": {
      "description": "Send a message to a contact",
      "url": "https://agents.realtalkha.com/api/webhooks/glitch/ghl",
      "method": "POST",
      "body": {
        "tool": "conversations_send-a-new-message",
        "params": {"body_contactId": "{{contact.id}}", "body_type": "SMS"},
        "message": "Hey! Just checking in. Let me know if you need anything."
      }
    },
    "search_web": {
      "description": "Search the web from a workflow",
      "url": "https://agents.realtalkha.com/api/webhooks/glitch/search",
      "method": "POST",
      "body": {
        "query": "best CRM automation strategies 2026"
      }
    },
    "generate_image": {
      "description": "Generate an image from a workflow",
      "url": "https://agents.realtalkha.com/api/webhooks/glitch/image",
      "method": "POST",
      "body": {
        "prompt": "Professional business logo, modern minimalist style",
        "model": "flux-1.1-pro"
      }
    },
    "deep_reasoning": {
      "description": "Use Arcee Trinity for complex analysis",
      "url": "https://agents.realtalkha.com/api/webhooks/glitch/think",
      "method": "POST",
      "body": {
        "prompt": "Analyze this lead's business and recommend the best approach",
        "context": "Lead info: {{contact.name}}, {{contact.company}}, {{contact.website}}"
      }
    }
  },
  "n8n_integration": {
    "description": "Use HTTP Request nodes in n8n to call any Glitch skill endpoint",
    "example_workflow": {
      "trigger": "GHL Workflow Webhook or Schedule",
      "steps": [
        "HTTP Request → POST https://agents.realtalkha.com/api/webhooks/glitch/",
        "Set action + params in JSON body",
        "Parse response → use data in next nodes"
      ]
    }
  }
}
