Perhaps you could create a page template with all the elements you might want and always select that when creating a new page.
Then, you can remove any elements you don’t want/need as you build out the page.
Here’s a video my team made about creating great templates, in case it helps: https://youtu.be/IkRmyUCnRDo
Hello @Shrijal Pradhan ,
You can write the addon to listen toevents of Page Creation and then add ToC to page.
2) Also you can use ScriptRunner (https://marketplace.atlassian.com/apps/1215215/scriptrunner-for-confluence?hosting=cloud&tab=overview) to create Listener that will add the ToC to page: