How would I create a game with choices?

So I want to create a game similar to Detroit become human, life is strange, and telltales walking dead. They all had choices that could have different consequences. I’m taking an unreal engine 4 class rn for cinematics. I have no idea where to start though. I have a good storyline in my head.