ALLOY: Generating Reusable Agent Workflows from User Demonstration