dialogflow / fulfillment-webhook-json

Dialogflow's Fulfillment: Webhook JSON (Requests & Responses)
Apache License 2.0
191 stars 70 forks source link

Unable to detect custom Intents after importing from pre-built agent or after adding custom intent to a pre-built agent in Dialogflow #21

Closed siddu004 closed 4 years ago

siddu004 commented 4 years ago

I'm trying build an api for a chatbot application which interacts with dialogflow. I have implemented an api using the documentation(https://github.com/googleapis/nodejs-dialogflow). I have manually created an agent in the dialogflow console and added some custom Intents. It Worked fine when I tested with my api and the result was as expected. However I'm facing an issue in my diaogflow agent when I have imported pre-built intents of small-talk(a pre-built agent ) which I exported prior to the import. After the import the api no longer works for the custom intents which i created before importing small-talk intents.I was getting the default fallback response But the imported small-talk intents are being detected. Its works well the the dialogflow console UI though.

To try out something different I then Deleted my agent and created a pre-built agent. I then added some custom intents to that pre-built agent. Though the intents of prebuilt agent were detected, my custom intents were not detected through api. I was getting the default fallback response Again it was working fine in the dialogflow console UI.

Just to make sure it not the fault of the dialogflow node js SDK , I implemented the api in java .But the result was same.

Am I missing any setting or configuration in dialogflow? or is this a bug?

Note : I have also tried importing with "Restore from zip" but it din't work response _from_java