🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 22: Video Support Chatbot

AI Engineer
Current Task

Objective

Review day: combine ConversationBufferMemory from day 7 with a third turn, then read back a specific message.

Task: save three turns to memory and print the content of the very first message.

index.py
from langchain.memory import ConversationBufferMemory memory = ConversationBufferMemory() memory.save_context({"input": "How do I resize the player?"}, {"output": "Drag the bottom-right corner."}) memory.save_context({"input": "Can I go fullscreen?"}, {"output": "Yes, press F."}) memory.save_context({"input": "What about picture-in-picture?"}, {"output": "Click the PiP icon."}) print(memory.chat_memory.messages[0].content)

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview