在应用中保留的号码上设置 WhatsApp 自动回复
WhatsApp 自动回复是无需有人手动输入即可发出的消息。WhatsApp Business 应用自带两种:问候消息和离线消息,均从手机发出。通过 Coexistence 连接到 Meta Cloud API 的号码,还可以由服务器自动回复,内容可以是固定文本、已获批准的消息模板,或由您自己的 AI 生成的回答;您仍可保留应用,并随时介入。
easyCoexistence 通过 Coexistence 将您的 WhatsApp Business 号码连接到 Meta Cloud API,因此自动回复会在服务器上运行,而您仍可保留应用:固定文本、已获批准的消息模板,或使用您自己的 Anthropic、OpenAI 或 OpenRouter 密钥的 AI。
“Reply with text” 步骤可发送的最长固定回复,可填入 {{first_name}}、{{name}}、{{message}} 和 {{phone}}。
“Reply with AI” 步骤的 Instructions 可容纳:您的业务信息、语气和规则。
您通过手机应用回复某个聊天后的默认暂停时长;可在 “Advanced” 中设置为 0 至 168 小时。
每个聊天的 AI 回复默认上限,可在 1 至 60 之间调整,与其他机器人的循环会在达到上限时停止。
经过一段时间不活跃后,WhatsApp Business 应用自带的问候消息会再次发送给回头客。
Meta 的 Coexistence 指南说明,接入后应用的问候消息和离线消息保持不变;Cloud API 不支持这些功能。
有哪些 WhatsApp 自动回复?
分为两类,一个 Coexistence 号码两者都可以使用,但用途不同。WhatsApp Business 应用自带的工具在手机上运行:为新联系人发送问候消息,并可按时间表发送离线消息,二者均为固定文本,您也可以按通讯录筛选收件人。Meta Cloud API 上的自动化在服务器上运行,由您决定由什么触发,以及发送什么内容:
| WhatsApp Business app | Cloud API automation | |
|---|---|---|
| Sends from | The phone, while it has an internet connection | A server, with the phone off or offline |
| Starts on | A first message or one after 14 days of silence; an away schedule | Any message, a keyword, a first message, after hours, a tag, or a call from your system |
| Replies with | One fixed text | Fixed text, buttons, a picture or PDF, an approved template, your own AI, or your webhook |
| Who gets it | Everyone, or filtered by your address book | Anyone whose message matches the trigger |
| Record | The chat itself | A run log for 30 days, step by step |
如何设置固定文本的自动回复?
先选择触发时机,然后撰写一次文本即可。在 “Automations” 标签页中,点击 “New automation”,可选择 “Welcome message”(客户首次发来消息时触发)、“Away message”(非营业时间触发)以及 “Keyword reply”(客户发出您指定的关键词时触发)。每项都以 “Reply with text” 步骤开始,其 “Message” 框最多可容纳 4,096 个字符,并会从客户资料中填入 {{first_name}}、{{name}}、{{message}} 和 {{phone}}。可行的文本示例:
- 确认收到:“{{
first_name}} 您好!已收到您的消息。我们周一至周五上午 9 点至下午 6 点回复,通常一小时内答复。” - 指向答案:“这是我们的价目表:[link]。请告诉我您的需求,我为您查询是否有货。”
- 已关闭:“感谢您的留言!我们目前不在营业时间,将于 [上午 9 点] 再次营业。紧急订单请致电 [电话]。”
- 复述问题:“谢谢 {{
first_name}}!您问的是:{{message}}。我们的同事会尽快在此回复您。”
如何设置 AI 自动回复?
先保存您自己的密钥,然后让模型根据您的指令撰写每条回复。在 “AI keys” 页面点击 “Add key”,选择 Anthropic、OpenAI 或 OpenRouter,粘贴 API 密钥并点击 “Test and save”:系统会在不消耗词元的情况下与服务商核对密钥,以加密方式保存,之后仅显示为 “Added, ending in” 加上其后四位字符。接着从步骤菜单中添加一个 “Reply with AI” 步骤(例如在 Blank automation 中),并填写:Model(从密钥加载后的列表中选择);Instructions(最多 20,000 字符);Earlier messages it reads(读取的历史消息,0 至 20 条,默认 10 条);以及 Longest reply (tokens)(最长回复词元数,50 至 2,000,默认 600)。对于较长的对话,“Agent answers everything” 示例会改为启动一个 AI 智能体,它还可以使用文件、标签和转交功能。
在您的指令之外,每条 AI 回复还内置多条规则:客户要求人工服务或 AI 无法提供帮助时,告知其业务人员将尽快回复;对于您的指令未涵盖的价格、库存、日期或政策,绝不编造;被问到时说明自己是该企业的自动化助手。一天内对同一个人的第一条 AI 回复也会以此说明开头。
如果服务商之后拒绝该密钥,自动化会显示 “Paused: your OpenAI key was refused. It starts again by itself once you save a key that works.”,您会收到一封邮件,并且在此之前它不再参与匹配,因此排名较低的自动化(例如离线消息)可以代为回复。
You are the WhatsApp assistant of Ana's Bakery.
Hours: Tuesday to Sunday, 8:00 to 19:00. Closed on Mondays.
Delivery: within 5 km, for orders placed before 17:00.
Prices: sourdough 4.50, croissant 1.80, birthday cakes from 25.00.
Answer in two or three short sentences, in the customer's language.
For custom cakes, complaints or refunds, say a person will reply today.您的 AI 能帮我设置自动回复吗?
可以。在 ChatGPT 或 Claude 中添加 easyCoexistence 连接器后,在对话中描述您想要的自动回复即可。AI 会调用 list_numbers 查找您的号码,调用 create_automation 设置触发条件和回复内容,再调用 test_automation 用一条示例消息进行测试。测试不会发送任何内容,但其中的 AI 步骤会使用您的密钥真实运行。随后 AI 会告诉您它创建了什么。如果您希望在上线前先检查测试结果,可要求它先创建关闭状态的自动化,之后再开启。使用 “Reply with AI” 步骤前,需先在控制台中保存服务商密钥;任何工具都不接受密钥。
You: Reply to messages on my WhatsApp number with AI, using my OpenAI key.
You're Bloom Café's assistant: open 8:00 to 18:00, delivery within 5 km.
Create it switched off and test it first.
→ list_numbers
→ create_automation {
"connection_id": "…from list_numbers…",
"name": "AI assistant",
"enabled": false,
"trigger": { "type": "message_received", "match": "any" },
"steps": [{
"type": "ai_reply",
"provider": "openai",
"model": "…a model your key lists…",
"prompt": "You are Bloom Café's assistant. Open 8:00 to 18:00. We deliver within 5 km.",
"history": 10,
"max_tokens": 600
}]
}
→ test_automation { "automation_id": "…", "text": "Do you deliver to Rua Augusta?" }
→ update_automation { "automation_id": "…", "enabled": true }您用手机回复时会发生什么?
自动化会在该聊天中暂停。在 Coexistence 号码上,您在 WhatsApp Business 应用中输入的消息会以 smb_message_echoes 事件的形式传到 API,自动化会将其视为您已接手:默认在接下来的 4 小时内(有人在 Conversations 中回复时同样如此),该聊天的运行会被跳过,并显示 “You answered this chat from your phone recently”。您可在每个自动化的 “Advanced” 中,通过 “Pause on a chat after I answer it (hours)” 进行更改,可设置为 0 至 168 小时;设为 0 时,自动化会继续在您已回复的聊天中回复。在 Wait 步骤期间您发送的回复,也会取消该次运行的其余部分。无论哪种情况,客户看到的都是同一个对话,因为自动化发出的回复会显示在您手机上应用的聊天中。
是否应保留应用的问候消息与离线消息?
只有在没有自动化能完成的工作上才保留。Meta 的 Coexistence 指南列出了应用中的消息工具(包括问候消息和离线消息),接入后保持不变,且 Cloud API 不支持这些功能。它们仍会从手机上触发,而自动化既无法看到它们的设置,也无法将其关闭。如果自动化已经在欢迎新客户或在非营业时间回复,请在 “Tools” 标签页中关闭应用的版本,即 “Greeting message” 或 “Away message”,否则客户会同时收到两条消息。如果您需要应用版本才能完成的工作,例如只向不在通讯录中的人发送消息,则保留应用版本。
设置方法
- Open AutomationsIn the easyCoexistence dashboard, open the Automations tab and click New automation.
- Choose the kind of replyPick Welcome message, Keyword reply or Away message for fixed text, or Agent answers everything for an AI reply; each opens the editor pre-filled.
- Write the replySelect the Reply with text step and edit the Message box, or fill in the agent's Instructions, or the Reply with AI step's Model and Instructions.
- Test it switched offSwitch the automation Off, click Save, then open Test, type a sample message and click Run test. Nothing is sent to anyone.
- Turn it onSwitch it On and click Save; it answers the next message that matches its trigger.
常见错误
- 同时运行欢迎消息和 AI 智能体,并期望两者都在首条消息时触发。每条收到的消息只运行一个自动化,因此欢迎消息会接收新客户的第一条消息,AI 从第二条消息起回答。
- 写下 “{{first_name}} 您好!” 却不检查。该变量取自客户 WhatsApp 个人资料名称的第一个词,该名称可能是昵称、表情符号,或为空,因此问候语可能读成 “ 您好!”,名字部分留空。
- 撰写 AI 指令时不提供您的事实信息。模型被告知不要编造指令中没有的价格、库存、日期或政策,因此若提示中没有这些内容,回复就会含糊不清,或转交给人工处理。
- 将 “Earlier messages it reads” 设为 0,用于多条消息的聊天。模型此时只能看到最新一条消息,可能会重新询问客户已经说过的内容。
使用 AI 不另收费,自动化也不额外收费。您从手机回复某个聊天时,自动化会在该聊天中暂停。每个号码每月 US$ 9 起,号码越多越便宜,最低降至 US$ 0.75,前 3 天免费。
常见问题
自动回复能发送图片或文件吗?
可以。“Send a picture or file”步骤会发送您上传到文件中的图片或 PDF,例如菜单或价目表,可按需附上说明文字,发送时间须在客户最后一次来信后的 24 小时内。带有图片页眉或按钮变量的消息模板暂时仍无法由自动化发送。您自己的系统也可以借助该号码的凭据,通过 Cloud API 发送媒体文件。
自动回复可以在 WhatsApp 群组中使用吗?
不可以。Meta 不会将 Coexistence 号码上的群聊同步到 Cloud API,因此自动回复只在一对一聊天中运行。群组在应用中仍照常使用。
我能只对新客户自动回复吗?
可以,使用 “First message” 触发器。它会在自动化开始接收该号码的消息之后,对联系人发送的第一条消息运行;如果某人在 30 天没有发消息后再次联系,也会再次运行。
AI 自动回复的费用是多少?
词元费用由您的 AI 服务商按您自己的密钥计算,easyCoexistence 从不对 AI 收费或加价。每次回复都会向模型发送您的指令以及您允许的历史消息(默认 10 条,最多 20 条),并在您设置的 “Longest reply (tokens)” 上限处停止,默认为 600 个词元。Meta 按您自己的 WhatsApp Business 账户计费,每个号码每月有 1,000 条服务消息的免费额度。
继续阅读
准备开始了吗?
几分钟即可设置 WhatsApp Coexistence,而不是几个月。应用会继续在手机上运行。
开始免费试用验证时间