theme development – How to create an import demo content feature?

In a theme I am building, I want to add a spot on the settings page to import demo content. Any good articles or videos to learn how to import demo content? I know hoe to create the settings page but this functionality I am unsure about. For example, it will be prebuilt pages and stuff that fits the theme.