How to automate annotation for 3d scatter plot

here, they show how to add annotations to a 3d scatter plot. It works, but it’s too manual. I need to add too many annotations to do it like that. Instead I used a for loop that added annotations one by one. The problem is that at the end, only the last annotation is displayed. So, it’s just rewriting them, but not adding new annotations. Any idea on how to solve this?