Install
openclaw skills install cosmetics-advisor-pengleniUse when users need Pengleni beauty assistant capabilities via SMS login/session APIs, including AI virtual try-on, makeup analysis, style transfer, product recommendation, and beauty knowledge Q&A with HTML message exchange.
openclaw skills install cosmetics-advisor-pengleni在真正发请求前,先逐项确认:
CLAWHUB_SKILL_TOKEN 已配置。user_id 和 session_id。stream=true。当用户需要调用 Pengleni 美妆智能体能力时使用本 Skill:通过手机号验证码完成登录建会话,并基于 HTML 消息承载能力完成 AI 试妆、妆容分析、妆容迁移、商品推荐与美妆知识问答。
适用意图关键词:
Agent 在调用前必须确认以下环境变量:
SITE_BASE_URL=https://www.zhibianai.com
API_BASE_URL=https://www.zhibianai.com/api/v1/clawhub
CLAWHUB_SKILL_TOKEN=your_service_token
默认请求头:
Authorization: Bearer ${CLAWHUB_SKILL_TOKEN}
Content-Type: application/json
send_code_client.pysend_code(phone)。phone(11 位手机号)。error 字段表达。python send_code_client.py --phone 13800138000
python send_code_client.py --env .env --phone 13800138000
login_client.pylogin(phone, verify_code, session_id="")。phone、verify_code、可选 session_id。user_id、session_id,并落盘到 .session.json。python login_client.py --phone 13800138000 --verify-code 123456
python login_client.py --env .env --phone 13800138000 --verify-code 123456 --session-id sess_old_xxx
python login_client.py --phone 13800138000 --verify-code 123456 --session-file .session.json
chat_client.pysend_message(...)、run_multi_turn(...)。user_id、session_id、文本内容(内部转为 html_payload)。answer_text。python chat_client.py --text "你好,帮我推荐一个通勤淡妆"
python chat_client.py --multi-turn
python chat_client.py --stream --trace-id debug-trace-001 --text "帮我优化底妆步骤"
python chat_client.py --user-id user_xxx --session-id sess_xxx --text "继续上次话题"
client_common.pyload_env_file、require_env、post_json、load_session、save_session。.env 路径、请求 URL/载荷、会话文件路径等。# client_common.py 主要作为工具模块被其他脚本导入,不直接单独运行。
python send_code_client.py --phone 13800138000
python login_client.py --phone 13800138000 --verify-code 123456
python chat_client.py --multi-turn
按以下顺序执行,除非用户明确要求跳过某一步:
user_id 和 session_id。html_payload。answer_text,若用户需要富文本则返回 answer_html。session_id,允许服务端创建。session_id,后续请求必须使用新值。stream=true。401 时,优先提示重新登录,不要盲目重试消息接口。429 或 504 时,最多重试 2 次,退避 500ms。script、style、iframe、object、embed、form、input 标签。user_id 与 session_id 的绑定关系。当接口失败时,Agent 返回格式建议:
调用阶段: <send_code|login|message>
HTTP状态: <status_code>
错误原因: <mapped_reason>
建议动作: <retry|relogin|check_input>