Give your users a chat guide that finds the best movies in your database and saves their picks. It responds to each message and can store favorites for later. Great for media teams and apps that want faster content discovery.
Messages arrive at a public webhook and feed an AI agent. The agent uses an OpenAI chat model with a 10 message memory so it remembers context. When search is needed, it builds a MongoDB aggregation pipeline and queries the movies collection. When a user wants to save a title, it calls a save tool that writes {"title": "movie name"} into MongoDB. This mix of search and write back makes the chat feel smart and useful in one place.
Setup needs an OpenAI API key and a MongoDB connection with read and write rights. Point your site chat, app, or form to the webhook URL and set allowed origins to your domain. Expect shorter handling time, fewer query mistakes, and more engagement as users get quick answers and can keep favorites. Good fits include streaming catalogs, media libraries, or any product list that benefits from guided discovery and simple save actions.