You can add a table of contents template to automatically generate for your book using the Chapterly tools.
Log into the Chapterly Dashboard and select the Library. Select the book that you wish to add the Table of Contents to. Navigate to the "Front Matter" folder by clicking the dropdown arrows to show the document tree of the book so that the Front Matter folder is visible: <Selected book<Manuscript<Front Matter. Place a checkmark in the "Table of Contents" box to generate it.
The table of contents populates automatically based on the pages selected in the template and the chapters of the book.