我们将于 2024 年 7 月 31 日逐步淘汰 Google Business Messages。点击
此处了解详情。
排查代理问题
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Business Messages 提供了多种方法来测试和排查代理问题。以下列表介绍了可用于测试代理是否正常运行、排查意外行为以及调试问题的不同工具:
- 代理测试网址:您可以使用 Business Communications 开发者控制台中的代理测试网址与移动设备上的代理进行交互。此网址在验证或发布代理之前可用,因此您可以使用它来确认消息传递基础架构是否按预期工作。
- 营业地点专用的测试网址:如果您的代理有多个营业地点,请使用营业地点专用测试网址访问代理在特定营业地点的演示对话。
- UserMessage 参考页面:调试代理时,您可能需要确保正确解析来自用户的消息。
UserMessage
参考页面描述了 webhook 可以读取的所有字段。您可以根据这些信息仔细检查您的实现。
- Business Messages 开发者控制台日志页面:要调试消息传送问题,请使用 Business Messages 开发者控制台日志页面。这些日志会列出所有入站和出站邮件。它们还会显示每种消息的状态,以便您了解哪些消息无法正确传送。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-01-03。
[null,null,["最后更新时间 (UTC):2023-01-03。"],[[["\u003cp\u003eTest your Business Messages agent using the agent test URL or location-specific test URLs for agents with multiple locations before and after launch.\u003c/p\u003e\n"],["\u003cp\u003eDebug your agent by referencing the \u003ccode\u003eUserMessage\u003c/code\u003e guide to ensure accurate parsing of user messages and confirm your implementation.\u003c/p\u003e\n"],["\u003cp\u003eTroubleshoot message delivery issues using the Business Messages Developer Console logs page to review inbound/outbound message statuses and identify failures.\u003c/p\u003e\n"]]],[],null,["# Troubleshoot your agent\n\nBusiness Messages provides a variety of ways to test and troubleshoot your\nagent. The following list describes different tools you can use to test that\nyour agent is working properly, troubleshoot unexpected behavior, and debug\nissues:\n\n- [Agent test URL](/business-communications/business-messages/guides/how-to/agents#test-agent): You can use the agent test URL in the Business Communications Developer Console to interact with your agent on your mobile device. This URL is available before you verify or launch your agent, so you can use it to confirm your messaging infrastructure is working as expected.\n- [Location-specific test URLs](/business-communications/business-messages/guides/how-to/locations#test-location): If your agent has multiple locations, use location-specific test URLs to access a demo conversation with your agent at a specific location.\n- [UserMessage reference page](/business-communications/business-messages/reference/rest/v1/UserMessage): When debugging your agent, you may want to ensure you're parsing messages from the user correctly. The `UserMessage` reference page describes all the fields your webhook can read. You can use this information to double-check your implementation.\n- [Business Messages Developer Console logs page](/business-communications/business-messages/guides/concepts/developer-console#logs): To debug message delivery issues, use the Business Messages Developer Console logs page. These logs list every inbound and outbound message. They also show you each message status, so you can see which messages failed to deliver properly."]]