TIP - When bot users first talk to your bot, the main flow is run. But here in the Mini-App system, the main flow doesn't have any special meaning. It's just like any other mini-app subflow.
Folders can be used to manage and group subflows.
For subflow type:
In the chatbot system, normal subflow runs in the front end and workflow run at the backend but in the Mini-App system, they are all run in the back since there is no Send Message Step or Question Step in mini-apps.
While function flow is where you can put repetitive tasks and call them anywhere in other subflows.