How to add custom app to mayan EDMs


I’m trying to add new feature, an AI-powered search to Mayan EDMS. This new feature should show a new button in the topbar beside the advacned search button called “AI search”, that is when clicked will redirect the user to a new page with a seach box “similar to the basic search”.

The search results will contain a text “generated by the AI backend” and a link that is when clicked will redirect to a specific document (I have the document uuid here).

The problem is, I want to create this as a custom app, but I cannot find any documentation how to do this and configure it to work with existing mayan apps.

If anyone have good resources please let me know.