Please find the document here:
​https://developer.rocket.chat/apps-development/recipes/storing-user-input​