How to Automate or Script?

What I’m trying to do

I have a folder in Obsidian, which contains nearly 400 notes. Each file name refers to a character name in a story.
The story itself is splitted into folders (chapters). Each chapter has notes.

Is there a way for Obsidian to lookup each note, cross check the note with all the character names in the characters folder, and create backlinks of them?

Things I have tried

Right now I am manually going from note to note searching and creating the backlinks of the characters manually. I am wondering if there’s a way to automate that.

1 Like