WhatsApp 配置入门 whatsapp-config

在此页面上:​设置WhatsApp API凭据、Webhook和通道配置以连接您的WhatsApp Business帐户,以便您的环境可以使用Journey Optimizer发送WhatsApp消息。

在发送WhatsApp消息之前,必须配置Adobe Journey Optimizer环境并与WhatsApp帐户关联。 要执行此操作,请执行以下操作:

这些步骤必须由Adobe Journey Optimizer 系统管理员执行。

创建 WhatsApp API 凭据 whatsapp-credentials

  1. 在左边栏中,浏览到​管理 > 渠道​并选择​ API凭据 ​菜单。 单击​ 创建新API凭据 ​按钮。

  2. 配置API凭据,如下所述:

    • API令牌:输入您的API令牌。 请参阅Meta文档以了解详情
    • 业务帐户ID:输入与业务组合相关的唯一编号。 请参阅Meta文档以了解详情。

  3. 单击​继续

  4. 选择要连接到WhatsApp API凭据的​WhatsApp商业帐户

  5. 选择用于发送WhatsApp消息的​发件人名称

  6. 您的电话号码设置会自动填写:

    • 质量评级:反映客户对过去24小时内发送的邮件的反馈。

      • 绿色:高品质
      • 黄色:Medium品质
      • 红色:低品质

      了解有关质量评级的更多信息

    • 吞吐量:指示您的电话号码可以发送消息的速率。

  7. 完成API凭据配置后,单击​提交

创建和配置API凭据后,现在需要为WhatsApp消息创建Webhook。 了解详情

创建 Webhook WhatsApp-webhook

NOTE
如果没有指定的选择加入或选择退出关键词,则不会启用标准同意消息。

成功创建WhatsApp API凭据后,您现在可以将Webhook配置为:

  • 捕获入站响应​以管理选择加入和选择退出同意
  • 接收传递报告,例如读回执(如果可用)和邮件传递状态
  • 在Adobe Experience Platform数据集中​启用分析和报表跟踪事件
NOTE
已在​_AJO电子邮件跟踪数据集_​系统数据集中捕获入站WhatsApp消息。 在此数据集中捕获传入消息之前,轮廓必须至少收到过一条来自 Journey Optimizer 的消息。 了解详情

Webhook用作Meta的WhatsApp商业平台与Adobe Journey Optimizer之间的通信桥梁,允许您接收有关消息事件和用户交互的实时通知。

请注意,Meta仅允许每个WhatsApp商业帐户有一个webhook、回调URL和验证令牌,甚至跨多个沙盒或WhatsApp凭据也是如此。 仍在每个沙盒中正确捕获​反馈事件(已发送、已传递、已读取、错误、按钮点击)。 入站事件(回复、选择加入/选择退出/帮助关键字)仅在注册了webhook的单个沙盒中接收,请针对您的​ 生产沙盒 ​注册以接收入站事件。

  1. 在左边栏中,导航到​管理 > 渠道,选择​ WhatsApp设置 ​下的​ WhatsApp Webhook ​菜单,然后单击​ 创建Webhook ​按钮。

  2. 输入webhook的​名称

  3. 从​ 选择配置 ​下拉列表中,选择您之前创建的API凭据

  4. 选择您的​入站关键词类别,例如:

    • 选择加入关键字
    • 选择退出关键字
    • 帮助关键字
    • 默认 — 与其他关键字不匹配的所有入站邮件的回退类别。 使用此类别可在Adobe Experience Platform数据集中启用跟踪事件(打开次数、投放报告)。
  5. 输入您的​ 关键字 ​并单击 添加

  6. 在​ 回复消息 ​字段中,输入收到配置的关键字时发送的消息,或从下拉菜单中选择预定义选项。

  1. 单击 添加 以添加其他​入站关键字

  2. 完成WhatsApp Webhook的配置后,单击​提交

  3. 在​ Webhooks ​菜单中,单击 bin图标 以删除您的WhatsApp Webhook。

  4. 要修改现有配置并访问您的​ Webhook URL ​或​Webhook验证标记,请找到所需的Webhook,然后单击​ 编辑 ​选项以进行必要的更改。

  5. 复制此处生成的​Webhook验证令牌,然后将其粘贴到Meta界面中,作为Webhook设置的一部分。

    有关如何以及在何处添加此验证令牌的详细说明,请参阅Meta文档

  6. 从您以前提交的​ WhatsApp Webhook ​访问和复制新的​Webhook URL

