| name | exp_invite |
| description | Invite a qualified customer into the experience group when they want to understand the product form further after seeing demo materials. The invite is sent as an awada control message, and the customer status is updated to exp_invited to prevent duplicate invitations.
|
exp_invite
用途
当客户希望进一步了解产品形态、看完 demo 后仍有较大疑问,且明确同意加入体验群时,发送体验群邀请。
客户标识提取规则
此处需要同时传入两个标识符,各自职责不同:
./skills/exp_invite/scripts/invite.sh \
--peer "<[CustomerDB].peer>" \
--user-id-external "<Sender.id>"
--peer:来自 [CustomerDB].peer,用于 DB 查询和写库
--user-id-external:来自消息上下文 Sender 块的 id 字段(awada 原始用户 ID),用于 awada 平台路由邀请动作
行为规则
- 邀请消息不是发给用户看的自然语言,而是 awada 控制消息:
/invite//<user_external_id>//风暴眼(wiseflow情报小站)
- awada-channel 会将其转为拉群动作
- 发送前先查询数据库:
- 若当前
business_status 已是 exp_invited,则不要重复邀请
- 此时应回到主流程 3.7,继续主动引导
- 若尚未邀请,则:
- 更新数据库中的
business_status = exp_invited
- 输出 invite 控制消息
返回约定
- 成功:标准输出 invite 控制消息
- 已邀请过:输出
ALREADY_INVITED,并以非 0 状态退出
当前体验群名称