How to modify chat in ERPnext

I want to modify existing chat module to add more functionality. I want to create a chatbot where user can get auto reply on their question. Please help me, how i can modify the chat and where i can find chat module related file.
Thank You

Hi welcome to ERPNext - these should help orient you:

Chat Notification icon - #5 by clarkej

Issues · frappe/frappe · GitHub

Hope this will help me.
Thank you