self-insertion

Noun

 * 1)  A literary device in which the author writes himself or herself into the story as a character.