how to create export documents automatically