whatsapp-messaging
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhatsApp Messaging
WhatsApp消息发送
Your primary communication channel with the user. Keep the conversation going through WhatsApp.
这是你与用户的主要沟通渠道。通过WhatsApp持续推进对话。
Core Behavior
核心行为
After completing any task, you MUST:
- Use with
send_messagewait_for_reply: true - Ask what they want to work on next
- Continue based on their reply
- Repeat until they say "done", "bye", "that's all", etc.
完成任意任务后,你必须:
- 使用并设置
send_messagewait_for_reply: true - 询问用户接下来想要处理什么
- 根据用户的回复继续操作
- 重复上述步骤,直到用户说出“done”“bye”“that's all”等类似表述
Tools
工具
send_message
send_message
Send a message and optionally wait for reply.
javascript
send_message({
message: "Your message here",
wait_for_reply: true // Set true to wait for their response
})Parameters:
- (required): The text to send
message - (optional): Wait for user's response (default: false)
wait_for_reply - (optional): How long to wait in milliseconds (default: 3600000 = 1 hour)
timeout_ms
发送消息并可选择等待回复。
javascript
send_message({
message: "Your message here",
wait_for_reply: true // 设置为true以等待用户响应
})参数:
- (必填):要发送的文本内容
message - (可选):是否等待用户回复(默认值:false)
wait_for_reply - (可选):等待时长(毫秒,默认值:3600000 = 1小时)
timeout_ms
get_setup_info
get_setup_info
Get the current webhook URL and setup status. Use this if the user asks for their webhook URL, needs help with setup, or if you suspect the tunnel is disconnected.
javascript
get_setup_info({})获取当前的webhook URL和设置状态。当用户询问其webhook URL、需要设置帮助,或你怀疑隧道断开时使用此工具。
javascript
get_setup_info({})get_conversation_history
get_conversation_history
Get recent messages for context.
javascript
get_conversation_history({ limit: 10 })获取近期消息以了解上下文。
javascript
get_conversation_history({ limit: 10 })Setup & Configuration
设置与配置
If the user asks "How do I set this up?", "What is my URL?", or "Help me with WhatsApp", use .
get_setup_infoExample response pattern:
- Call
get_setup_info() - Present the and
webhook_urlclearlyverify_token - List the instructions provided in the tool output
当用户询问“我该如何设置?”“我的URL是什么?”或“帮我处理WhatsApp相关问题”时,使用。
get_setup_info示例响应流程:
- 调用
get_setup_info() - 清晰展示和
webhook_urlverify_token - 列出工具输出中提供的操作说明
Message Patterns
消息模板
After completing a task:
javascript
send_message({
message: "✅ Done: [what you did]. What would you like me to work on next?",
wait_for_reply: true
})When you hit an error:
javascript
send_message({
message: "❌ Error: [problem]. [What you need from them]",
wait_for_reply: true
})When you need a decision:
javascript
send_message({
message: "🤔 [Question]? Reply with your choice.",
wait_for_reply: true
})When user says they're done:
javascript
send_message({
message: "👋 Got it! Let me know when you need me again.",
wait_for_reply: false
})完成任务后:
javascript
send_message({
message: "✅ 已完成:[你所执行的操作]。接下来你想让我处理什么?",
wait_for_reply: true
})遇到错误时:
javascript
send_message({
message: "❌ 错误:[问题描述]。[你需要用户提供的信息]",
wait_for_reply: true
})需要用户做决策时:
javascript
send_message({
message: "🤔 [问题内容]?请回复你的选择。",
wait_for_reply: true
})当用户表示结束时:
javascript
send_message({
message: "👋 收到!需要我的时候随时告诉我。",
wait_for_reply: false
})Emojis
表情符号使用规范
- ✅ Task complete
- ❌ Error occurred
- 🤔 Question/decision
- 👋 Goodbye
- ✅ 任务完成
- ❌ 发生错误
- 🤔 问题/决策请求
- 👋 道别
Keep It Simple
保持简洁
- 1-2 sentences per message
- Always include what you did + what's next
- Use for follow-ups
wait_for_reply: true - Stop the loop when user says they're done
- 每条消息1-2句话
- 始终包含你已完成的操作 + 下一步提示
- 后续跟进时设置
wait_for_reply: true - 用户表示结束时终止对话循环