# Adding entities to nlu file using rasa command and validating it

**URL:** <https://forum.rasa.com/t/adding-entities-to-nlu-file-using-rasa-command-and-validating-it/35875>\
**Category:** Rasa Open Source\
**Created:** [October 14, 2020, 10:51am UTC](https://forum.rasa.com/t/adding-entities-to-nlu-file-using-rasa-command-and-validating-it/35875 "2020-10-14T10:51:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![radioeng](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@radioeng](https://forum.rasa.com/u/radioeng)\
**Post date:** [October 14, 2020, 10:51am UTC](https://forum.rasa.com/t/adding-entities-to-nlu-file-using-rasa-command-and-validating-it/35875/1 "2020-10-14T10:51:24Z")

</div>

I want to add entities to existing nlu data, update stories file, validate data using a rasa command , Please suggest to me a command which will achieve this.

Actually, I am not adding the data in nlu file manually, i am using custom APIs to update nlu, stories, and domain file. So, I am looking for endpoint or rasa specific commands, which serve my APIs. If not then what is the alternate? is it good to use python file logic to update or add entities, slots, etc in all, stories, domain.yml file.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [October 15, 2020, 11:52am UTC](https://forum.rasa.com/t/adding-entities-to-nlu-file-using-rasa-command-and-validating-it/35875/2 "2020-10-15T11:52:17Z")

</div>

Hi @radioeng, good question. which api endpoints are you currently useing to update nlu? you should be able to add the entities that way 🙂 you can annotate entities directly in the intents. There isn’t an API for adding a new intent or a new entity for example, just for updating nlu data.

---

<div class="post-metadata">

**Author:** ![radioeng](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@radioeng](https://forum.rasa.com/u/radioeng)\
**Post date:** [October 16, 2020, 5:24am UTC](https://forum.rasa.com/t/adding-entities-to-nlu-file-using-rasa-command-and-validating-it/35875/3 "2020-10-16T05:24:02Z")

</div>

Hi @erohmensingThank you for your response.  
I am using Django and Flask API endpoints to update intents. If I have to add entities, I am using python file read-write logic. So, I wanted to know is there any API or command already available which can perform this task. i.e Below is the scenario:

## intent:query\_response

- I want to know details about adobe products

entities need to be added for same, and the final result should be like

## intent:query\_response

- I want to know details about adobe productsadobe
