Skip to main content

ConvoYield — Conversational Yield Optimization Engine

Treat every bot conversation as a yield-bearing financial instrument.

ConvoYield is a zero-dependency Python skill that gives any bot the ability to detect, score, and capture hidden monetary value from every single conversational exchange — not just the ones that end in a sale.

In finance, a yield is the income return on an investment. In conversations, the yield is the total value you can extract: revenue, data, referrals, engagement, competitive intel. Most bots capture less than 20% of available conversational yield. ConvoYield fixes that.

Why This Exists

Out of 13,700+ skills in the OpenClaw ecosystem, not a single one treats conversations as financial instruments. Every bot talks. No bot optimizes the value of what it says.

ConvoYield applies concepts from behavioral economics, financial engineering, and game theory to conversational AI:

Concept Financial World ConvoYield
Arbitrage Exploit price gaps across markets Exploit sentiment gaps for revenue
Yield Income return on investment Dollar value of each conversation
Momentum Stock price trend direction Engagement trend direction
Risk Probability of loss Probability of losing the user
Micro-conversions Dividend payments Small value extractions per message

Zero Cost to Run

  • ZERO external dependencies — pure Python stdlib
  • ZERO API calls — all analysis runs locally via pattern matching and heuristics
  • ZERO tokens consumed — doesn't call any LLM APIs
  • ZERO infrastructure needed — pip install and go

The Five Engines

1. Sentiment Arbitrage Engine

Detects emotional gaps that create revenue opportunities. A frustrated user mentioning a competitor isn't just venting — it's a $45+ conversion opportunity if handled correctly.

2. Micro-Conversion Tracker

Finds hidden money in every message. Between "hello" and "purchase," there are dozens of micro-moments worth $0.50-$15 each: email captures, budget reveals, pain point articulations, referral signals.

3. Momentum Scorer

Measures whether the conversation is gaining or losing steam. Positive momentum = push for conversion. Negative momentum = pull back and re-engage before you lose them.

4. Yield Forecaster

Predicts the total dollar value of the conversation in real-time. Imagine a dashboard showing: Estimated Value: $127.50 | Captured: $35.00 | At Risk: $92.50

5. Play Caller

Recommends optimal strategic "plays" from a 20-play playbook based on behavioral economics: anchoring, loss framing, social proof deployment, empathy bridges, urgency closes, and more.

Quick Start

from convoyield import ConvoYield

engine = ConvoYield(base_conversation_value=50.0)

# Process each user message
result = engine.process_user_message("I'm frustrated with Salesforce, it's way too expensive")

print(result.recommended_play)       # "competitor_displacement"
print(result.estimated_yield)         # 89.50
print(result.recommended_tone)        # "empathetic"
print(result.top_arbitrage.type)      # "frustration_capture"
print(result.risk_level)              # 0.21

# Record bot response for full state tracking
engine.record_bot_response("I hear you. What specifically isn't working?")

# Next message — yield COMPOUNDS
result = engine.process_user_message("The reporting is terrible and costs $500/month")
print(result.estimated_yield)         # 142.30 — value is growing!

Integration

Works with any bot framework:

# Discord, Telegram, Slack, OpenClaw — same pattern:
guidance = engine.process_user_message(user_text)

# Use guidance to shape your response:
# guidance.recommended_play → WHAT strategy to use
# guidance.recommended_tone → HOW to say it
# guidance.arbitrage_opportunities → WHERE the money is
# guidance.micro_conversions → WHAT value to capture
# guidance.risk_level → HOW careful to be

See examples/openclaw_skill.py for a complete OpenClaw skill wrapper.

Install

pip install -e .

Run Tests

pip install -e ".[dev]"
pytest tests/ -v

Run Demo

python examples/basic_usage.py

Architecture

convoyield/
├── __init__.py              # Public API
├── orchestrator.py          # Main ConvoYield engine
├── engines/
│   ├── sentiment_arbitrage.py   # Emotional gap detection
│   ├── micro_conversion.py      # Value-extraction tracking
│   ├── momentum.py              # Engagement trend analysis
│   ├── yield_forecaster.py      # Dollar value prediction
│   └── play_caller.py           # Strategic play recommendations
├── models/
│   ├── conversation.py      # Conversation state model
│   └── yield_result.py      # Analysis result model
examples/
├── basic_usage.py           # See it in action
├── openclaw_skill.py        # OpenClaw/MoltBot integration
└── batch_analysis.py        # Analyze conversation logs
tests/
└── test_convoyield.py       # 40 tests, 100% pass rate

License

MIT — Use it, sell it, build on it. Every bot deserves to know what its conversations are worth.

Metadata

Release files for convoyield 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for convoyield 1.0.0
File Size Uploaded Provenance
convoyield-1.0.0.tar.gz 86.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for convoyield 1.0.0
File Interpreter ABI Platform
convoyield-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 184.9 kB

Release files / convoyield-1.0.0.tar.gz

Download URL convoyield-1.0.0.tar.gz
Size 86.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eaef7bb6bef5498998f8c8a5f89c12d6ec0b48a26928ec5f47a6429679898b99
BLAKE2b-256 checksum
How to use checksums
2747cfea48fc715dcaeddfe644ebc411ff17cdb9ff494ff4c7ae239f9501db2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / convoyield-1.0.0-py3-none-any.whl

Download URL convoyield-1.0.0-py3-none-any.whl
Size 98.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cb7fbf727115da544cbe14d65478c7d2c5743c3cfd9dc4c46225f661eb66dbd
BLAKE2b-256 checksum
How to use checksums
4b6c3acd356fe1a9ab21418c235267d9c67203937790076f3790913e55eaa028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for convoyield 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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