Event trigger in Alexa without voice request? - alexa

Is there a way to activate an event Alexa without speaking?
For instance, I am working on a project involving a pill box, and once it is set up, I want Alexa to remind me to take my medication without requiring a vocal command from me

Have you looked into Routines? This would let you schedule time-based actions like Alexa-spoken reminders.
If you're building a custom skill, the Reminders API would give you a way to programmatically setup spoken reminders as well.
There's also the Alexa Routines Kit skills can use to create Routines by voice, but this is in developer preview, so you would need to apply for access.

Related

How send notification into ms teams user from custom tab

I'm designing a custom team tab using React that calls third party API, I need after executing the API successfully, user gets notified . What is the best way to achieve this? I used Bot in my project, but not sure how can I call it from my custom tab class. I'm aware of the existence of proactive messaging, is it the only way to do it? If it is, a pointer on how to implement it to a custom tab would be appreciated.
If you're wanting to message the user 1-1 (like in the personal app), then proactive messaging is definitely what you need (inside a Team, there are other options), and considering you have the bot already in place that's perfect. The only thing you might be missing are the details required to send the actual proactive message (the best time to get them is when the bot is first installed by the user). In particular, you need ConversationId and ServiceUrl.
With regards the concept of Proactive Messaging, basically once the bot is installed, and you have the required values, you can -send- the message from any backend code at all. That can include, for example, custom tab's backend api. You need to identify the user, which you can do using the Teams Context (it's not the safest way but it's the easiest), and then look up the values in your own backend store (e.g. database or whatever) to get the ConversationId and ServiceUrl, then just message the user in your backend.

How to notify my Alexa Skill's customer about new features?

I am developing an Alexa Skill, and before releasing the first version of it, I wanted to be sure that I can notify my users about new features.
How can I do this ? What are my options ?
I saw Alexa Proactive Event, but I'm not sure about how to use it and if it's the right choice.
Following options:
Visually
(of course who reads when using alexa ;-) )
alexa developer console -> distribution -> whats new
For my skills I also updated the "detailed description" with some mini release notes before this "whats new" text field existed.
Voice
You can check in your backend logic if your user uses the skill after your update.
Therefore you would need to save the time whenever a user uses your skill (of course you need the times before your update but a backend update is independent from your skill update with certification).
Now if a requests come in you check the lastUsage time and can send out your special update message.
Of course you could also do via a flag (flag all users which got the message) instead of lastUsageTime.
Will be helpfull for persisting this data (alreadyGotUpdate message flag or lastSkillUsageTime): https://developer.amazon.com/de/docs/alexa-skills-kit-sdk-for-nodejs/manage-attributes.html#persistenceadapter

Can you post (state) information to an Alexa Skill without going through an intent?

New to Alexa skills in general. Developing an application where the state of an Alexa skill is determined by other means than voice interaction. So let's say for instance it is a weather skill. I understand I could access a weather service from the skill intent handler to retrieve the "weather state", but I wonder if there is a way for - in this example - the weather station, to POST the state of the weather to the skill and have the skill store it as a (global, user independent) state variable.
This would save me having to build a second webservice where i would maintain state information.
I have seen the Messaging ability of skills, but I'm not sure if that is the right thing to use for what i want.
I think you need this Proactive Events API
You can use the Proactive Events API to send events to Alexa. The events represent factual data that might interest a customer. Upon receiving an event, Alexa proactively delivers the information to customers who have chosen to receive these events ...
Because customers can choose to be notified of events from your skill,
they are never surprised to receive proactive messages from Alexa.
With this API, you can send a personal customer-specific event, which
results in a notification for a single customer. Alternatively, you
can send a broadcast event, which triggers notifications to all
customers who have chosen to receive notifications from your skill.
For example, a weather skill can send a single weather alert, which
Alexa then delivers to all interested customers.
There is a demo in Javascript
After I figured out how easy it is to set up an EB webservice and build a simple API using Node for the ASK lambda function to fetch data from, I guess this is a better approach. I might even replace the ASK lambda function with an EB Node service that does both the skill backend and the persistent storage in one.

Alexa skill ki manual input

I am new in Alexa skill kit development
I have already read Tutorials on Alexa Skill Kit
I have to implement Alexa Skill , In which I need to manually send command and want Alexa to speak it.
i.e When user login in system I can fire API as Alexa request and I want Alexa device to Speak that for example "Welcome Have a great day"
Is it Possible ? Or Any other alternatives. ?
Notifications for Alexa skill are in still in beta. You can apply for the access to it by filling up this form here : https://alexa.au1.qualtrics.com/jfe/form/SV_72lplGGegxNZ9Ln
If Push Notifications is what you're looking for, then the answer is YES.
Since in the comments you said, "You are not asking for HOW TO DO IT", so I'll just let this link here for your reference. https://developer.amazon.com/docs/alexa-voice-service/notifications-overview.html
I think you may want to use proactive events for your skill. They are now commercially available. You will be able to send a notification to your skill and the Amazon device will blink (yellow). However you will still need to say "Alexa check my notifications" to retrieve the actual message
https://developer.amazon.com/docs/smapi/proactive-events-api.html
Another idea would be to use "progressive response" feature: https://developer.amazon.com/docs/custom-skills/send-the-user-a-progressive-response.html
You can fire the interaction to alexa when your API is invoked and send a progressive response. Not really a notification but it might serve you. This way you will not need to ask to check the notifications to Alexa but directly get the voice message in the progressive responses

Creating Alexa Skill Notifications (like quotemaker)

I need help in sending notifications to alexa device of a user (echo, dot, etc.. not the other non amazon alexa devices) from alexa skill i am building. I see quote maker doing it but, how its doing it is a blackbox.
For example if the user ordered some item through my skill (say abc org). I would like to notify user on their alexa devices about the status of order proactively ( eg, item shipped, or item out for deliver today).
Amazon has this already for amazon shopping, but i dont see much information on implementing the same for skills.
I saw quote maker creating a notification for self, but how its doing it is a blackbox
I had the exact same question and am still not 100% sure about the answer.
As best as I can tell, the Notifications API never made it out of developer preview, and instead has been replaced with the Proactive Events API.
Unfortunately, unless your skill needs to send notifications about trash pickup or sports scores, you're probably out of luck. Here is the complete list of all notifications types that are currently supported:
Weather alert
Sports event update
Message reminder
Order status update
Reservation confirmation
Trash collection reminder
Media content availability notification
Social game invitation notification

Resources