In "Harry Potter and the Goblet of Fire," Dobby is a house-elf who was first introduced in "Harry Potter and the Chamber of Secrets." He is a small, wiry elf with large, bat-like ears and tennis ball-sized green eyes. Dobby is fiercely loyal to Harry and sees himself as Harry's protector. In the fourth book, Dobby is working at the Hogwarts kitchen and is overjoyed to see Harry again.
Throughout the book, Dobby tries to warn Harry of the dangers that lie ahead, especially in regards to the Triwizard Tournament. He is the one who warns Harry about the plot to use him to resurrect Lord Voldemort and even goes so far as to steal a gillyweed plant for Harry to use in the second task of the tournament.
Dobby is known for his endearing and quirky personality, often referring to himself in third person and punishing himself for any perceived wrongdoing. He also wears a variety of colorful garments, including a tea cozy as a hat and mismatched socks. Despite being a house-elf, Dobby is fiercely independent and will go to great lengths to help his friends.
One of the most memorable scenes featuring Dobby in "Goblet of Fire" is when Harry sets him free by giving him a sock. Dobby is overjoyed by his newfound freedom, and it becomes clear that he was never truly happy serving the Malfoys. This moment emphasizes the theme of freedom and liberation in the Harry Potter series and showcases the strength of Dobby's character.