Files
670ec4f59b feat(plugins): add LeadCapture (purchase intent → contact → Resend email) (#2919)
New misc plugin langbot-team/LeadCapture 0.1.0 (购买意向留资):

- after each AI reply (NormalMessageResponded) a configured LLM judges
  strong purchase intent against a configurable prompt over the recent
  conversation (monitoring.messages, read-only)
- on strong intent, a fixed contact-request text is appended to that
  reply, once per bot+user
- user messages are then checked for contact details (patterns for CN
  mobile/landline, email, WeChat; LLM extraction as fallback)
- on capture, the full conversation is emailed via Resend (configurable
  API key, sender, recipients) with a .txt transcript attachment; failed
  sends are retried on later replies, up to 3 attempts; an optional
  thank-you is appended to the next reply
- every failure is logged and never breaks the conversation

Misc plugin CI now uses any plugin's own requirements-dev.txt.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 18:18:23 +08:00

3 lines
55 B
INI

[pytest]
asyncio_default_fixture_loop_scope = function