Skip to content

WhatsApp Business Cloud 凭证(WhatsApp Business Cloud credentials)#

你可以使用以下凭据验证以下节点:

🌐 You can use these credentials to authenticate the following nodes:

要求(Requirements)#

要创建 WhatsApp 凭据,你需要以下元资源:

🌐 To create credentials for WhatsApp, you need the following Meta assets:

  • 一个 Meta 开发者 账号:开发者账号允许你创建和管理 Meta 应用,包括 WhatsApp 集成。注意“设置 Meta 开发者账号”
    1. 访问 Facebook 开发者网站
    2. 点击右上角的 入门指南(如果链接显示 我的应用,说明你已经设置了开发者账户)。
    3. 同意条款和条件。
    4. 提供用于验证的调用号码。
    5. 选择你的职业或角色。
  • Meta 商业组合:WhatsApp 消息服务需要一个 Meta 商业组合,之前称为商务管理账户。用户界面可能仍显示任一选项。注意“设置 Meta 商业组合”
    1. 访问 Facebook 商业网站
    2. 选择 创建账户
      • 如果你已经有了 Facebook 商业账户和作品集,但想创建新的作品集,请在左侧菜单中打开商业作品集选择器,然后选择 创建商业作品集
    3. 请输入商业组合名称
    4. 请输入你的名称
    5. 请输入商务邮箱
    6. 选择 提交创建
  • 一个配置了 WhatsApp 的 Meta 企业应用:一旦你拥有开发者账户,你就可以创建一个 Meta 企业应用。注意“使用 WhatsApp 设置 Meta 企业应用”
    1. 访问 Meta 开发者应用仪表板
    2. 选择 创建应用
    3. 将产品添加到你的应用中,选择 WhatsApp 瓷贴上的设置。有关更多详情,请参阅添加 WhatsApp 产品
    4. 这将打开 WhatsApp 快速入门 页面。请选择你的业务组合。
    5. 选择 继续
    6. 在左侧菜单中,转到 应用设置 > 基础
    7. 为应用设置隐私政策网址服务条款网址
    8. 应用模式 更改为 实时

支持的身份验证方法(Supported authentication methods)#

有关该服务的更多信息,请参阅WhatsApp 的 API 文档

🌐 Refer to WhatsApp's API documentation for more information about the service.

Meta 将创建 WhatsApp 商业应用的用户归类为技术提供者;更多信息请参阅 Meta 的 技术提供者入门指南

🌐 Meta classifies users who create WhatsApp business apps as Tech Providers; refer to Meta's Get Started for Tech Providers for more information.

使用 API 密钥(Using API key)#

您需要 WhatsApp API 密钥凭证才能使用 WhatsApp Business Cloud 节点。

🌐 You need WhatsApp API key credentials to use the WhatsApp Business Cloud node.

要配置此凭据,你需要:

🌐 To configure this credential, you'll need:

  • API 访问令牌
  • 一个企业账户ID

要生成访问令牌,请按照以下步骤操作:

🌐 To generate an access token, follow these steps:

  1. 访问 Meta 开发者应用仪表板
  2. 选择你的元应用。
  3. 在左侧菜单中,选择 WhatsApp > API 设置
  4. 选择 生成访问令牌 并确认你想要授予的访问权限。
  5. 复制访问令牌并将其作为访问令牌添加到 n8n 中。
  6. 复制 WhatsApp 商业账户 ID 并将其添加到 n8n 作为 商业账户 ID

有关上述步骤的更多信息,请参阅 在 WhatsApp 上测试商业消息

🌐 Refer to Test Business Messaging on WhatsApp for more information on the above steps.

完全验证并启动你的应用需要进一步的配置。有关更多信息,请参阅 Meta 的 技术提供者入门 第 5 步及之后的步骤。有关 Meta 应用审核流程的更多信息,请参阅 应用审核

🌐 Fully verifying and launching your app will take further configuration. Refer to Meta's Get Started for Tech Providers Steps 5 and beyond for more information. Refer to App Review for more information on the Meta App Review process.

使用 OAuth2(Using OAuth2)#

您需要 WhatsApp OAuth2 凭据才能使用 WhatsApp Trigger 节点。

🌐 You need WhatsApp OAuth2 credentials to use the WhatsApp Trigger node.

要配置此凭据,你需要:

🌐 To configure this credential, you'll need:

  • 客户端 ID
  • 客户端密钥

要检索这些项目,请按照以下步骤操作:

🌐 To retrieve these items, follow these steps:

  1. 访问 Meta 开发者应用仪表板
  2. 选择你的元应用。
  3. 在左侧菜单中,选择 应用设置 > 基本信息
  4. 复制 应用 ID 并在 n8n 凭证中将其作为 客户端 ID 输入。
  5. 复制 应用密钥 并在 n8n 凭证中将其作为 客户端密钥 输入。

完全验证并启动你的应用需要进一步的配置。有关更多信息,请参阅 Meta 的 技术提供者入门 第 5 步及之后的步骤。有关 Meta 应用审核流程的更多信息,请参阅 应用审核

🌐 Fully verifying and launching your app will take further configuration. Refer to Meta's Get Started for Tech Providers Steps 5 and beyond for more information. Refer to App Review for more information on the Meta App Review process.