Introduction: Natural plant polymers demonstrate effective corrosion inhibition abilities, because of their numerous binding sites and excellent adsorption abilities. Methodology: In this study, the Box-Behnken method, gravimetric and electrochemical analyses were used to design and investigate the corrosion inhibition potential of a modified graft polymer of okra for mild steel in a 1M HCl medium. The influence of inhibitor concentration, temperature, and time were also investigated. Qualitatively, the Fourier Transform Infrared (FTIR) spectroscopy, Thermogravimetric Analysis (TGA), and Field emission scanning electron microscopy (FESEM) were used to characterize the extracts and evaluate the metal's surface morphology. Results and discussion: The quantitative analyses showed that the modified natural polymer's inhibition efficiency (IE) increased with concentration and reached 73.5% at 800ppm, with a mixed-type mode of inhibition. From the response surface methodology, it was revealed that temperature influences the IE more than concentration and immersion time. The optimized IE using the desirability function showed the possibility of attaining 88.2% inhibition with inhibitor concentration at 142.3ppm, temperature at 60.4°C, and an immersion time of 22.4h. The new functional groups in the hybrid polymer revealed by FTIR analysis shows that grafting improved the inhibitor's adsorption abilities. TGA analysis confirmed the extract's high thermal stability, which highlights the inhibitor's strong adsorption and efficiency for high temperatures. FESEM analysis indicated evidence of inhibitor adsorption onto the metal surface. Conclusion: These findings suggest that the grafting of okra with acrylamide enhances its inhibition properties and contributes to its functionality as a cost-effective plant-based alternative inhibitor against corrosion for mild steel facilities.