2026-10-01
How To Use Clef State & Question Schema
Learn how to write good state and question inputs for the Clef decision model to get reliable probability outputs.
- Include only relevant context; remove unrelated text to reduce token cost
- Use structured JSON if your data is machine-readable
- Describe constraints, history and current environment clearly
- Keep your question clear and specific
- List mutually exclusive options
- Limit option count to a reasonable number for stable results
- Clef model example code
- Clef for agent routing
- Clef-flash vs Clef benchmark
- What Is Cloudflare Clef Decision Model?
- Clef Model Tutorial: Build Agent Decision Workflows
Ready to test? Open the Clef Decision Playground.