Check out this video. It shows how Air Conditioners & Heat Exchangers Work. Very good explanation from the video. Hope you will understand the heat exchanger process and enjoy this post.
A heat [energy] transfer occured - the refrigerant absorbs the heat from the air - which warms the refrigerant and turns it to vapor.