Antimo
Antimo

Reputation: 480

Manage Timeout with actionon Google and DialogFlow

I'm tryng to create a Chat Bot using DialogFlow with webHooks and Actions on Google.

I need to manage a timeout i.e when the end user did not use the Chat Bot for a configured amount of time, i need to exit from conversation without user interaction, same result as described here but without any input.

conversation-exits

I cannot find info about this automatic triggered action any hint? Is this possible?

Upvotes: 2

Views: 2323

Answers (1)

Abhinav Tyagi
Abhinav Tyagi

Reputation: 5256

The conversation-exits you are referring is for exiting the Conversation when the user says Cancel, Exit, Stop etc.
To handle No User Interaction, you could do the following:

  • Create a new Intent and set event = "actions_intent_NO_INPUT"
  • In the webhook, if this intent is triggered, set the rePrompt count flag and ask for user input.
  • If the count reaches 2-3 (as desired), end the conversation by using conv.close()

Check out the following page on RePrompts and No Inputs and Best Practices.

Upvotes: 3

Related Questions