simple confirmation when skill completed [duplicate] - alexa

This question already has answers here:
Can Alexa skill handler receive full user input?
(2 answers)
Closed 3 years ago.
I'm sorry if this has already been answered somewhere but honestly I am having a really hard time this morning finding the answer to this question... google isn't helping me much and neither is stack. You would think that one of the most basic things you would want Alexa to do when creating a custom skill/intent, is to confirm to the user that it "got" what you said and completed the task successfully. Strangely, I cannot find any concrete examples of how to do this?
Basically, in timeline, this is what I want my skill to do:
User asks: Alexa, please register {person} to the club
Alexa fills in slot using proper intent
Alexa says: Thank you! I have registered {person} into the club!
Point number 3? I cannot seem to find a way to easily do this... note that I am NOT trying to have the USER confirm something/the slot content to Alexa, but rather have ALEXA confirm to the user that the task has been completed properly.
Please help!

I am not sure which language you are using to develop the skill. Here I will show how I did it using python Flask-ask
#ask.intent('registerIntent')
def register(name):
#do your registeration logic
return statement('Thank you! I have registered {} into the club!'.format(name))
suppose you want to ask as verification before registering instead of a return statement you need to use return question so Alexa will ask are you sure you want to register user into the club, then you can write registration logic in yes intent.

Related

Question about Chat-Game Application Spring WebSocket and React

First of all, i'm not good at english, so this article may not be smooth.. Please understand.
I planned a chat-quiz game web application project using spring and react.
In my opinion, it is not difficult to implement a simple chat service using Spring WebSocket and React.
However, i can't think of a way to run the quiz in real-time chat service..
For example, assume that i have many quiz sets and one of this is "1+1=?"
First, the game stats through voting while chatting betwwen users.
Afterwards, a problem is given and users deduce the correct answer to the problem. (In this case, the question is "1+1=?" and the correct answer is 2)
When many chats come up at the same time as users infer the correct answer, If a chat corresponding to the correct answer comes up among many chats, I'm trying to write code that treats that problem as the correct answer. And then, the next question is asked.
In this application, I'm wondering how to determine if chat is an answer or not..

How do I ask for a voice rating of an Alexa skill?

I've seen some Alexa skills that ask me to rate the skill through a dialog. It asks me how would I rate it from 1 to 5 stars.
I don't see any information in the documentation concerning that. How do I implement this feature?
As far as I understand that is not something you trigger from your Skill. At least in my skills this is random, I did not trigger in any way.

Amazon Alexa API

I want to create a BackOffice where I can create questions (utterances) and answers (database table's content) on just one intent - on one custom skill.
I'll be using outsystems so I can't use node.js or java.
So I need to use a REST METHOD (API) -> I need to update the interaction model of one custom skill via REST. And I have no ideia how it's done.
BackOffice: Where the user can add questions and match it with the answers. Basically it's manipulating the Alexa for whatever question(s) we want to give the answers we want. When the admin/user adds a question to the database I need it to be updated do my interaction model (Utterances of my Intent of my Custom Skill)
The goal is to have a ChatBot, where you ask predefined questions and Alexa answers predefined answers.
Any tips?
Thank you so much,
Diogo Mendes
If I understand your need correctly, you should take a look at the Alexa Skills Kit Skill Management API (SMAPI). With that, you can update your interaction model by making a request to the API. The documentation shows you how to do that. However, this has a major downside. Changes to your interaction model will have to go through the certification process. (see this SO question)

Stop automatic addition of fields to page layouts

I want to know if there is a way to stop being prompted to automatically add new custom fields to page layouts? I have a few developers that "forget" to uncheck that box and then the fields are mobilized to all the layouts. This is not ideal and would love to disable this feature. If this is not the correct forum to ask this question please let me know where and I will move it.
This question in salesforce formus:
https://success.salesforce.com/ideaView?id=08730000000gPfwAAE
Describes perfectly my question but never got answered.
There is no solution to this, the developers just need to pay attention when creating fields

Why a Google user without the Glass device is able to complete the OAuth2 process? [duplicate]

This question already has an answer here:
How to find out if a user actually has Glass
(1 answer)
Closed 9 years ago.
I've built an app for Glass and I've noticed that Google accounts without the actual Glass device (I personally know those users) are perfectly able to complete the OAuth2 process including the Glass scopes (https://www.googleapis.com/auth/glass.timeline and https://www.googleapis.com/auth/glass.location)
It seems unexpected and somehow problematic as those are users who might be consuming resources of the app, may expect some functionality our if it, but they can't get any services in return.
All users have a timeline. By requesting those scopes, you're asking for access to that abstract data.
If that activates a Glass device, their timeline is synchronized to that device.
I understand why you may want to distinguish between users who have one, many, or zero active Glass devices. You may want to request that this be added to the API by filing an enhancement request.
Also see "How to find out if a user actually has Glass" for a similar question, along with a proposed answer to use double opt-in as a way to mitigate the resource issue.

Resources