Adding an input representation for looking up entities by traits other than database id (as is the case for intents)