Any kind of creative writing where characters communicate, such as a short story, poetry, novel, drama, film, or personal essay, uses dialogue.
For example
Types of dialogue
Inner dialogue and exterior dialogue are the two main forms of dialogue that writers use in their work.
Monologues
A monologue is a single, typically long speech uttered by one character as opposed to conversation. Many plays have monologues.
The character can be talking to the reader or spectator directly or they might be talking to another character or characters. A monologue is characterized by the fact that it is one character's opportunity to speak for themselves and/or share their views.