Hi
i wanna know how i can create a custom slot type for a slot
thanks
I recommend you to just create them in the Alexa Developer Console under the Build
tab (It’s way easier and faster to do there). There is an entry called Slot Types
where you can create slots with custom slot types. After you’ve done that you can just migrate your Alexa project to Jovo
Otherwise you can create them in the Jovo Project in your language model. I attached you a code example of mine (a slot called repeat):
“inputTypes”: [{
“name”: “repeat”,
“values”: [{
“value”: “what”
},
{
“value”: “sorry”
},
{
“value”: “repeat”
},
{
“value”: “once again”
},
{
“value”: “again”
},
{
“value”: “repetition”
}
]
},
[quote=“H1Gerd, post:2, topic:813”]
With indentation restored (and ASCII quote characters rather than Microsoftish):
"inputTypes": [{ "name": "repeat", "values": [ { "value": "what" }, { "value": "sorry" }, { "value": "repeat" }, { "value": "once again" }, { "value": "again" }, { "value": "repetition" } ] },