Automating Complex Conversations with User Input Flow in Webchat