Am i missing something?
My idea is to get the name of the day that alexa service listen ( “lunedì”, “martedì”…created with that slot type) and do something against that, like ( if it return “lunedì” then do “works”, if it return “martedì” then do “go ride in bike” ).
Hope you can help sort out how to solve my problem, thanks in advice.
This is because the slot value for the giorno slot is not filled. The value is not in the request. This tells me there is a problem with the slot/intent definition. The error you get in backendless happens because the following block returns undefined for the reason I just described:
What I am saying is when you submit an utterance, Amazon doesn’t put the slot value into the request. Here’s what it looks like (from what you sent earlier):
Well, i think i discovered what is wrong.
I dont’ have to use the Object slot ( Get Object Count, table name ), in that case i got:
Table not found by name ‘Table not found by name ‘rome’. Make sure the client class referenced in the API call has the same literal name as the table in Backendless console’
hahaha, i spent hours for this, for a single word
Anyway, i’m blocked cause of Alexa Simulator, it’s broken as of now ( here in Italy ) and i didn’t get any written answer, only audio response text.
If i test it on my phone it replies the city name correctly…
But it’s not my idea to receive an alexa response with the slot value, but use that value for other purposes.
Beside this alexa issue, i wish to read the data in a table i made…and if it can be fullfilled by a form, like a php form, a google doc module, or something like this. Users should be able to compile it.
Or, as an alternative, read and append from an XML or JSON file.
So with an association with slot value and a key i get the data that i want, this time as an alexa response.
That’s one small step for man, one giant leap for mankind
You can apply the logic in Codeless to manipulate the data you get from the Alexa request and execute it against the table, files, users - pretty much anything available in Backendless. You can also read the data from your table with our APIs in a webform, Android/iOS/JS app. Same goes for working with XML or JSON files.
Thanks, i’ll look into it.
I was considering using a mongodb db, but after using backendless i’ll try its data capabilities…and to avoid possible timeouts, i see that using the handlerequest from the api services it tooks a bit compared to lambda, at least at first invocation. Maybe cause i’m in Italy, dunno.
I’m a bit off topic regarding the getslotvalue, but…is it possible to use the built-in alexa service to play an audio or a streaming( m3u8 )?