I'm not an expert in this, but I think Twine is one well-supported option. In general the genre is called "Interactive Fiction" these days, and there's a bunch of engines for it, both graphical and non-. There's a broad overview here
https://en.wikipedia.org/wiki/Interactive_fiction#Software