I'm trying to build a "search intent" for books/articles.
I created a book-tag which has all predefined tags of our books.
I created another entity named "intent-action"
and a entity for search term:
search-term-should-match-whatever-else-entity
Now, I want to have a intent which will could understand what's user searching for.
For example:
Input: search medical book of diabetes
Expected output:
Intent-action: "search" correct
Book-tag: "medical" correct
Search-term: it should match anything else, for this example, it should be "book of diabetes".
Is there any chance of making this happen?
Update 1: with @sys-any
Thanks for helping.
I try with "sys-any". It works with predefined search-term. I manually map "book of diabetes", "article of copd", " book of headache" to sys-any,
but it still can't recognize any new search-term.
Update 2, response from Dialogflow support
Thanks for reaching out to Dialogflow support.
Currently, Dialogflow doesn't provide such ready-to-use functionality. You may enable fulfillment for the intent and try developing your own custom business logic in the fulfillment code to process the parameter values and original user query text from the request sent from Dialogflow and send results back to Dialogflow as responses.
Update 3, working solution here.
In dialogflow intent -> training phrases
There are 2 different training model here, "Example model" & "Template model".
What we need is "Template model", and set a template "@sys.any:search-term @intent-action:intent-action @sys.any:search-term "
Done.