Reach

Grow

Manage

Automate

Reach

Grow

Manage

Automate

如何使用WhatsApp API报告来启用SMS或语音备选方案

邹鹏彬

2021年4月20日

WhatsApp

1 min read

如何使用WhatsApp API报告来启用SMS或语音备选方案

邹鹏彬

2021年4月20日

WhatsApp

1 min read

如何使用WhatsApp API报告来启用SMS或语音备选方案

借助 MessageBird 的流程构建器,您可以自动知道 WhatsApp 消息是否已送达,并使用短信或语音作为备用选项,以确保您能联系到您的客户。

随着越来越多的企业通过WhatsApp与客户互动,了解哪些用户拥有WhatsApp账号以及哪些用户没有可能会耗时且昂贵。

对于这些公司而言,了解哪些用户没有收到您的WhatsApp API消息可以帮助您优化广播消息结果,提高转换率和参与度,并确保与回落选项的连接。

通过Bird的Flows,您可以自动了解WhatsApp消息是否已送达,并使用SMSVoice作为备用选项,以确保您联系到您的客户。了解如何从每条SMS消息获取更多数据来优化您的活动。在这篇博文中,您将学习如何:

  • 使用Flows设置您的流程逻辑

  • 通过Flow Heatmap查看您的WhatsApp API消息活动结果

  • 建立被拒绝的WhatsApp电话号码列表

如果您的WhatsApp模板消息已经获得批准,并且您已经使用Flow Builder在发送广播消息,此指南将帮助您。如果您在获得模板消息批准或仍然无法发送首个WhatsApp消息方面遇到问题,请确保阅读我们的WhatsApp Message Best Practices指南。

Requirements

在您开始在 Flow Builder 内构建逻辑和流程之前,您需要准备好以下要求:

拥有这些后,您可以按照以下步骤查看您的广播活动结果,并使用 Flow Builder 构建 SMS/Voice 备援以帮助确保可交付性。 

Step 1: 在 Flow Builder 中创建一个新的流程,使用 WhatsApp Webhook

对于第一步,使用这个模板开始一个新的流程:

1. 登录到你的Bird Dashboard并转到Flows

Digital interface for an online platform used to automate communication through flow creation.


2. 下载你将使用的示例流程

3. 使用导入功能导入流程,并发布流程。

Interface for importing a flow.


4. 流程将如下图所示。然后,点击发布按钮并复制生成的Webhook URL。

Workflow diagram is displayed on a software interface, illustrating a sequence of steps involving webhook configurations, message variables, and timeout settings for a WhatsApp broadcast SMS voice fallback and reporting process.


5. 导航到并打开你的WhatsApp Broadcast Campaign Flow。点击发送WhatsApp模板消息步骤,滚动到底部,打开状态报告切换。插入复制的Webhook URL到可用字段,如下图所示。别忘了再次发布。

User interface of a flow builder tool with a visible workflow diagram, including steps like sending a WhatsApp template message, along with options for adding content and setting triggers.

对于第一步,使用这个模板开始一个新的流程:

1. 登录到你的Bird Dashboard并转到Flows

Digital interface for an online platform used to automate communication through flow creation.


2. 下载你将使用的示例流程

3. 使用导入功能导入流程,并发布流程。

Interface for importing a flow.


4. 流程将如下图所示。然后,点击发布按钮并复制生成的Webhook URL。

Workflow diagram is displayed on a software interface, illustrating a sequence of steps involving webhook configurations, message variables, and timeout settings for a WhatsApp broadcast SMS voice fallback and reporting process.


5. 导航到并打开你的WhatsApp Broadcast Campaign Flow。点击发送WhatsApp模板消息步骤,滚动到底部,打开状态报告切换。插入复制的Webhook URL到可用字段,如下图所示。别忘了再次发布。

User interface of a flow builder tool with a visible workflow diagram, including steps like sending a WhatsApp template message, along with options for adding content and setting triggers.

对于第一步,使用这个模板开始一个新的流程:

1. 登录到你的Bird Dashboard并转到Flows

Digital interface for an online platform used to automate communication through flow creation.


2. 下载你将使用的示例流程

3. 使用导入功能导入流程,并发布流程。

Interface for importing a flow.


4. 流程将如下图所示。然后,点击发布按钮并复制生成的Webhook URL。

Workflow diagram is displayed on a software interface, illustrating a sequence of steps involving webhook configurations, message variables, and timeout settings for a WhatsApp broadcast SMS voice fallback and reporting process.


5. 导航到并打开你的WhatsApp Broadcast Campaign Flow。点击发送WhatsApp模板消息步骤,滚动到底部,打开状态报告切换。插入复制的Webhook URL到可用字段,如下图所示。别忘了再次发布。

User interface of a flow builder tool with a visible workflow diagram, including steps like sending a WhatsApp template message, along with options for adding content and setting triggers.

步骤 2:在新的 Google Sheet 上记录 WhatsApp 消息的详细信息

在此步骤中,您将学习如何将您的流程连接到Google Sheets,以便您可以跟踪消息的传递和状态。然后,利用这些见解优化通过WhatsApp的发送并创建后备逻辑,以确保您能到达客户。

1. 新建一个Google表格,名称为“WhatsApp Campaign Reporting”,并包含以下列:

  • Time: 这将显示您的消息被拒绝的时间

  • Message_From: 谁是消息的发送者

  • Message_To: 谁是消息的接收者

  • Status: 消息的当前状态是什么

  • Description: 消息被拒绝的原因是什么


A spreadsheet titled "WhatsApp Campaign Reporting" displays columns for time, message sender, message recipient, status, and description, with all entries marked as "Rejected" and descriptions noting recipients not registered on WhatsApp.


2. 将您的Google账户集成Bird dashboard,以便您可以将您刚创建的表格与您的流程连接

Software interface for integrating Google Sheets, highlighting steps to connect and sync existing events.


3. 在Flow Builder中,将您的“WhatsApp Campaign Reporting”列与新流程的各列连接

Flow diagram of an automated process shows steps to add a row in Google Sheets after fetching a timestamp and checking message status; the result moves through success or failure routes within a structural layout.

Part 3: Create SMS / Voice 备用逻辑

在此步骤中,如果 WhatsApp 消息被拒绝,您将能够将备用渠道(SMSVoice)添加到您的流程逻辑中。

这些是导致消息在此阶段被拒绝的一些常见原因:

  • 您的客户的电话号码无效

  • 他们在发送消息时没有信号

  • 不使用 WhatsApp 或未在其手机上安装该应用

一旦您在 Flows 中打开流程,您将看到四个不同的分支(见下图)。这些分支与 WhatsApp API 消息状态对齐:

  • Sent: 消息已被 WhatsApp 服务器接收

  • Delivered: 消息已传递给接收方

  • Read: 消息已被接收方阅读

  • Rejected: 您的企业发送的消息发送失败


Flowchart depicting a webhook integration with status updates.

在此步骤中,您将备用渠道添加到被拒绝的分支。被拒绝的分支将捕获所有未成功接收您的 WhatsApp 消息的客户。这是导流至低成本渠道的更广泛策略的一部分。

1. 在被拒绝的分支中添加“发送 SMS”或“呼出电话”操作作为一个步骤。一旦消息被 WhatsApp Business API 拒绝,此分支将用作备用路线。SMS 也可用于通过表单收集客户反馈。例如,若消息未成功递送,Flow Builder 将发送 SMS 或语音消息。

Flowchart illustrating a communication process, featuring branches for message statuses like "sent," "delivered," and "read," leading to endpoints that perform actions such as fetching timestamps, adding Google Sheets rows, sending SMS, and making outbound calls.


2. 使用 Flow Heatmap 监控流程并查看您的 WhatsApp API 活动结果。您将能够看到发送、交付、拒绝的消息数量等等。

Dashboard displaying performance metrics, including totals, success percentages, items in progress, and failed or canceled counts, along with a flow heatmap showing traffic distribution through a circular diagram.

利用我们的 Heatmap 了解 您的 WhatsApp API 广播活动的结果和可交付性。对于更广泛的活动见解,了解如何使用 Bird 的竞争跟踪器来基准化您的表现。

第4部分:在您的流程中添加时间戳(可选)

Flows 中的默认时间戳变量是基于 UTC 时区的。您可以在 Flow Builder 中使用“Fetch variables”步骤发起 GET 请求到 http://api.timezonedb.com并自动与客户的时区同步。输出变量应该是格式化的。请注册并获取您自己的免费 API 密钥。

提示:确保监控流的处理失败,以确保即使请求失败,您的流也会继续。


Flowchart illustrating a decision-making process for fetching a timestamp, featuring a starting point labeled "Fetch TimeStamp" with options "Success" and "Failed," and a side panel showing settings for API configuration, including URL, method, OAuth integration, and variables.

这是您需要遵循的简单步骤,以便在您的WhatsApp 消息未成功发送时,开始使用 SMS 或 Voice 作为后备。

结论

您的流程现在能够创建一个Heatmap并显示您的WhatsApp广播活动的结果。现在您知道如何使用Flows来定制客户体验。要继续构建项目并通过单个API与客户互动,请查看我们的WhatsApp APIConversations API文档。使用API时,请遵循API versioning best practices以实现可持续的集成。

让我们为您联系Bird专家。
在30分钟内见证Bird的全部威力。

通过提交,您同意 Bird 可能会就我们的产品和服务与您联系。

您可以随时取消订阅。查看Bird的隐私声明以获取有关数据处理的详细信息。

Newsletter

通过每周更新到您的收件箱,随时了解 Bird 的最新动态。

让我们为您联系Bird专家。
在30分钟内见证Bird的全部威力。

通过提交,您同意 Bird 可能会就我们的产品和服务与您联系。

您可以随时取消订阅。查看Bird的隐私声明以获取有关数据处理的详细信息。

Newsletter

通过每周更新到您的收件箱,随时了解 Bird 的最新动态。

让我们为您联系Bird专家。
在30分钟内见证Bird的全部威力。

通过提交,您同意 Bird 可能会就我们的产品和服务与您联系。

您可以随时取消订阅。查看Bird的隐私声明以获取有关数据处理的详细信息。

R

Reach

G

Grow

M

Manage

A

Automate

Newsletter

通过每周更新到您的收件箱,随时了解 Bird 的最新动态。