Matching 2 Entities with Composite Entity

472 views
Skip to first unread message

Paris Mongkolkul

unread,
Nov 25, 2020, 2:09:47 AM11/25/20
to Dialogflow CX Edition users
Okay. This is going to get a bit long.

My goal here is to set 2 parameters to the same value with one-time user input. Having explored CX docs thoroughly, I think my best bet is to go ahead with Composite Entity. So I have created the following:

Entity Type: A

A.PNG
Entity Type: B (pretty much the exact same thing as A)
B.PNG
And I have the Composite Entity Type C which holds A & B: 
C.PNG

And here is where I configure my page with intent route ABC which only capture Ctest.PNG

This is the result of trying out the simulator:
result.PNG
What I expect is for both "A_param" and "B_param" to be set to "A" and "B" since the input matches both entities. But instead, what we got is only entity B matches, and A is entirely skipped. 

What we get:
c_param: {"B_param": "B", "original": "test"}

Expectations: 
c_param: {"A_param": "A", "B_param": "B", "original": "test"}

Can someone help me out please ! (Thank you in advance),
Paris

Anthony Vallone

unread,
Nov 25, 2020, 4:10:38 PM11/25/20
to Paris Mongkolkul, Dialogflow CX Edition users
Without using a webhook, I don't think there is any way to set two parameters to the same value for an end-user input. If you want to use a webhook, you can specify any parameter values in the webhook response.

More importantly though, why do you want to do this? Perhaps there is a better way to design your agent?


--
© 2020 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Dialogflow CX Edition Discussion Google Group (dialogflow-cx...@googlegroups.com) to participate in discussions with other members of the Dialogflow community and the Dialogflow Team.
---
You received this message because you are subscribed to the Google Groups "Dialogflow CX Edition users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dialogflow-cx-editi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dialogflow-cx-edition-users/3f7e184c-2306-4a2e-8edb-e6683eca2dd6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages