AI: Its Link with Knowledge Management

For any task, there is information about the task (input), process using knowledge, and output that completes the task. How do artificial intelligence (AI) and knowledge management work with each other in this process?