Turning Conversations into Workflows: A Framework to Extract and Evaluate Dialog Workflows for Service AI Agents