Problem to receive the entity value in Jovo from Dialogflow

dialogflow

#1

Hello, everybody,

I have a problem receiving sys.date-period entity values in Jovo from Dialogflow. In this training phrase:

I have recognized the entity but in Jovo it appears to me in white:

image

I’ve upgraded to the latest version of jovo but it still doesn’t work. Can anyone help me?

Thank you very much in advance.

Greetings.


#2

Could you paste the full request JSON and also the logs of this.$inputs here please?


#3

Of course Jan, sorry!

{
“responseId”: “ca5fe952-1fb5-4cbe-b4b3-0430f773fcc1-fd8ff490”,
“queryResult”: {
“queryText”: “¿Podrías decirme el tiempo de primavera de 2019?”,
“parameters”: {
“season”: “primavera”,
“time-period”: “”,
},
“allRequiredParamsPresent”: true,
“fulfillmentMessages”: [
{
“text”: {
“text”: [
“”
]
}
}
],
“outputContexts”: [
{
“name”: “projects/agente/agent/sessions/ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq/contexts/actions_capability_web_browser”,
“parameters”: {
“season”: “primavera”,
“season.original”: “primavera”,
“time-period”: “”,
“time-period.original”: “”,
}
},
{
“name”: “projects/agente/agent/sessions/ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq/contexts/actions_capability_audio_output”,
“parameters”: {
“season”: “primavera”,
“season.original”: “primavera”,
“time-period”: “”,
“time-period.original”: “”,
}
},
{
“name”: “projects/agente/agent/sessions/ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq/contexts/actions_capability_media_response_audio”,
“parameters”: {
“season”: “primavera”,
“season.original”: “primavera”,
“time-period”: “”,
“time-period.original”: “”,
}
},
{
“name”: “projects/agente/agent/sessions/ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq/contexts/actions_capability_account_linking”,
“parameters”: {
“season”: “primavera”,
“season.original”: “primavera”,
“time-period”: “”,
“time-period.original”: “”,
}
},
{
“name”: “projects/agente/agent/sessions/ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq/contexts/actions_capability_screen_output”,
“parameters”: {
“season”: “primavera”,
“season.original”: “primavera”,
“time-period”: “”,
“time-period.original”: “”,
}
},
{
“name”: “projects/agente/agent/sessions/ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq/contexts/google_assistant_input_type_keyboard”,
“parameters”: {
“season”: “primavera”,
“season.original”: “primavera”,
“time-period”: “”,
“time-period.original”: “”,
}
}
],
“intent”: {
“name”: “projects/agentetfg-v3/agent/intents/901300c1-9b67-471c-b81b-c6a3e106a56c”,
“displayName”: “SeasonIntent”
},
“intentDetectionConfidence”: 0.8186086,
“languageCode”: “es”
},
“originalDetectIntentRequest”: {
“source”: “google”,
“version”: “2”,
“payload”: {
“user”: {
“locale”: “es-ES”,
“lastSeen”: “2019-07-19T20:38:17Z”,
“userVerificationStatus”: “VERIFIED”
},
“conversation”: {
“conversationId”: “ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq”,
“type”: “ACTIVE”,
“conversationToken”: “[]”
},
“inputs”: [
{
“intent”: “actions.intent.TEXT”,
“rawInputs”: [
{
“inputType”: “KEYBOARD”,
“query”: “¿Podrías decirme el tiempo de primavera de 2019?”
}
],
“arguments”: [
{
“name”: “text”,
“rawText”: “¿Podrías decirme el tiempo de primavera de 2019?”,
“textValue”: “¿Podrías decirme el tiempo de primavera de 2019?”
}
]
}
],
“surface”: {
“capabilities”: [
{
“name”: “actions.capability.WEB_BROWSER”
},
{
“name”: “actions.capability.AUDIO_OUTPUT”
},
{
“name”: “actions.capability.MEDIA_RESPONSE_AUDIO”
},
{
“name”: “actions.capability.ACCOUNT_LINKING”
},
{
“name”: “actions.capability.SCREEN_OUTPUT”
}
]
},
“isInSandbox”: true,
“availableSurfaces”: [
{
“capabilities”: [
{
“name”: “actions.capability.WEB_BROWSER”
},
{
“name”: “actions.capability.AUDIO_OUTPUT”
},
{
“name”: “actions.capability.SCREEN_OUTPUT”
}
]
}
],
“requestType”: “SIMULATOR”
}
},
“session”: “projects/agente/agent/sessions/ABwppHGVRZm_HGi7C8Q1wz7pmbeIdpLmJWf5nw_AiJRaCo8OlTuwcqS4tW2_5tzAU6EzcTh7MaFBa0Qq”
}
{ season:
{ name: ‘season’,
value: ‘primavera’,
key: ‘primavera’,
id: ‘primavera’ },
‘time-period’: { name: ‘time-period’, value: ‘’, key: ‘’, id: ‘’ },
‘season.original’:
{ name: ‘season.original’,
value: ‘primavera’,
key: ‘primavera’,
id: ‘primavera’ },
‘season.original.original’:
{ name: ‘season.original.original’,
value: undefined,
key: undefined,
id: undefined },
‘time-period.original’: { name: ‘time-period.original’, value: ‘’, key: ‘’, id: ‘’ },
‘time-period.original.original’:
{ name: ‘time-period.original.original’,
value: undefined,
key: undefined,
id: undefined } }

That’s all!


#4

Looks like Dialogflow doesn’t resolve the right value. If it’s not in the request json, the value will always be undefined. You probably need to tweak the language model.

Try to change the type of the entity from @sys.time-period to @sys.date-period


#5

Effectively Alex, you’re right!

I changed the @sys.time-period entity to @sys.date-period and the original value is correctly received in Jovo.

Thank you very much @jan and @AlexSwe

Sorry for the inconvenience!

Regards,

Alberto.


#6

Hello!

Sorry to bother you again @jan, @AlexSwe but I wanted to use this thread to tell you a question.

This message appears on the console:

Local server did not return a valid JSON response:
undefined

What I’m trying to do is a get request with httpGet. If I make the request directly in the browser it takes 28 seconds to get the result.

In Jovo, I imagine it skips the timeout and that’s why this message, right? What timeout jumps?

If I’m still waiting in console, after a few seconds it shows me the result of the request in the variable “fulfillmentText”.

Thank you very much in advance!

Greetings.