configuration.getPromptsDirectory(),
                         "Prompts directory",
                         null,
-                        "The prompts directory is where the AI prompt files (*.txt) are stored. " +
+                        "The prompts directory is where the AI prompt files (*.yaml) are stored. " +
                                 "Please specify new prompts directory path.",
                         true)
         );
 
 
 import java.io.*;
 import java.util.List;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
 
-import static eu.svjatoslav.commons.file.IOHelper.getFileContentsAsString;
 
 /**
  * <p>Central configuration class storing all application parameters.
      * maps to "writer.txt" in the prompt's directory.
      *
      * @param promptName the name of the prompt file (without ".txt").
-     * @return the full text content of the prompt file.
+     * @return the full-text content of the prompt file.
      * @throws IOException if reading the prompt file fails.
      */
     public String getPromptByName(String promptName) throws IOException {
-        File promptFile = new File(promptsDirectory, promptName + ".txt");
-        return getFileContentsAsString(promptFile);
+        File promptFile = new File(promptsDirectory, promptName + ".yaml");
+        ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
+        PromptConfig config = mapper.readValue(promptFile, PromptConfig.class);
+        return config.getPrompt();
     }
+
 }