How can we hundle entities from intent using if else condition in custom action?

i want to hundle when a user askes for a medication detail give them the detail but if the medication name is not present in there then throw an error message that the medication name is not found…i tried but the else part where it displays the error message is not working or i dont know if i made a mistake

do you want to utter message only if e['entity'] == 'drug'? then I think you need to indent lines 280-283 one more time

Okay thank you so much…here if I want to call an api where a user enter a drug name and using api call to give description and information of the drug how can I do that??

I don’t know

1 Like