登录开始免费试用
Meta Tech Provider

WhatsApp 订单确认与发货更新,自动完成

自动发送的 WhatsApp 订单确认,是经过审核的实用类模板。当订单发生某个事件时,店铺自己的系统通过 Meta 的 Cloud API 发送这些模板:已下单、已发货、派送中、已送达。根据 Meta 实用类的要求,每个模板都会注明具体订单,不含任何优惠。客户回复后会开启一个 24 小时窗口期,在此期间可以继续发送自动回复。

easyCoexistence 通过 Coexistence 将您店铺已在应用中使用的 WhatsApp Business 号码连接到 Meta 的 Cloud API,并通过控制台或 get_api_credentials 为店铺提供凭证,使订单确认与发货更新来自客户熟悉的号码,并显示在应用的聊天中。

Utility

Meta 的一个类别,用于确认、更新或取消订单的消息,内容需包含具体的订单详情,且不含推广或追加销售。

Mixed content

若订单更新中包含促销内容,Meta 会将该模板归类为营销类模板。

30 days

实用类模板的默认存活时间;也可改为 30 秒至 12 小时。

250

新的 Business Portfolio 在滚动的 24 小时内,可在客服窗口期外发送消息的不重复用户数量。

20 msg/s

同时用于 WhatsApp Business 应用和 Cloud API 的号码,其吞吐量是固定的。

Mirrored

通过 Coexistence 号码上的 Cloud API 发送的消息,也会显示在 WhatsApp Business 应用中。

哪些订单消息可以自动发送?

订单生命周期中的每个时刻都可以有自己的已审核模板,由店铺的系统在该时刻发生时发送。Meta 的实用类指南正好列出这些用途:确认订单、提供追踪编号和送达日期、提醒某商品缺货,以及确认退款。每个事件使用一个模板,这样每个模板只表达一件事,修改其中一个时不会影响其他模板。如果店铺当天发货,可能只需要其中三个。

order_confirmedOrder placed: the order number and what happens next
order_shippedFulfilled: the carrier, the tracking number and the expected date
out_for_deliveryOn the way today: short-lived, so give it a short time-to-live
order_deliveredDelivered: how to report a problem with the order
order_delayedBackordered or late: the new estimate and the option to cancel
refund_processedReturn received: the amount refunded and the order number

实用类订单模板是什么样的?

正文很简短,包含客户姓名和订单信息,并附带示例值的位置变量,还可以加一个可选按钮。下面的示例,是 AI 在收到请求“为已发货订单创建带追踪按钮的实用类模板”后,通过 create_template 提交的内容。追踪按钮的 URL 末尾带有一个变量,发送时会按每个订单填入对应值。变量之后必须再写一些文字,因为 Meta 会拒绝以变量结尾的正文。请不要加入折扣、商品推荐或评价请求:只要包含其中任何一项,模板就会被归为营销类。

create_template arguments for a shipping update
{
  "connection_id": "<from list_numbers>",
  "name": "order_shipped",
  "language": "en_US",
  "category": "UTILITY",
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{1}}, your order #{{2}} has shipped with {{3}}. It should arrive by {{4}}.",
      "example": { "body_text": [["Ana", "1042", "DHL", "Friday, May 8"]] }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "Track package",
          "url": "https://shop.example.com/track/{{1}}",
          "example": ["https://shop.example.com/track/1042"]
        }
      ]
    }
  ]
}

店铺如何发送每次更新?

通过 Meta 的 Cloud API,由店铺自己的系统使用该号码的凭证发送。在 easyCoexistence 控制台中,号码的“接入自有系统”卡片会显示发送端点和“显示访问令牌”;您的 AI 可以通过 get_api_credentials 返回相同的值。店铺系统,或监听其订单事件的 n8n、Make 或 Zapier 工作流,每位客户发送一次请求,并从订单记录中填入变量。追踪按钮的变量需放在单独的按钮组件中,如本次请求所示。如果不想写 Graph 代码,也可以用触发器为“您的系统调用 URL”的自动化来发送:店铺将 {"to": "+5511987654321", "name": "Ana", "order": "1042"} 发送到编辑器中显示的 URL,并以该自动化的密钥作为 Bearer 令牌,“发送模板”步骤则根据 {{vars.webhook.name}} 和 {{vars.webhook.order}} 填入模板。

The store's send request when an order ships
POST https://graph.facebook.com/<VERSION>/<PHONE_NUMBER_ID>/messages
Authorization: Bearer <ACCESS_TOKEN>

{
  "messaging_product": "whatsapp",
  "to": "5511987654321",
  "type": "template",
  "template": {
    "name": "order_shipped",
    "language": { "code": "en_US" },
    "components": [
      { "type": "body", "parameters": [
        { "type": "text", "text": "Ana" },
        { "type": "text", "text": "1042" },
        { "type": "text", "text": "DHL" },
        { "type": "text", "text": "Friday, May 8" }
      ]},
      { "type": "button", "sub_type": "url", "index": "0",
        "parameters": [{ "type": "text", "text": "1042" }] }
    ]
  }
}

您的 AI 能否改为发送订单更新?

