I have created a simple Agent in Dialogflow CX. Before performing the next webhook call I want to check user-entered city is present in the $session.params.cities
.
By referring to conditional response doc, I have used HAS (:) operator like below
if $session.params.cities : $session.params.city
Validating the city name
else
Invalid city
endif
Example values:
$session.params.cities = "A, B, C, D"
$session.params.city = "B"
But this is not working, it is entering to else case. According to the doc, it says The RHS is type casted to the same type as the LHS before comparing.
How can I perform a substring search?
question from:
https://stackoverflow.com/questions/66058452/substring-search-in-conditional-response 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…