现在,您的Webhook已配置完毕,您可以创建WhatsApp配置了。

创建WhatsApp配置 whatsapp-configuration

  1. 在左边栏中,浏览到​管理 > 渠道​并选择​常规设置 > 渠道配置。 单击​ 创建渠道配置 ​按钮。

  2. 输入配置的名称和描述(可选),然后选择WhatsApp渠道。

    note
    NOTE
    名称必须以字母(A-Z)开头。 它只能包含字母数字字符。 您还可以使用下划线 _、点 . 和连字符 - 符号。
  3. 选择​ WhatsApp ​作为您的渠道。

    {width="80%"}

  4. 选择​ 营销操作 ​以使用此配置将同意策略关联到消息。 所有与营销活动相关的同意政策均可利用,以尊重客户的偏好。 了解详情

  5. 在​ WhatsApp设置 ​部分中,选择之前创建的​WhatsApp配置

    {width="80%"}

  6. 输入​要用于通信的​发件人电话号码。 请勿在数字前加上“+”号,因为这会阻止选择退出流程正常工作。

  7. 使用​ WhatsApp执行字段 ​在配置文件属性中选择要优先使用的电话号码(如果数据库中有多个号码可用)。 了解详情

    note
    NOTE
    默认情况下,Journey Optimizer在沙盒级别使用常规设置中指定的电话号码。 更新此字段将覆盖使用此配置的历程和营销活动的默认值。
  8. 配置所有参数后,单击​ 提交 ​以确认。 您还可以将渠道配置另存为草稿,并稍后恢复其配置。

  9. 创建渠道配置后,它将显示在状态为​ 正在处理 ​的列表中。

    note
    NOTE
    如果检查不成功,请在本节中进一步了解可能的失败原因。
  10. 检查成功后,通道配置将获得​ 活动 ​状态。 它随时可用于投放消息。

配置后,您可以利用所有现成的渠道功能,如消息创作、个性化、链接跟踪和报告。

您现在可以使用Journey Optimizer发送WhatsApp消息了。

WhatsApp渠道设置疑难解答 troubleshooting

API凭据设置期间出现HTTP 500错误

如果在配置WhatsApp API凭据时遇到HTTP 500错误,请按照以下故障排除步骤操作:

  1. 验证权利:确认您的组织已设置cjm_whatsapp权利。 如果没有此权限,无法配置WhatsApp渠道。

  2. 验证业务帐户字段:确保正确填写所有必填字段:

    • API令牌:必须是具有适当权限的有效Meta访问令牌。 了解详情
    • Business帐户ID:必须与您的Meta Business帐户ID完全匹配。 了解详情
  3. 在外部测试凭据:直接使用Meta API验证您的凭据,以确认问题与凭据有关,还是与Journey Optimizer凭据处理有关。

  4. 启用高级日志记录:要识别内部服务器或身份验证错误配置,请在Journey Optimizer环境中启用高级日志以提供有关API调用失败的详细信息。

  5. 联系支持人员:如果环境和权利已确认有效,但HTTP 500错误仍然存在,请联系您的Adobe代表。

操作方法视频 video

以下视频介绍了如何在Adobe Journey Optimizer中设置WhatsApp渠道。

AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: This page explains how a System Administrator configures the WhatsApp channel in Journey Optimizer by creating WhatsApp API credentials, a Webhook, and a channel configuration to connect a WhatsApp Business account.

Intents:

  • Create WhatsApp API credentials and connect a WhatsApp Business Account
  • Create a WhatsApp Webhook to capture inbound responses, receive delivery reports, and enable tracking events
  • Create a WhatsApp channel configuration and associate marketing actions and consent policies
  • Set the sender phone number and WhatsApp Execution Field for a configuration
  • Troubleshoot HTTP 500 errors during API credential setup

