The script uses ChatGPT to translate HTML content of pages (visual editor) into the Ukrainian language. The script uses a complex request to ChatGPT to perform certain additional actions other than translation, such as replacing links, ignoring words, a list of special words to replace, etc.