Agent: automatic template retriever & downloader (I)