简体   繁体   中英

Is it possible to make my dialogflow agent to search the internet for an answer to an uncatered question?

Google assistant will search the internet or wiki to questions it did not have an answer for. Is it possible for my agent to do the same too? Rather than saying "Sorry, I don't understand", it will make the agent appear more intelligent.

Yes!

  • enable webhook for fallback intent.
  • call a search engine API like Google Search or DuckDuckGo(free but limited result).
  • parse the service response and create a reply.
  • update context as per requirement.
  • send the reply back to the user

All this should happen within 5 seconds!

But it would be better to make the conversation agent with the correct use of intents and not overriding the fallback as I just explained. You should follow best practices to develop your agent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM