-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renaming an Intent don't change it's ID #6
Comments
By design the JSON output for an intent does not change when you change the name of the intent. We want the name to be human-friendly and flexible (good naming scheme emerge with usage, it's hard to find good names when you just start). That being said, we could add a feature that enables you to change the JSON output name of the intent if you need it. |
Yes please, it would be great as it's what we receive in the API. So to match it correctly in our app (sometime we will have constraints about it) we need a little control on it. |
@alxbrun : we should be able to rename entities too ! |
Renaming is available, see #11. |
I just wanted to add to this. @ar7hur is correct, and that's good to do the current behavior by default, but the ability to change the intent name as presented in the JSON would be great too. |
I had another thought on this this weekend. I sort of use the intent "ids" that come back from the api as a path, used by a router to some degree.. I initially tried the concept of namespaces for intents, but yeah, the concept that I ended up with was more of a router (but I couldn't do this fully). I started with something like "heroku:app:config", which allows you to configure a heroku app, but I landed on something more like "heroku/app/config", which if the "/"'s made it through the api, I would've been able to use to route a given intent to a controller and then the controller could delegate to an action. The code structure is not setup this way because it wasn't possible, but it seems like it might be useful to edit the intent "id"'s because during development I found myself restructuring that routing. Anyway, yeah, I'd like some special chars to come through (eg. more of a path, instead of an identifier), and I think this should be something that can be changed. Maybe not in the most obvious of ways, but yes. =) What if the intent was restricted to valid uri characters, instead of stripping everything? |
Got you. The plan is for each intent to have 3 IDs:
|
Please see https://wit.ai/blog/2013/12/25/update-on-intents-and-entities-naming |
I renamed an intent from "hello" to "chatterbot_hello"
The "chatterbot_hello" is displayed on the console, in the inbox too, but the id in the url is "hello" and the intent returned to me is "hello".
The text was updated successfully, but these errors were encountered: