In the same way that you trigger the end of the game when you place your 4th glory token, Automa triggers the end of the game when she places her 8th.
She scores for each glory token that she has on Basecamp as well as for the map and corruption tokens she has gained. The number of coins gained for each token type is listed on the progress card for the chosen difficulty level.
If you tie for coins, then Automa wins.