You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WhatsApp Cloud API错误131008:表单模板缺少流程按钮组件

解决WhatsApp表单模板发送错误131008

错误131008的核心原因是:发送表单(Flow)类型的模板时,API强制要求在template['components']中显式指定流程按钮组件,哪怕你的模板没有输入参数。

修改后的请求代码

把你原来的请求补充components字段,结构如下:

{
  "messaging_product": "whatsapp",
  "to": "971551941834",
  "type": "template",
  "template": {
    "name": "searchform",
    "language": {
      "code": "en_US"
    },
    "components": [
      {
        "type": "button",
        "sub_type": "flow",
        "index": "0",
        "parameters": [
          {
            "type": "action",
            "action": {
              "name": "flow",
              "parameters": {
                "flow_id": "<替换为你的表单Flow ID>",
                "mode": "draft" // 正式发布后改为"published"
              }
            }
          }
        ]
      }
    ]
  }
}

关键说明

  • flow_id:需要替换成你在Meta Business Manager中创建表单模板时对应的Flow ID,可在模板详情页或Flow编辑器的设置里找到
  • mode:如果你的Flow还在测试草稿阶段,用draft;正式发布后改为published
  • 这个流程按钮组件是触发表单的必要入口,无论模板是否有参数,都必须包含在请求中

内容的提问来源于stack exchange,提问作者Nitin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 09:47:07