phone-act-x
微信视频号私信自动回复 — 贷款业务场景
安装
pip install phone-act-x
无头浏览器模式额外依赖:
pip install playwright
python -m playwright install chromium
使用
规则引擎
from phone_act import process
result = process("征信不好")
print(result["reply"]) # 您爱人征信怎么样?
无头浏览器自动化
from phone_act.headless import login, VideoChannelBot
# 首次:扫码登录
login()
# 启动自动回复
bot = VideoChannelBot()
bot.start()
bot.run_forever() # 每30s检查新私信,自动回复
CLI
phone-act "征信不好" # 测试规则匹配
phone-act-headless --login # 扫码登录
phone-act-headless # 启动轮询
对话流
客户: "你好" → bot: "您今年多大了?"
客户: "35" → bot: "您征信怎么样?"
客户: "征信不太好" → bot: "您爱人征信怎么样?"
客户: "也没问题" → bot: "怎么联系你?"
客户: "138xxxx" → bot: "好的,收到,稍后联系您!" → 停止
特性
- 同义词归一化("征信不太好"→"征信不好")
- 对话流状态机,自动追问到拿号码
- 万能回复模板,随机换问法
- 30s轮询 + 随机抖动防封号
- 手机号检测自动停止
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phone_act_x-1.5.0.tar.gz
(21.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phone_act_x-1.5.0.tar.gz.
File metadata
- Download URL: phone_act_x-1.5.0.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59153b4e6ab107adb6097ba95986ede4444eeb30b3df20b86c1d99509f1517cd
|
|
| MD5 |
74e06155f762cddc7d8d0267d0f324f1
|
|
| BLAKE2b-256 |
8baa6f002f2c4b40e30a86baf5547de62cbdc303c0fb66026b23f0c0e0dcbf78
|
File details
Details for the file phone_act_x-1.5.0-py3-none-any.whl.
File metadata
- Download URL: phone_act_x-1.5.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97372ef31fa49d616897574bf422dcd4a5f29cb35281982e45364ce4ef5db94f
|
|
| MD5 |
ed3173cecf7dcbd0cd85a4ebbe5f1b1a
|
|
| BLAKE2b-256 |
d033dee7006f8e9ffb50a8a1f2cef0428b41a2f04c1f90410ce0d6a4940dc124
|