Use $ycloud-integration-architect to plan a WhatsApp
order-confirmation integration.
Our backend uses Node.js, Express and SQLite.
After a customer places an order, send a WhatsApp confirmation.
The backend must associate the message with the order and record
subsequent delivery or failure events.
Include order-confirmation messages and message-status Webhooks only.
Do not include marketing broadcasts or inbound-message handling.
Provide the business flow, prerequisites, development steps, risks
and acceptance criteria.
Do not modify files or call real APIs.
计划应包括:
订单创建触发器
账户和电话号码要求
批准的模板要求
消息提交流程
订单、应用程序关联值、YCloud消息ID和Webhook事件之间的连接
消息状态 Webhook 流程
失败和重复事件处理
未解决的问题
第 2 步:确认范围
在实施之前,请要求 Codex 定义确切的工作边界。
Limit this implementation to order-confirmation messages
and message-status processing.
List:
1. Required information
2. Modules that must be changed
3. Acceptance criteria
4. Items that still require confirmation
范围确认有助于团队:
防止不相关的代码更改
建立验收标准
将当前工作与未来功能分开
记录未解决的依赖项
第 3 步:授权本地实施
批准计划后,明确授权在本地项目中进行更改。
Implement the approved order-confirmation and message-status
flow in the current local project.
Identify the relevant order-notification and message-status
modules, implement the workflow there and add tests.
Use fictional orders and simulated data.
Do not read real credentials or call real APIs.
After implementation, list the changed files, configuration
requirements, test results and items that still require
real-environment verification.
Run local simulated tests for:
- Successful message submission
- API rejection and a later failed-message status as separate cases
- Request timeout
- Duplicate message-status event
- Invalid Webhook
Do not treat a timeout as confirmation that the message failed.
Separate executed tests, actual results and unverified items.
List the remaining account configuration, integration tests
and deployment tasks for the technical team.
Separate completed local work from work that still requires
the authorized YCloud environment.
Include account, phone number, templates, API credentials,
Webhook configuration, testing, monitoring, exception handling
and rollback.
Do not perform real operations.
Use YCloud Developer Kit to help implement [business workflow]
in our [technology stack] project.
The workflow starts when [trigger] and should produce [outcome].
Include [scope] and exclude [out-of-scope items].
You may [permitted actions].
Use simulated data and do not call real APIs.
Provide the implementation plan, changed files, executed tests,
actual results and remaining integration requirements.
Ask about missing details that affect the design.
清晰的提示词需明确定义预期集成范围和任务边界。
下一节将介绍实施过程中应遵循的安全与开发实践。
安全与企业开发实践
生成的集成代码应遵循与手动编写代码相同的安全和审查标准。
保护凭证和客户数据
请勿将 API 密钥或 Webhook 密钥粘贴到提示中。
请勿在代码库中硬编码凭证。
在示例和本地测试中使用合成电话号码和有效载荷。
将生产凭证保存在服务器端环境中。
使用团队批准的密钥管理和访问控制实践。
凭证不应出现在客户端代码、URL、日志或生成的示例中。
对照官方 API 文档进行检查
在生产环境中使用生成的示例之前,请确认当前的:
API 端点和请求方法
必填和可选字段
身份验证要求
响应和错误格式
支持的行为
本文中的本地示例可能使用以下标签:
synthetic_unverified
这意味着结果是使用合成数据生成的,某些 API 字段或行为仍需确认。它不是 YCloud 消息状态或实时 API 测试的证据。
文档审查确认预期的 API 契约。针对 YCloud 的测试确认定义的流程在授权环境中的行为。这些都是单独的检查。