Artificial photosynthesis is possible by chemical process by using sunlight,CO2,water.Most of the processes aim at using sunlight. Because sunlight is available in large quantity and free ly available.
Energy conservation by using sunlight is more benificial than developing a method where electricity is used. Because electricity produciton also is a big process.So free energy like sunlight is used in all these techniques.In any case we are getting glucose freely from our suroundings by plants,so it has not reached a commercial scale .