This project is carried out in the field of motion planning of AGVs for the company AGVE with the aim to automate the obstacle free trajectory generation process. The process of manually generating splines in AutoCAD to achieve obstacle avoidance is replaced by the automatic generation of paths by running a python script. Artificial potential field algorithm is implemented in the python script to achieve obstacle avoidance. Clothoid curve is used to create feasible trajectories for obtaining obstacle free paths. The developed program is tested and proved suitable on three scenarios including a real-life problem encountered by the company. The output obstacle free path can be manipulated using three factors which are alpha, moving the neighbours and manipulating the scaling factor for potential fields in the APF algorithm.