Open your Google Docs document
Place the cursor where you want the table of contents
Format your section titles using heading styles
Click Insert
Select Table of contents
Choose a table of contents style
Update the table of contents after making changes by clicking the refresh icon
Make sure all headings are properly formatted so they appear in the table of contents
