How we can put a break on Intent (Dialogflow) - dialogflow-es

Do someone know how to put a break on an intent,
example, when the TEXT response says: Hello John***...Break of 5sc...*** How can I help you ?
Thanks

Dialogflow supports SSML in text responses, which support a <break> element. It does not say what the maximum duration of a break is, but I doubt it will be more than a few second.

Related

Text To Speech configuration for actions-on-google

I have an application developed using Dialogflow and actions-on-google framework.
When I provide a response which has numbers in it the text to speech engine pronounces 0 (Zero) as "O" (Oh)
Is there any way where I can configure not to speak 0 (Zero) as "O" (Oh) and should always speak "ZERO"
Please help
You can look the documentation for SSML to provide more specific nuances in the text-to-speech response.
If you want to say specific characters, you should be able to use an SSML say-as tag:
<speak>
<say-as interpret-as="characters">1234567890</say-as>
</speak>
Using sub alias of speak element fixed my issue
<speak>This is test<sub alias="one one zero seven">1107</sub> </speak>

How To Pick Out Activity inbetween phrases in DialogFlow

I'm trying to make a simple bot with Dialog flow to remind me to update my calendar with what I did during the day.
I want it to go something like this:
Bot: Hey, what did you do from 2pm-5pm today?
User: I did jogging from 2pm-3pm
Bot: Added "Jogging" to your calendar from 2pm-3pm. What about from 3pm-5pm?
User: I did reading.
Bot: Added "reading" from 3pm-5pm to your calendar.
My question is, how do I extract the activity (such as jogging or reading) as it can be literally anything. I guess I need to identify the "I did" part and see what it is after that and before "from 2-pm-3pm" part. I have an idea how to do this with Python, but I'm wondering if it's possible using DialogFlow?
Any help is greatly appreciated, thank you
You would use the #sys.any entity type and assign it to that part of the training phrases that you're setting up in Dialogflow.
As you're setting up the training phrases, keep in mind that there may be many ways to say the same sort of thing, which is why using Dialogflow's training phrases are better than trying to capture parameters using string parsing.
So perhaps you want something like this

DialogFlow: Give an answer based on a parameter entered?

I want to create a DialogFlow Response based on the parameter given
Example:
Intent:
Training:
I want support as a $supporttype
where $supporttype is an entity. The desired answer should be dependend of the value of $supporttype
Response: (if $supporttype=="Gold")
Yes, your question will be answered in 5 minutes.
or if $supporttype is not "Gold"
Response: (if $supporttype!="Gold")
Your question will be put in the queue.
Is there any easy way to achieve this? Or do I have to make a web hook for such a feature?
Thanks!
You need to use a webhook to create conditional responses.
There is a built-in code editor that can assist with this.
Late response, but maybe someone will find this answer useful if you prefer not having to use fulfillment webhooks and you only need to utilize one parameter.
https://stackoverflow.com/a/55926775/1011956

Dialogflow won't display proper time using #sys.date-time

I'm trying to use #sys.date-time to get the current time when I type "Good Morning". Sadly, all it returns is "Good Morning! Right now it is 08:00:00/12:00:00"
How do I do this? Do I need to use a webhook? How do I go about doing that?
Photo
Diagloflow understands that morning is the period between 08:00-12:00 that's why you're not getting the current time. For that you will need a webhook.
You can read all about webhooks and how to create one in the official docs

Wit.ai bot understand wit/number as wit/location

What's wrong with Wit.ai ? My bot understand few numbers as location and it breaks my stories. You can see the picture below :
What can I Do for that ? Thank you.
If you earlier have validated some GPS coordinates on your Understanding console, this type of misprediction may be possible. For avoiding that, you can validate some useful numbers with the wit/numbers intent, other GPS coordinates should be validated with the wit/location.
Also you may accidentally validated some numbers using the wit/location entity, feed some numbers with the wit/numbers entity. wit.ai does not know anything about numbers, locations, etc, without you validated them first.. Try to write " Amsterdam " on your Understanding tab, you'll see that wit.ai cannot assign this text to any intent or location entity because you have not trained his modal yet :) Validate it with wit/location. After that he will know..
Also you can train(validate or feed) your own wit.ai NLP without the Understanding tab. You may use simple CURL command and a loop.
Check this out:
https://wit.ai/docs/http/20160526
Have a nice day :)

Resources