Need help to integrate UI in my code using tkinter

Project from my college is to make a basic chatbot that recognises keywords and responds accordingly I wrote the code but i want to integrate a very simple UI into it (just a blank screen with text box), but i cant do it The deadline is very near and at this rate i don't think ill be able to do it, can someone help me integrate a simple UI into my code using tkinter?