Import content to chatbot via a file added by admin

Is there a way to import content to the chatbot from a file. I am trying a build a chatbot for a company. I want to add synonyms to my entities and those synonyms are a file text that should be uploaded by the admin of the application. so it goes like this. so I want to bind the chatbot with an interface that asks the admin to upload the list of sysnonims of a certain entity and then the chatbot will take the file and edit the domain.yml file to add it to the synonyms of that entity.