Send the following on WhatsApp
Continue to ChatHow to Automatically Generate a Table of Contents in Google Docs Using Google Apps Script https://basescripts.com/how-to-automatically-generate-a-table-of-contents-in-google-docs-using-google-apps-script