# Smarter workflow decisions with session-aware routing and conditions

> Workflow Condition (evaluator) and Router (selector) functions now receive session_state, enabling context-aware decisioning.

- Published: 2025-10-20
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/smarter-workflow-decisions-with-session-aware-routing-and-conditions
- Markdown: https://agno-com-nine.vercel.app/articles/smarter-workflow-decisions-with-session-aware-routing-and-conditions.md

Workflow Condition (evaluator) and Router (selector) functions now receive session_state, enabling context-aware decisioning. This reduces boilerplate and lets you implement more expressive branching, prioritization, and error handling based on the current session.

**Details**

- Evaluator and selector callbacks now have access to session_state
- Build dynamic routing based on user profile, prior steps, or accumulated context
- Improves maintainability by removing ad hoc state passing and side channels

**Who this is for:** Teams orchestrating multi-step agents and adaptive flows that depend on real-time context and session history.
