Build an AI Chatbot in NextJS: A Step-by-Step Guide