Is there any way to answer unsaved question in intent in dialogflow - dialogflow-es

During Chatbot Creation with Dialogflow, suppose user asked some question which wasn't save in intent then how the System will respond that question, in case I'm getting such question, then how we'll deal with it?

When creating a Dialogflow bot you train your bot to respond to phrases by adding them to intents. Any phrases that Dialogflow cannot match to your intents will be handled by a fallback intent. Each Dialogflow bot will have atleast 1 fallback intent called the Default Fallback intent.
In this intent you can set the standard response which you want to use when a user answers with a phrase that your bot doesn't understand.
Besides the default fallback intent you can also add extra fallback intents. You could do this if you want to give a more helpful response to guide your user back on track. This also allows you to set a certain context so that the user doesn't go back to the start of the conversation when they enter something the bot doesn't understand. You can do this by clicking the Add follow-up intent option and selecting fallback from the dropdown.

Related

How to access previous conversation details in Dialogflow fallback intent

What would be the best way of accessing the previous conversation details when Dialogflow maps the input to a fallback intent?
We'd like to steer the user back into the right direction by re-prompting the last suggestion chips that were given.
The way we do it now is by manually saving the last suggestions and manually resetting them if the conversation is progressing to new intent. Not optimal and error prone.
It would be good if all fallback intents contained the "last intent/response" information.
I also can't find the isFallback properety on the DialogflowConversation object in the AoG SDK. So we're not able to reliably implement logic in the middleware handler. The isFallback property would be very useful to have access to on the conversation object in intent handler functions.
Any best practices for reliably setting and resetting a memory of last conversation for usage in case of fallback?
You can save all your current intent response details in a new output context. Fetch that previous intent response from the previous intent output context and the use that data to create a new response for the fallback intent.
how about if you use conv.action or conv.intent to check for your fallback intent? You can create a middleware function that stores all the information you need from each conversation in user.data if it is not a fallback intent and use that in your fallback intent handler.

Managing intents in google dialogflow

I am New to the Google dialogflow.
I created the Agent and intents.
Now i gave some user utterances (Training Phase) in intent. When user input related to the training phase response is coming.
User input other than the utterances it is going to fallback intent.
But i need user input does not matches to the utterances dialogflow must give the appropriate response as user need.
how to solve the situation.
Thanks in advance
I believe there are two options for your situation:
Create more intents and train them to improve your agent's accuracy for the intents. This is what you are supposed to do if you have a lot of training data. If not, try the option 2.
Create a custom Fallback Intent with an input/output context.
Option 1. is obvious like sid8491 is saying.
Option 2. is kind of a hack, but I think it can solve your situation by providing the correct input context and solved mine too.
One example is when you want to ask users to write feedback. Since users can write any feedback (i.e. it's hard to train the feedback intent with data beforehand), this is where a custom fallback intent comes in. Since you expect feedback from your user, you set an input context for your custom feedback fallback intent and users response (feedback) will match your feedback intent.
You can create a custom Fallback Intent by clicking the three dots right next to "CREATE INTENT" in Intent tab.
Hope it helps.

Welcome intent creating error in dialogflow

when I created a welcome intent in dialogflow in which "welcome" event is made.
I get error saying:"Intent with empty contexts and events '[WELCOME]' already exists".
I checked through all my intents for the error.
Previously I deleted a welcome intent is this the reason behind that error?
what can be done now?
The WELCOME event is a way to trigger an intent at the beginning of the interaction with the Dialogflow Agent. Although you can have multiple Welcome Intents (one for each of the supported one-click integrations), you can only have one Default Welcome Intent, which is triggered if no messaging-platform-specific Welcome Intent is set.
Therefore, as per the answer in your comments, you already have an intent with the WELCOME event (the Default Welcome Intent), so the error message you are getting is correct, given that you can only have one WELCOME intent per input context.
If you are interested in having different responses for the Welcome Intent, try adding other Training Phrases and Responses, but you will not be able to create another Intent with the same WELCOME event. Alternatively, you may use a different Input Context, and in that case you can have multiple Welcome Intents, although you should take into account that the new ones will only be triggered if the given context is met.

How to connect an back to intent in DialogFlow when the user's utterance is not recognized?

I'm making a bot in Dialog Flow and I have some intents linked together. However, once I end up saying a phrase that's not part of the user says, the bot exits the whole chain of intents and disregards related contexts i try to input next.
Is there a way for me to avoid this situation?
seems like i just needed to use fallback intents, as documented here

API.ai - return input value from fallback intent

i am building a facebook messenger chatbot with API.ai and i want to build a fallback intent. I want to use this fallback intent for all user inputs that are not matched by any regular intent.
I would like to responde with something like "sorry, couldnt read that" + the users input.
My question: How do i get the users input and give it back as a response?
Thank you.
You can use the Fulfillment option in "Default Fallback Intent".
You configure your webhook pointing to your own server and there you can receive the "resolvedQuery" and return the response you want, including the user input.

Resources