add invoke for task automation, and initial fetch task