dialogflow / dialogflow-dotnet-client

.NET framework for Dialogflow
Apache License 2.0
69 stars 50 forks source link

Cannot create response text variants using the REST API #20

Closed vhugogarcia closed 1 year ago

vhugogarcia commented 7 years ago

Hello my friends,

I'm trying to create text variants using the /intents API resource mentioned here: https://dialogflow.com/docs/reference/agent/intents

However, it seems that there is not a way to do such thing. if I send the JSON as:

"responses": [ { "messages": [ { "speech": "Okay response variant 01", "type": 0 }, { "speech": "Okay response variant 02", "type": 0 } ],

it creates 2 full response text messages instead of a text variant, do you know what I could be missing on the JSON to create the responses as text variant?

Do you have any idea?

Thanks in advance.