Building Your First AI Chatbot: From API Call to Conversational Memory