Chain Of Thought: AI Agent Task Automation