This technique has been widely used by chatbots of the Eliza type. It consists of reformulating the input message to generate a corresponding output. For example, if the user writes you are a chatbot the answer of the chatbot will be so you think I'm a chatbot.
The substitutions that are made using this technique concern mainly personal pronouns (you → me) and verbs (you are → I am), therefore transforming all forms in the first person into forms in the second person and vice versa.