Glossary:

  • API Credentials: The credential set (API Token and Business Account ID) used to connect Journey Optimizer to a WhatsApp Business Account (product-specific)
  • API Token: A Meta access token from a System User in the same Business Manager as your WhatsApp assets, used to authenticate (product-specific)
  • Business Account ID: Your Meta Business portfolio ID (Business Manager ID), not the WhatsApp Business Account ID (product-specific)
  • Webhook: The communication bridge between Meta’s WhatsApp Business Platform and Journey Optimizer that receives real-time notifications about message events and user interactions (product-specific)
  • Inbound keyword category: The classification (Opt-in, Opt-out, Help, Default) that determines which auto-response is sent based on user text (product-specific)
  • WhatsApp Execution Field: The field used to select, among profile attributes, the phone number to use in priority when several numbers are available (product-specific)
  • Quality Rating: A rating (Green/High, Yellow/Medium, Red/Low) reflecting customer feedback on messages sent in the past 24 hours (product-specific)
  • Throughput: The rate at which your phone number can send messages (product-specific)

Guardrails:

  • These steps must be performed by a Journey Optimizer System Administrator.
  • Meta tokens expire after about 60 days; renew the token before it lapses.
  • The API Token’s System User needs whatsapp_business_management, whatsapp_business_messaging, and business_management permissions, plus asset-level access to your WhatsApp Business Account.
  • Meta allows only one webhook, callback URL, and Verify Token per WhatsApp Business Account, even across multiple sandboxes or WhatsApp credentials.
  • Feedback events (Sent, Delivered, Read, Error, button click) are captured correctly in every sandbox, but inbound events (replies, opt-in/opt-out/help keywords) are only received in the single sandbox where the webhook is registered; register it against your production sandbox to receive inbound events there.
  • Without specified opt-in or opt-out keywords, standard consent messages are not enabled.
  • A profile must have at least one message sent from Journey Optimizer before incoming messages are captured in the dataset.
  • Keywords are not case-sensitive (e.g., stop and STOP are treated the same).
  • Configuration names must begin with a letter (A-Z), can only contain alpha-numeric characters, and may also use underscore, dot, and hyphen.
  • Do not include a ‘+’ sign before the sender phone number, as this can prevent the opt-out flow from working correctly.
  • HTTP 500 troubleshooting: the organization must have the cjm_whatsapp entitlement provisioned; without it, the WhatsApp channel cannot be configured.

Terminology:

  • Canonical name: WhatsApp channel configuration — Acronym: n/a — variants: channel configuration, WhatsApp configuration
  • Synonyms: “Business Account ID” = “Meta Business portfolio ID” = “Business Manager ID”
  • Do not confuse: “Business Account ID” (Meta Business portfolio / Business Manager ID) ≠ “WhatsApp Business Account ID” (not entered in this field)
  • Do not confuse: “API Credentials” ≠ “Webhook” ≠ “channel configuration” (three distinct setup steps)
  • Do not confuse: “Processing” (status while checks run) ≠ “Active” (status once checks are successful and the configuration is ready to deliver)

FAQ:

  • Q: What are the steps to configure the WhatsApp channel? — Create WhatsApp API credentials, create a WhatsApp Webhook, then create a WhatsApp channel configuration.
  • Q: Who can configure the WhatsApp channel? — A Journey Optimizer System Administrator.
  • Q: How often do Meta tokens expire? — About every 60 days; renew the token before it lapses.
  • Q: Why are my inbound events missing in some sandboxes? — Meta allows only one webhook per WhatsApp Business Account, so inbound events are only received in the sandbox where the webhook is registered; register it against your production sandbox.
  • Q: What does the channel configuration status mean? — It shows Processing while checks run and becomes Active once checks are successful, meaning it is ready to deliver messages.
  • Q: What causes an HTTP 500 error during API credential setup? — Possible causes include a missing cjm_whatsapp entitlement, invalid or mismatched API Token or Business Account ID, or credential handling issues; verify entitlements and fields, test credentials with Meta, enable advanced logging, and contact support if it persists.
  • Q: Why shouldn’t I add a ‘+’ before the sender phone number? — It can prevent the opt-out flow from working correctly.
recommendation-more-help
journey-optimizer-help