Some people aren't aware of Minecraft plugins possibilities. Because of this, I share with you an example of aninteraction with an NPC I made using Citizens and Betonquest.
Although it's in Spanish, it shouldn't be hard to realize how you can choose different options to answer what the NPC is saying. The choices you take, of course, have a direct influence on what the NPC says next.