What is contained in a txt file

I am making something in Automator that essentially lets you have a conversation with your computer. I have the ask for text action then you type in text, here’s my problem. I am new to applescripting and need a code that will only allow the app to continue if you enter the right statement. If you don’t then it needs to say something like “Goodbye” So if you type in the right statement then it could continue with the automator app.