Search code examples
dialogflow-esactions-on-googlegoogle-home

Conversation ends after fulfillment?


I have been trying out the Actions on Google with Api.AI . I have written a simple nodejs webhook using their Github sample: dialogflow-silly-name-maker-webhook-nodejs .

The thing is i don't want the agent to end conversation after the fulfillment of a request. I have not checked the END CONVERSATION box in the Intent on API.AI .

One more requirement i had was how can i remember the parameters asked during one intent, so that the same can be used for the next intent. Is this possible yet?


Solution

  • You're probably using assistant.tell() to send the reply. No matter what the setting is in api.ai, this will end the conversation.

    Use assistant.ask() instead - this will keep the conversation open.

    To use parameters between questions you'll probably want to use api.ai's contexts.