Most LLM applications start with one prompt that tries to do everything. It classifies the request, answers it, and follows a policy, all in the same instruction. That works for a demo. In production, it becomes hard to tune, hard to test, and hard to explain when one kind of request gets a poor answer because the prompt was written for another kind.
The Routing Workflow pattern takes a different approach. Instead of one general prompt, you first ask the model to decide what kind of input it is looking at. Then you send the input to a prompt written specifically for that kind of input.…