1. Energy flows through ecosystems via primary producers, consumers, and decomposers in food chains and webs. 2. Primary producers like plants and algae capture energy from the sun or chemicals and convert it to chemical energy in organic molecules. 3. Consumers acquire energy by eating primary producers or other organisms and decomposers break down dead organic matter, recycling nutrients.