How do I get the value of the entity?

rossida
Tera Contributor

I have an utterance: "Who does @employee work for?" The entity is Employee, so within my Topic flow, how do I get get the value of the entity???   Therefore, if I enter the following in the Virtual Agent:"who does John Doe work for?", I want the Topic is get just the entity's value: "John Doe".  HOW can I get this??

 

6 REPLIES 6

rossida
Tera Contributor

Thanks for the reply!

 

This is what I did:

- I created an Input variable called: vaInputs.utterance_employeeValue. This variable has the "NLU entity" set to "Employee". 

- I have have a "Bot response" component that is using the "Text Response" to display this value.  Therefore, in the "Response message", I have vaInputs.utterance_employeeValue

 

I have 8 employee's with the name: "John Smith"
Virtual agent shows me 8 sys_ids but these sys_ids are NOT the USER-record sys_ids.  These are the Entity's sys_ids (I believe). 

How do I get and show all the entity values ?
For instance:
John A. Smith

John B. Smith

John C. Smith

John D. Smith

John E. Smith

John F. Smith

John G. Smith

John H. Smith

rossida
Tera Contributor

Thanks for the reply!

 

This is what I did:

- I created an Input variable called: vaInputs.utterance_employeeValue. This variable has the "NLU entity" set to "Employee". 

- I have have a "Bot response" component that is using the "Text Response" to display this value.  Therefore, in the "Response message", I have vaInput.utterance_employeeValue

 

I have 8 employee's with the name: "John Smith"
Virtual agent shows me 8 sys_ids but these sys_ids are NOT the USER-record sys_ids.  These are the Entity's sys_ids (I believe). 

How do I get and show all the entity values ?
For instance:
John A. Smith

John B. Smith

John C. Smith

John D. Smith

John E. Smith

John F. Smith

John G. Smith

John H. Smith