Limitations in liver transplantation and advances in cell therapy methods motivated us to study primary hepatocytes. The main challenge in using primary hepatocytes for liver regeneration is that they lose their functionalities. We aimed to develop a controlled-shape hydrogel and apply the conditioned-media of mesenchymal stromal cells (CM-MSCs) to improve in vitro hepatocyte functions. In this experimental study, following rat hepatocyte isolation by collagenase perfusion and collection of human umbilical cord CM-MSCs, a simple and precise system called electrodeposition was used to produce the patterned alginate hydrogel. To reduce the cytopathic effects, we used an indirect electrodeposition method. For characterizing this structure, mechanical properties, Fourier-transform infrared spectroscopy (FTIR), water uptake, in-vitro degradation, and hydrogel stability were studied. Urea synthesis as a basic function of hepatocytes was assessed in five different groups. Scanning electron microscope (SEM) was utilized to evaluate the primary hepatocyte morphology and their dispersion in the fabricated structure. We observed a significant increase in urea synthesis in the presence of CM-MSCs in patterned hydrogel alginate compared to 2D culture on day 3 ( p<0.05). However, there was no significant difference in simple and patterned hydrogel on day 2. We found that the electrodeposition method is appropriate for the rapid fabricating of hydrogel structures with arbitrary patterns for 3D cell culture.