Can i my text file data set for intent examples and training just like lookup for entities?

I want to use my text file which contains around 1000 examples of an intent, that I want to use in my bot for training. I have seen the usage of lookup table for entities but I want to use this as my intent examples. How can I do that?

You can write a Python code unrelated to Rasa.

Let’s say in your text file you have each example on a line, you can create the intent with this pseudo-code:

output = "nlu:\n"
output += "- intent: " + intent_name + "\n"
output += "  examples: |\n"

for line in text_file:
  output += "    - " + line + "\n"

write(output, intent_name + ".yml")