StoryNodes is a free Branching Narrative/Dialogue creation tool.
Create your story using the web based editor.
Export your story as a web project, which presents your story as a Visual Novel
Or import your story into a game engine, using the relevant Importer.