Designing conversational flows and dialogues