Fully-integrated electrochemical system that captures CO2 from flue gas to produce value-added chemicals at ambient conditions