Intrapersonal communication
Intrapersonal communication (also known as autocommunication or inner speech) is communication with oneself or self-to-self communication. Examples are thinking to oneself "I will do better next time" after having made a mistake and imagining a conversation with one's boss in preparation for requesting to leave work early.
Source: Wikipedia — Intrapersonal communication (CC BY-SA 4.0)