Search code examples
nlpfallbackdialogflow-esfacebook-chatbotapi-ai

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.


Solution

  • 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.