Search code examples
dialogflow-es

DIALOGFLOW ES error "Entity '...' has an invalid name."


I'm using the Dialogflow ES UI to train my agents, since last week I see this validation error in some of my entities "Entity 'entity-name' has an invalid name." in ALL my agents.

I'm not sure what the error message means since you can't edit the name of a system entity. enter image description here

If I click on "Edit entity" it goes bonkers and shows an error message that makes no sense to me: enter image description here

This is what sys.given-name looks like. I don't see what's wrong, I even downloaded the JSON file and can't find anything that looks out of place. enter image description here

After deleting all the entries in the entity the error still persist. I'm pretty sure this is a bug but I don't know where to report it. Help please!!


Solution

  • I have successfully replicated your error and this is because you have entries (mercedes, roque, lourdes) in your sys.given-name. enter image description here

    To remove the error, you must first delete all entries on your sys.given-name, remove all sys.given-name entity from all affected Intents and then delete the sys.given-name from the Entities tab.

    Once sys.given-name is not in Entities tab anymore, you can now use sys.given-name in your intent similar to below sample walkthrough. Please note that in my example below, I will be using sys.person instead of sys.given-name since per this documentation, sys.given-name and sys.last-name are both deprecated and must use sys.person instead.

    1. In your Intent, add training phrase/s and then double-click on the name and then assign the sys.person. enter image description here
    2. In the Action and parameters, input the parameter name, entity and value based on the values on step 1. enter image description here
    3. Add a response and use the parameter for your sys.person. enter image description here
    4. You can now test and use any names and it should be captured. enter image description here

    Do the same steps if you have also a validation error on sys.last-name. Once done, there should be no more error on your Validation tab.