2.0 KiB
2.0 KiB
Teller Workflows Specification
Overview
Workflow definitions for common VTM teller interactions.
Workflow: Account Opening
State Machine:
[Start] → [Identity Verification] → [KYC Check] → [Account Creation] → [Wallet Setup] → [Complete]
↓ ↓
[Failed] [Manual Review]
Steps:
- Collect user information
- Initiate identity verification
- Run KYC checks
- Create account if approved
- Set up wallet
- Complete onboarding
Workflow: Bridge Action
State Machine:
[Start] → [Select Chains] → [Enter Amount] → [Risk Check] → [Confirmation] → [Execute] → [Monitor] → [Complete]
↓
[Failed]
Steps:
- User requests bridge
- Select source and destination chains
- Enter amount
- Get quote and show details
- Risk assessment
- User confirmation
- Execute bridge
- Monitor status
- Confirm completion
Workflow: Transaction Explanation
Steps:
- User provides transaction hash
- Fetch transaction details
- Explain transaction components
- Answer user questions
- Provide additional context if needed
User Consent Checkpoints
Checkpoint Types
Implicit Consent: Information queries Explicit Consent: Financial actions Strong Consent: High-value or high-risk actions
Consent Recording
Record:
- Action requested
- User acknowledgment
- Timestamp
- Method (voice, text, button)
Audit Logging Requirements
Logged Events
All Events:
- Workflow start/completion
- User inputs
- System actions
- Authorizations
- Escalations
- Errors
Log Format
{
"session_id": "uuid",
"user_id": "uuid",
"workflow": "bridge_action",
"event": "user_confirmation",
"data": {...},
"timestamp": "2024-01-01T00:00:00Z"
}
References
- Teller Orchestrator: See
teller-orchestrator.md - Conversation State: See
conversation-state.md