Hi, I am making a program/chat bot to talk/learn. I can get it to read and save to a texts file, but thing is, I dont know how to make it more better when you answer it and it saves in the data base. Like I can preprograme to make it all ready read and tell you what I told it to say, but how would you let your program descide from what it has learn? Like
preprogram.
you say: "Hi"
comp: "hi ^.^"
Not preprogram
you say: "Hi"
comp: "what is hi?"
you say: "its a greeting"<--hi got saved in greetings
comp: "oh, hi ^.^"
I think it would look something like this, but I dont know to make it like this XD
soruce word ("hi") (or if its a new word that has been learn ("hi")
|-------|-------\
|-------|--------\
hey---hola-------hi