{
  "schemaVersion": "1.0",
  "item": {
    "slug": "whatsapp-business-api",
    "name": "WhatsApp Business API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/whatsapp-business-api",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/whatsapp-business-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/whatsapp-business-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=whatsapp-business-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "best-practices.md",
      "business.md",
      "flows.md",
      "media.md",
      "memory-template.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/whatsapp-business-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/whatsapp-business-api",
    "agentPageUrl": "https://openagent3.xyz/skills/whatsapp-business-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/whatsapp-business-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/whatsapp-business-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "WhatsApp Business API",
        "body": "Official Meta Cloud API integration. See auxiliary files for detailed operations."
      },
      {
        "title": "Quick Start",
        "body": "curl -X POST \"https://graph.facebook.com/v21.0/$WHATSAPP_PHONE_NUMBER_ID/messages\" \\\n  -H \"Authorization: Bearer $WHATSAPP_ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"messaging_product\":\"whatsapp\",\"to\":\"1234567890\",\"type\":\"text\",\"text\":{\"body\":\"Hello!\"}}'"
      },
      {
        "title": "Setup",
        "body": "On first use, read setup.md. Preferences stored in ~/whatsapp-business-api/memory.md."
      },
      {
        "title": "When to Use",
        "body": "Any WhatsApp Business operation: send messages, templates, media, interactive elements, manage webhooks, handle conversations, update business profiles."
      },
      {
        "title": "Architecture",
        "body": "~/whatsapp-business-api/\n├── memory.md      # Account context + phone numbers\n├── templates.md   # Approved templates reference\n└── webhooks.md    # Webhook configurations"
      },
      {
        "title": "Quick Reference",
        "body": "TopicFileSetup & memorysetup.md, memory-template.mdMessages (text, media, interactive)messages.mdTemplates (create, manage, send)templates.mdMedia (upload, download, manage)media.mdWebhooks & Eventswebhooks.mdBusiness Profile & Phone Numbersbusiness.mdFlows (interactive forms)flows.mdBest practices & limitsbest-practices.md"
      },
      {
        "title": "Core Rules",
        "body": "International format — Phone numbers without + or leading zeros: 1234567890\n24-hour window — Free replies within 24h of customer message; templates required to initiate\nTemplate approval — Templates need Meta approval (24-48h); test in sandbox first\nIdempotency — Use biz_opaque_callback_data to track message state\nWebhook verification — Always verify webhook signature with app secret\nRate limits — 80 messages/second per phone number; 1000 template messages/day (tier 1)\nMedia limits — Images <5MB, videos <16MB, documents <100MB"
      },
      {
        "title": "Authentication",
        "body": "Required environment variables:\n\nWHATSAPP_ACCESS_TOKEN — System User access token (permanent) or User access token (60-day)\nWHATSAPP_PHONE_NUMBER_ID — Your registered phone number ID\nWHATSAPP_BUSINESS_ACCOUNT_ID — Your WABA ID (for templates)\nWHATSAPP_APP_SECRET — App secret for webhook verification\n\ncurl \"https://graph.facebook.com/v21.0/$WHATSAPP_PHONE_NUMBER_ID\" \\\n  -H \"Authorization: Bearer $WHATSAPP_ACCESS_TOKEN\""
      },
      {
        "title": "Token Types",
        "body": "TypeDurationUse CaseSystem User TokenPermanentProduction appsUser Token60 daysDevelopment, testingTemporary Token24 hoursQuick tests"
      },
      {
        "title": "Common Traps",
        "body": "Phone format with + or 00 → API rejects\nMissing messaging_product: \"whatsapp\" → 400 error\nTemplate not approved → message fails silently\nWebhook signature not verified → security vulnerability\nSending outside 24h window without template → blocked"
      },
      {
        "title": "External Endpoints",
        "body": "EndpointPurposehttps://graph.facebook.com/v21.0/*Cloud API"
      },
      {
        "title": "Security & Privacy",
        "body": "Environment variables used:\n\nWHATSAPP_ACCESS_TOKEN — for API authentication\nWHATSAPP_APP_SECRET — for webhook signature verification\n\nSent to Meta: Messages, media, customer phone numbers via graph.facebook.com\nStays local: Tokens (never logged), ~/whatsapp-business-api/ preferences\nNever: Log message content, skip webhook verification, store tokens in code"
      },
      {
        "title": "Trust",
        "body": "This skill sends data to Meta (facebook.com/whatsapp)."
      },
      {
        "title": "Related Skills",
        "body": "Install with clawhub install <slug> if user confirms:\n\napi — REST API patterns\nwebhook — Webhook handling\nchat — Conversational patterns"
      },
      {
        "title": "Feedback",
        "body": "If useful: clawhub star whatsapp-business-api\nStay updated: clawhub sync"
      }
    ],
    "body": "WhatsApp Business API\n\nOfficial Meta Cloud API integration. See auxiliary files for detailed operations.\n\nQuick Start\ncurl -X POST \"https://graph.facebook.com/v21.0/$WHATSAPP_PHONE_NUMBER_ID/messages\" \\\n  -H \"Authorization: Bearer $WHATSAPP_ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"messaging_product\":\"whatsapp\",\"to\":\"1234567890\",\"type\":\"text\",\"text\":{\"body\":\"Hello!\"}}'\n\nSetup\n\nOn first use, read setup.md. Preferences stored in ~/whatsapp-business-api/memory.md.\n\nWhen to Use\n\nAny WhatsApp Business operation: send messages, templates, media, interactive elements, manage webhooks, handle conversations, update business profiles.\n\nArchitecture\n~/whatsapp-business-api/\n├── memory.md      # Account context + phone numbers\n├── templates.md   # Approved templates reference\n└── webhooks.md    # Webhook configurations\n\nQuick Reference\nTopic\tFile\nSetup & memory\tsetup.md, memory-template.md\nMessages (text, media, interactive)\tmessages.md\nTemplates (create, manage, send)\ttemplates.md\nMedia (upload, download, manage)\tmedia.md\nWebhooks & Events\twebhooks.md\nBusiness Profile & Phone Numbers\tbusiness.md\nFlows (interactive forms)\tflows.md\nBest practices & limits\tbest-practices.md\nCore Rules\nInternational format — Phone numbers without + or leading zeros: 1234567890\n24-hour window — Free replies within 24h of customer message; templates required to initiate\nTemplate approval — Templates need Meta approval (24-48h); test in sandbox first\nIdempotency — Use biz_opaque_callback_data to track message state\nWebhook verification — Always verify webhook signature with app secret\nRate limits — 80 messages/second per phone number; 1000 template messages/day (tier 1)\nMedia limits — Images <5MB, videos <16MB, documents <100MB\nAuthentication\n\nRequired environment variables:\n\nWHATSAPP_ACCESS_TOKEN — System User access token (permanent) or User access token (60-day)\nWHATSAPP_PHONE_NUMBER_ID — Your registered phone number ID\nWHATSAPP_BUSINESS_ACCOUNT_ID — Your WABA ID (for templates)\nWHATSAPP_APP_SECRET — App secret for webhook verification\ncurl \"https://graph.facebook.com/v21.0/$WHATSAPP_PHONE_NUMBER_ID\" \\\n  -H \"Authorization: Bearer $WHATSAPP_ACCESS_TOKEN\"\n\nToken Types\nType\tDuration\tUse Case\nSystem User Token\tPermanent\tProduction apps\nUser Token\t60 days\tDevelopment, testing\nTemporary Token\t24 hours\tQuick tests\nCommon Traps\nPhone format with + or 00 → API rejects\nMissing messaging_product: \"whatsapp\" → 400 error\nTemplate not approved → message fails silently\nWebhook signature not verified → security vulnerability\nSending outside 24h window without template → blocked\nExternal Endpoints\nEndpoint\tPurpose\nhttps://graph.facebook.com/v21.0/*\tCloud API\nSecurity & Privacy\n\nEnvironment variables used:\n\nWHATSAPP_ACCESS_TOKEN — for API authentication\nWHATSAPP_APP_SECRET — for webhook signature verification\n\nSent to Meta: Messages, media, customer phone numbers via graph.facebook.com Stays local: Tokens (never logged), ~/whatsapp-business-api/ preferences Never: Log message content, skip webhook verification, store tokens in code\n\nTrust\n\nThis skill sends data to Meta (facebook.com/whatsapp).\n\nRelated Skills\n\nInstall with clawhub install <slug> if user confirms:\n\napi — REST API patterns\nwebhook — Webhook handling\nchat — Conversational patterns\nFeedback\nIf useful: clawhub star whatsapp-business-api\nStay updated: clawhub sync"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/whatsapp-business-api",
    "publisherUrl": "https://clawhub.ai/ivangdavila/whatsapp-business-api",
    "owner": "ivangdavila",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/whatsapp-business-api",
    "downloadUrl": "https://openagent3.xyz/downloads/whatsapp-business-api",
    "agentUrl": "https://openagent3.xyz/skills/whatsapp-business-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/whatsapp-business-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/whatsapp-business-api/agent.md"
  }
}