A machine becomes intelligent by training with data and algorithm. AI machines keep updating their knowledge to optimize their output.
OR
Machines also become intelligent once they are trained with some information which helps them achieve their tasks. AI machines also keep updating their knowledge to optimize their output.
Study more about introduction to AI at intro to AI