A system for machine-assisted straightening of hardened metal workpieces, said system comprising: - a device for obtaining the shape of a workpiece, which may be any suitable device enabling geometric measurements, - a manipulator having a tool for performing straightening strikes, wherein the manipulator and/or the tool is arranged to apply at least one strike on the surface of the workpiece, the workpiece set on a suitable surface or a straightening table, and wherein the straightening strikes are controlled by their ∘ position (x,y coordinates), ∘ orientation (rotation angle) of the tool, and/or ∘ force, - a predictive model, which is arranged to predict changes in the geometry of the workpiece upon a particular straightening impact, said predictive model being prepared using artificial intelligence or any other technique of mathematical modelling, wherein the predictive model is trained with training sets provided by controlled experiments comprising different materials of the workpiece, various numbers of strikes, different forces, locations, orientations and strike sequences, during which the acoustic response and geometrical changes of the workpiece are tracked; - an optimization system for preparing an optimized straightening strategy to be performed by the manipulator, wherein an optimization of the straightening strategy aims to find at least an optimal number of strikes, their locations, sequence, straightening force and/or rotation of the tool, whereby each suggested solution of the optimization is evaluated using the predictive model, wherein the predictive model and the optimized straightening strategy are a part of operations performed by a computer and/or a processor, a microcontroller or a similar element of the computer or system. - a device for obtaining the shape of a workpiece, which may be any suitable device enabling geometric measurements, - a manipulator having a tool for performing straightening strikes, wherein the manipulator and/or the tool is arranged to apply at least one strike on the surface of the workpiece, the workpiece set on a suitable surface or a straightening table, and wherein the straightening strikes are controlled by their ∘ position (x,y coordinates), ∘ orientation (rotation angle) of the tool, and/or ∘ force, ∘ position (x,y coordinates), ∘ orientation (rotation angle) of the tool, and/or ∘ force, - a predictive model, which is arranged to predict changes in the geometry of the workpiece upon a particular straightening impact, said predictive model being prepared using artificial intelligence or any other technique of mathematical modelling, wherein the predictive model is trained with training sets provided by controlled experiments comprising different materials of the workpiece, various numbers of strikes, different forces, locations, orientations and strike sequences, during which the acoustic response and geometrical changes of the workpiece are tracked; - an optimization system for preparing an optimized straightening strategy to be performed by the manipulator, wherein an optimization of the straightening strategy aims to find at least an optimal number of strikes, their locations, sequence, straightening force and/or rotation of the tool, whereby each suggested solution of the optimization is evaluated using the predictive model, <EOS>