Composing A Safe Human-AI Interaction Flow