Automating WooCommerce Product Creation

Hello,

I am trying to automate product creation on WooCommerce by allowing access via PHP (using the “Snippet Pro” extension) for ChatGPT on one side and WooCommerce access using their API keys on the other. The problem is, even with a valid ChatGPT API key, I am getting a 401 error…

PS: I am using the “Formidable” extension to input product information via a form, which is then sent to ChatGPT to generate a detailed and SEO-optimized product description. This is then sent back to the WooCommerce API for publication.