I use SimplePars for parsing products directly in the store on OpenCart
During module operation, I can run my custom PHP scripts
During parsing, I run 8 scripts
1 before the parsing stage in the CMS (sending characteristics to Open AI assistant for mapping characteristics with those already created on the site)
7 after parsing in the CMS (translating standard and Ukrainian-Russian characteristics, calling a key phrase from Google Sheets, creating a unique Ukrainian and Russian description using Open AI assistant, creating SEO URL, creating meta data, wrapping the model + code supplier for the supplier module)
The situation: everything worked perfectly for me, but characteristic mapping was constantly error-prone (the assistant was constantly slow)
So I changed the first script (the one before parsing in the CMS) and sent the assistant's response for verification to a second assistant, and used this response to update characteristics
After that, the module started hanging (all scripts execute, but the module does not proceed to the next product)
No matter what I do, I can't fix this. I wrote the scripts with ChatGPT, so I can't fix this problem myself now