Task Flows¶
These are the first four tasks most engineers complete when adopting Ranya.
Task 1: Get a Call Working (Twilio + Providers)¶
- Pick providers for Transport, STT, TTS, and LLM.
- Set environment variables and start from
examples/hvac/config.yaml. - Run the reference example.
- Confirm a full call completes end-to-end.
- If it fails, use the timeline artifacts to find the last stage.
Task 2: Add Tools (Business Actions)¶
- Define tool schemas with
llm.Tool. - Implement
llm.ToolRegistryin your app. - Enable confirmations for risky actions.
- Set timeouts and retries.
- Verify
tool_callandtool_resultframes appear.
Task 3: Add Routing and Language¶
- Choose
router.mode(off,bootstrap,full). - Wire a
RouterStrategy(LLM router or custom). - Add a
LanguageDetectorif you need multilingual routing. - Ensure STT final frames include
is_final=true.
Task 4: Enable Observability and Debugging¶
- Set
observability.artifacts_dirto a writable folder. - Use JSON logs for fast
trace_idsearch. - Open the timeline JSONL and locate the last
frame_out. - Use cost and latency events to validate performance.