How can the bot response to user using dataset in mongodb

Hi everyone , I am now struggling with this problem. I have already done the queries on mongodb and it worked correctly. But now I don’t know how to setup the function or python code for the bot to use the data that is queried from mongodb to show the response correctly to user. Please help me , I am looking forward to seeing your help Thanks in advance.


If you guys need any information, I will absolutely provide it right away

the queries worked correctly , I have written an individual file to test it, and it worked

1 Like