Help for an Automator script to inserti tags into a iBook Author text

Hullo to everyone, I would like to collect a number of chapters in iBook author, each with a large number of shared word tags. Apple told me those links would be stripped when pasting the chapters together and restoring them by hand would be daunting. There are several thousands links with some words being linked over one thousand times, and iBook author gets slower and slower when coping with words with many links. I got 84 seconds for adding a tag in a document when there are many, also excluding the possibility of doing the thing automatically. Thereafter I would like to use an automator script doing the task for me. Basically search each word from the glossary in the document, select the same word in the word list and the click ‘add link’ and go on to the end of the glossary list and the document. Of course I could also select the word myself and start the script for each single word. May anyone help? Thanks, Fabrizio