Chatbots generate responses by predicting text based on the data they were trained on, without any purpose or meaning behind them.