Attached, you will find a compiled file and the source code. Although two of the libraries used are paid, this should give you an idea of how you can create a copilot app and adapt it to your needs. This is a humble example, a simple project. I apologize if the code isn't perfect; it's just a small experiment.
Feel free to improve and modify it as you see fit!