Looking at the code, It can only delegate actions to the pre configured functions at:
https://github.com/steven-tey/chathn/blob/main/app/api/chat/...
I wonder whether it is possible to create "atomic" functions to build high level queries from a user chat. Or maybe even create adapters to virtual db tables, and then tell ChatGPT to convert your query to SQL to be run on said tables.