How lorenzejay/convo-flow-example-jev works
This small CrewAI example routes each customer turn through Jev, applies a confidence policy, and dispatches to a sample reply handler. The flow retains a shared conversation session and reports request measurements. Source confirms the live request and handler behavior; the README documents the routing lifecycle. Sample order and reply data live in scenario.json. No separate storage or production order/refund operations are shown.
Main entry points: flow.py Turn router · scenario.json Sample scenario
Components 10
Conversation
- Support flow
flow.py - Session state
flow.py - Sample scenario
scenario.json - Order handler
flow.py - Returns handler
flow.py - Clarify handler
flow.py
Routing
- Turn router
flow.py - Route decision
flow.py
Integration
- Jev API
Other components
- Customer
Connections 20
- Customer → Support flow: submits turns
- Support flow → Turn router: routes turn
- Turn router → Session state: reads history
- Turn router → Route decision: calls
- Route decision → Jev API: sends request
- Jev API → Route decision: returns choice
- Route decision → Sample scenario: reads order data
- Turn router → Session state: stores decision
- Turn router → Order handler: dispatches order
- Turn router → Returns handler: dispatches returns
- Turn router → Clarify handler: dispatches clarify
- Order handler → Sample scenario: reads reply
- Returns handler → Sample scenario: reads reply
- Clarify handler → Sample scenario: reads reply
- Order handler → Session state: appends reply
- Returns handler → Session state: appends reply
- Clarify handler → Session state: appends reply
- Order handler → Customer: returns reply
- Returns handler → Customer: returns reply
- Clarify handler → Customer: returns reply