可以,适用于需要由人来决定的更新。通过 ChatGPT 或 Claude 中的 easyCoexistence 连接器,“告诉号码 5511987654321 的 Ana,订单 1042 将延迟到周一,使用 order_delayed 模板”,就会变成对一位收件人的一次 send_template 调用,ChatGPT 可能会在执行前请您确认。这适合延迟的包裹、人工订单或新模板的测试。日常的常规更新应放在店铺系统中,因为 AI 助手只在有人与它对话时才会行动。这些更新应从店铺系统发出,或通过由您的系统调用其 URL 来启动的自动化发出,这种自动化可以向并非刚刚给该号码发过消息的客户发送已批准的模板。

客户回复更新后会发生什么?

回复会进入 WhatsApp Business 应用,与店铺发出的模板显示在一起,并开启一个 24 小时窗口期,在此期间可以发送任何文本回复。若号码的消息经由 easyCoexistence 传递,回复还可以触发自动化。“包含关键词”的自动化可以捕获订单相关问题,并通过“调用我的 Webhook”将其转发到您的后端,订单状态页面中有该设置的说明。模板中的快速回复按钮,例如“更改地址”,会以带有按钮文字的消息到达,因此设置为“完全匹配”的关键词自动化可以响应这次点击。需要注意一点:近期没有聊天记录的客户,会被视为首次发消息,因此“首次消息问候语”的措辞应适合在订单更新之后阅读;而订单更新是通过由您的系统启动的自动化发出的客户,在我们这边已有聊天,因此其回复不算首次消息。

如何知道更新已送达客户?

Meta 会通过其 Webhook 报告号码外发消息的已发送、已送达、已读或失败状态。号码设为“通过 easyCoexistence”并设置了转发 URL 后,这些状态会按号码签名,连同 Meta 的原始负载一并送达您的系统;选择“直接发送到您的系统”时,Meta 会将它们发送到您的端点。只有在收到已送达状态后,才能将更新标记为已送达,因为请求被接受并不等于已送达。对于有时效性的更新,存活时间很重要:Meta 默认会在 30 天内持续重试实用类模板,因此 out_for_delivery 应设为几小时。一旦超过该时间,Meta 会丢弃该消息,而不是投递昨天的消息。

设置方法

  1. Collect WhatsApp opt-in at checkoutAdd a line near the phone field that names your business and says order updates come by WhatsApp, and save the phone in international format.
  2. Get the templates approvedAsk your AI to create order_confirmed, order_shipped and order_delivered as UTILITY with create_template, then check get_template_status until each reads APPROVED.
  3. Copy the credentialsOpen the number in the dashboard, find "Plug in your own system", copy the Send endpoint and click "Reveal access token". Store the token on a server.
  4. Wire each order event to a sendIn your store or n8n workflow, post the matching template when an order is placed, fulfilled or delivered, with the variables taken from the order.
  5. Answer the repliesKeep the number on Through easyCoexistence under Where incoming messages go, and add a keyword automation with Call my webhook for order questions, plus a Forward URL to receive delivery statuses.

常见错误

  • 在发货模板中加入“下次订单享 10% 折扣”。Meta 会把混合内容视为营销,因此该更新即使已通过审核,或之后被重新归类,也会按营销类模板被计费和限制。
  • 在自动化的“发送模板”步骤中选择了追踪模板。自动化目前还无法填写带变量的 URL 按钮,因此请从店铺系统发送。
  • out_for_delivery 保留 30 天的默认存活时间。两天后重新上线的手机仍会收到“今天送达”;请设为几小时。
  • 把 Meta 响应中的消息 ID 当作送达凭证。被接受的发送仍可能失败;请等待已送达状态后,再将更新标记为已发送。
使用 EasyCoexistence 完成这些操作

自动化负责回复客户消息,每个号码都会全天候监控,当 Meta 停止投递模板时会发送邮件通知。每个号码每月 US$ 9 起,号码越多越便宜,最低降至 US$ 0.75,前 3 天免费试用。

常见问题

需要事先取得客户同意吗?

需要。Meta 的政策涵盖企业主动发起的任何消息:客户已提供号码,并同意接收贵企业的消息。自 2024 年 11 月起,该许可可以是通用的,而不必专门针对 WhatsApp,只要它注明企业名称并遵守当地法律,因此在结账时加上一句清晰的说明即可。

Meta 会对订单确认收费吗?

Meta 按消息、类别和客户所在国家或地区,向您自己的 WhatsApp Business 账户计费;Meta 的定价页面列出了您所在市场的现行规则。easyCoexistence 不加收任何费用,也不收取每条消息的费用,自动化也无需额外付费。

确认信息可以附带 PDF 发票吗?

可以,从店铺系统发送即可:带有文档页眉的模板会在发送时接收 PDF 链接。自动化无法发送带有页眉媒体的模板。“发送图片或文件”步骤会发送您上传的 PDF,对所有人都相同,因此每份订单的发票需要从店铺或通过您的 AI 调用 send_template 发出。

如果客户的手机号码未注册 WhatsApp 怎么办?

Meta 会接受请求,随后报告失败状态,通常是无法投递消息的错误 131026。请让您的系统监控失败状态,并改用电子邮件或短信发送该客户的更新,这样不会因为结账时的一个输入错误而让任何人错过确认信息。

继续阅读

准备开始了吗?

几分钟即可设置 WhatsApp Coexistence,而不是几个月。应用会继续在手机上运行。

开始免费试用

验证时间