# Trying to add NLU training data to Rasa X via API calls

**URL:** <https://forum.rasa.com/t/trying-to-add-nlu-training-data-to-rasa-x-via-api-calls/23666>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [January 18, 2020, 2:31am UTC](https://forum.rasa.com/t/trying-to-add-nlu-training-data-to-rasa-x-via-api-calls/23666 "2020-01-18T02:31:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![netr](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@netr](https://forum.rasa.com/u/netr)\
**Post date:** [January 18, 2020, 2:31am UTC](https://forum.rasa.com/t/trying-to-add-nlu-training-data-to-rasa-x-via-api-calls/23666/1 "2020-01-18T02:31:08Z")

</div>

Hello,

I’m trying to add NLU training data to Rasa x from an external source (I have a web front end of conversation data from human chat supports). I’m currently testing it with [http://localhost:5005/conversations/test/messages](http://localhost:5005/conversations/test/messages) -\> which works _kind of_.

The problem that i’m having right now is #1 -\> It seems to not add training data when i use apostrophes. (i.e.: How’s it going). I tried escaping the ', html encoding it, url encoding it. Doesn’t seem to work. I’d love to fix that.

The second problem i’m having is, when I add to the tracker using that API endpoint. For some reason, Rasa X doesn’t try and guess the correct intent when I add it this way. I’d love to be able to see what intent it was trying to give it, so I can correct it/approve it.

Any help would be very greatly appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [January 20, 2020, 10:25am UTC](https://forum.rasa.com/t/trying-to-add-nlu-training-data-to-rasa-x-via-api-calls/23666/2 "2020-01-20T10:25:53Z")

</div>

Hey @netr,

The endpoint you’re currently using (`/conersations/test/messages`) only works for adding messages to an existing conversation (assuming you’re using POST) - this won’t affect the NLU training data.

The correct endpoints for managing NLU data are listed here: [HTTP API](https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#tag/NLU-Data)

If you want to see what intent was guessed from your message, use `GET /conversations/test/message`. That should return a list of all conversation events, which will include your message and its intent.

---

<div class="post-metadata">

**Author:** ![netr](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@netr](https://forum.rasa.com/u/netr)\
**Post date:** [February 4, 2020, 12:22pm UTC](https://forum.rasa.com/t/trying-to-add-nlu-training-data-to-rasa-x-via-api-calls/23666/3 "2020-02-04T12:22:13Z")

</div>

Sorry for delayed response. I ended up using the log endpoint for what i was trying to do.

[http://localhost:5002/api/projects/default/logs?q=](http://localhost:5002/api/projects/default/logs?q=)" + encodeURI(msg)

This is what i needed to find. Working great. Thanks
