An autonomous, lifecycle-aware AI Revenue Operating System for Customer Success.
ViM (Value in Motion) is a closed-loop agentic execution process that turns an outcome goal into actions, learns from results, and keeps iterating until value is delivered.
- Get the Mission (Objective Function): This prevents the agent from hallucinating or drifting. By defining "what success looks like" upfront, the agent has a definitive metric to measure its progress against during the final iteration step.
- Scan the Scene (Context & RAG): Agents are only as good as their situational awareness. This step effectively combines memory retrieval, real-time data ingestion, and constraint checking, ensuring the agent doesn't act blindly.
- Think It Through (Planning & Reasoning): This acts as the Chain-of-Thought (CoT) phase. Breaking a large mission into subgoals and identifying the necessary tool calls prevents the agent from attempting to solve complex problems in a single, error-prone leap.
- Take Action (Tool Use / Function Calling): This is where the model connects to the real world. By limiting execution to one concrete step at a time, you minimize the blast radius of potential errors.
Value in Motion™ detects value friction, anticipates risk from day one, and orchestrates targeted actions across the entire customer lifecycle.
It operates in closed loops:
Detect → Diagnose → Decide → Act → Observe → Improve
Not a dashboard.
Not a chatbot.
A lifecycle decision and execution engine.
Customer Success does not fail due to a lack of data. It fails due to a lack of structured execution.
Most CS teams:
- Track health scores
- React to churn signals
- Coordinate manually across tools
Value in Motion™ transforms Customer Success from reactive tracking to proactive revenue orchestration.
- Customer Success Leaders (CSM / CS Ops) scaling retention and operational rigor
- Series A–C SaaS Founders building predictable revenue engines
- Revenue & GTM teams focused on NRR and expansion
- AI / Agentic builders designing autonomous SaaS workflows
- -+20–40% Net Revenue Retention uplift
- –30% manual CSM workload
- 30–90 days earlier renewal risk detection
- Stronger expansion signal visibility
- Structured lifecycle governance
- ✅ Risk Detection Agent (Sales → Adoption → Renewal)
- ✅ Lifecycle-based phase scoring logic
- ✅ Phase-level diagnostic output (identify broken stage)
- ✅ Actionable recommendations
- ✅ Local execution engine (Python)
In Progress
- ⏳ Multi-agent lifecycle orchestration (LangGraph full loop)
- ⏳ CRM + telemetry integration
- ⏳ LLM-powered reasoning layer
- ⏳ Autonomous execution tools (email, CRM updates, alerts)
Value in Motion™ is not a chatbot. It is a Revenue Operating System ensuring value flows continuously from:
Intent → Outcomes → Adoption → Impact → ROI → Expansion → Reinvestment → Renewal
When value flows, revenue follows.
A runnable lifecycle-aware agent detecting churn risk across:
Sales → Adoption → Renewal
Run locally: pip install -r requirements.txt python -m src.risk_agent.main
System Flow — Risk Detection Agent
#1. INPUTS — Signals Enter the System
Source
examples/sample_account.json- (future: CRM, telemetry, product usage)
Signals
- ICP fit
- Usage metrics
- Stakeholders
- Deal complexity
- ROI signals
→ Raw customer reality.
#2. VALIDATION — Structured Input
File: schemas.py
- Pydantic validation
- Data standardization
- Garbage-in protection
→ Turns signals into a trusted state.
#3. DECISION ENGINE — Lifecycle Diagnosis
File: agent.py
- Risk scoring (LOW / MEDIUM / HIGH)
- Root cause detection
- Phase break mapping
- Recommended corrective motion
→ This is the deterministic lifecycle brain → probabilistic AI
#4. ORCHESTRATION — Execution Runtime
File: main.py
- Load signals
- Invoke agent
- Output structured decision
→ Orcchestrate Value-in-Motion™ framework
#5. OUTPUT — Decision-Ready Insight
=== VALUE IN MOTION — RISK AGENT ===
Account: ACME Risk: HIGH Reasons: Low ICP fit, High deal complexity, Low usage (30d), No workflow integration, No executive engagement Action: Recovery: exec alignment + value proof plan (14 days)
→ Not analytics.
→ Actionable motion.
flowchart TB
A[Signals] --> B[Validation Layer]
B --> C[Lifecycle Diagnosis Engine]
C --> D[Phase Break Detection]
D --> E[Corrective Motion Recommendation]
E --> F[Execution Layer]
F --> G[Observation Loop]
G --> C
The agent operates against a strict lifecycle state machine:
Intent → Outcomes → Workflow → Operational Change → Adoption → Usage → Impact → Value → Expansion → Executive Validation → Reinvestment
Risk = friction in one of these phases.
High Risk ≠ churn prediction.
High Risk = broken value flow.
Applying Lean (Muda, Mura, Muri) to SaaS telemetry:
| Lean Concept | SaaS Reality | Agent Response |
|---|---|---|
| Muda (Waste) | Shelfware | License optimization plan |
| Mura (Inconsistency) | Adoption gaps | Targeted enablement workflow |
| Muri (Overload) | Escalation spikes | Pre-renewal mitigation |
The agent scans continuously for structural inefficiency before revenue impact.
- Orchestration: LangGraph
- LLM Layer: Claude / GPT
- Framework: LangChain
- Observability: LangSmith
- Telemetry: Pandas / SQL
- Execution Layer: Python runtime
Structured for:
- Unit testing
- Integration testing
- Eval-driven development
- CI/CD readiness
Most automation:
- Linear workflows
- Static triggers
- Human-dependent orchestration
Value-in-Motion™:
- Stateful lifecycle reasoning
- Persistent account memory
- Gated phase transitions
- Loop resolution until criteria met
- Human-in-the-loop governance
Human = Supervisor Agent = Lifecycle Executor
- ≥30% time saved per CSM
- Renewal brief auto-generated with ≥80% relevance
- Expansion surfaced before the renewal window
- Lean waste auto-detected
- No dropped stakeholder
Customer Success today:
- Reactive
- Fragmented
- Signal-blind
Value-in-Motion™:
- Structured
- Stateful
- Signal-driven
- Autonomous
- Expansion-oriented
From relationship management
→ To autonomous revenue orchestration.
Value-in-Motion™ is not:
- a CRM
- a dashboard
- a reporting tool
It is:
→ An Autonomous Customer Success Operating System
#1. Action Library Layer
-
4 Stages:
→ Hands-off → Onboarding → Value Realization → Renewal/Expansion -
11 Phases:
→ Transition → Kickoff → Workflow Integration → Orchestration → Observatory → Risk Mitigation → Churn → Value ROI → Renewal/Upsell → Advocacy → VoC -
44 Steps:
→ Action Library
#2. Policy Governance Layer
- AUTO (can run alone)
- APPROVAL REQUIRED (CSM must approve)
- BLOCKED (never allowed)
#3. Autonomous Layer
-
Autonomous = Planner × State × Loop × Tools × Policy
-
Planner: Reasoning Engine
-
State: Memory + Context
-
Orchestration (Loop): Detect → Decide → Act → Observe → Update → Repeat
-
Tools: CRM (Salesforce), Telemetry (Quicksign), UX behavior (Pendo), CS SaaS (Planhat), MCP, API, DB...
- Orchestration: LangGraph (Python)
- LLM: Claude 3.5 Sonnet / GPT-4o
- Framework: LangChain
- Observability: LangSmith
- Data Sources: Salesforce / Planhat / Snowflake / LlamaIndex
- Telemetry Analysis: Pandas / SQL
Stateful Orchestration
This system moves beyond simple "Trigger -> Action" automation. It uses LangGraph to implement a State Machine. The agent has a "Long-Term Memory" (State) for each account and persists context across days or weeks.
flowchart TB
subgraph Memory ["💾 Persistence Layer (Checkpointers)"]
State["Account State<br/>(Phase, Risk Score, Missing Fields)"]
end
Start((Start)) --> Router{Phase Router}
%% PHASE 1: TRANSITION
Router -->|Phase 1| P1[Node: Handoff Audit]
P1 --> G1{Gate: Data Ready?}
G1 -- No --> L1[Loop: Fetch Missing Anchors]
L1 --> P1
G1 -- Yes --> P1_Exit[Update State: Ready for Phase 2]
%% PHASE 2: DIAGNOSTIC
P1_Exit --> P2[Node: Diagnostic Agent]
P2 --> Q1[Task: Stakeholder Mapping]
P2 --> Q2[Task: Pain Metric Check]
Q1 & Q2 --> Risk{Risk Detected?}
Risk -- Yes --> Escalate[Node: Draft Risk Mitigation Plan]
Risk -- No --> CSP[Node: Draft Success Plan]
%% PHASE 4: VELOCITY
CSP --> P4[Node: Velocity Sensors]
P4 --> S1[Check: TTV Metrics]
P4 --> S2[Check: License Utilization]
S1 & S2 --> NBA[Node: Next Best Action Queue]
%% HUMAN INTERVENTION
Escalate -.-> Human((👤 Human Approval))
Human -->|Approve| Action[Execute Mitigation]
Human -->|Reject| Replan[Re-Reason Strategy]
value-in-motion-agent/
├── src/
│ ├── graph/
│ │ ├── __init__.py
│ │ ├── state.py # Defines the AccountState (TypedDict)
│ │ ├── nodes.py # Core logic (Audit Node, Diagnostic Node)
│ │ ├── edges.py # Conditional logic (Gates and Routers)
│ │ └── compiled_graph.py # The LangGraph entry point
│ ├── tools/
│ │ ├── crm_tools.py # Salesforce/HubSpot connectors
│ │ ├── email_tools.py # Draft generation
│ │ └── data_tools.py # Telemetry analysis (Pandas/SQL)
│ └── prompts/
│ ├── auditor_prompt.yaml
│ └── strategist_prompt.yaml
├── tests/
│ ├── unit/ # Function tests
│ └── integration/ # Full graph run tests
├── docs/
│ ├── architecture.mmd
│ └── setup_guide.md
├── requirements.txt
└── .env.exampleStructured for:
- Unit testing
- Integration testing
- Eval-driven development
- CI/CD compatibility
flowchart TB
R[value-in-motion-agent/]
R --> SRC[src/]
R --> EX[examples/]
R --> DOC[docs/]
R --> REQ[requirements.txt]
R --> RD[README.md]
SRC --> RA[src/risk_agent/]
RA --> MAIN[main.py]
RA --> AG[agent.py]
RA --> SC[schemas.py]
RA --> DATA[data/]
DATA --> ACC[accounts.json]
EX --> OUT[risk_agent_output.txt]
RD -->|links to| OUT
RD -->|shows diagram| DOC
The agent is treated as production software.
Core Metrics
- Handoff audit accuracy
- False-positive risk detection
- Draft safety compliance
- Token cost per account
- Time saved per lifecycle phase
Every execution is traceable and regression-tested in LangSmith.
git clone https://github.com/ValueInMotion/value-in-motion-agent.git
cd value-in-motion-agent
pip install -r requirements.txt
cp .env.example .env
