Skip to main content

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.4.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phone_act_x-1.4.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file phone_act_x-1.4.0.tar.gz.

File metadata

  • Download URL: phone_act_x-1.4.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.4

File hashes

Hashes for phone_act_x-1.4.0.tar.gz
Algorithm Hash digest
SHA256 caf10b6a0bc6025b57e30a306dca5b33d5e48cae4bbaecd0d3be099b1f385bc7
MD5 0ec62103ec3063e5d7def7650ca3701c
BLAKE2b-256 7cdc38e805ac866d9007ede5467264c61ac70d5ed9b245ecf0750fd7c27caaf2

See more details on using hashes here.

File details

Details for the file phone_act_x-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: phone_act_x-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.4

File hashes

Hashes for phone_act_x-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cab04889539ddc2938e2802f9608adf409b8f4a018bd1d60dad3c6aeed07fc12
MD5 aa0c80d97576ed6f4987f0de4d03df41
BLAKE2b-256 f6612be68a59b9bc9113533b9c007445f81a82791e96da4a33c1f063964c0c5e

See more details on using hashes here.

Release history Release notifications | RSS feed

1.8.0

2 files

1.7.9

2 files

1.7.8

2 files

1.7.7

2 files

1.7.6

2 files

1.7.5

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.2

2 files

1.4.1

2 files

This release

1.4.0 This release

2 files

1.3.1

2 files

1.2.9

2 files

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page