How 7awi built Arabic Alexa Skill - Layalina Horoscopes
7awi Media Group
7awi is a leading MENA digital platform that entertains and informs millions thru storytelling and innovation.
Overview?
By the end of 2021, Amazon officially introduced Alexa to the Middle East starting with Saudi Arabia and the UAE. This virtual assistant can now speak in Arabic and understand the local dialects.
Layalina Horoscopes?is a service provided by Layalina.com (One of 7awi.com brands). For more than 10 years its being updated on a daily basis. The daily horoscope covers all the Astrological signs in general predictions, in addition to predictions in love, work, and health.
The Alexa and 7awi team worked together to launch the horoscopes skill on Alexa. Check this?link?to discover more about the horoscopes skill launched on Alexa
Specifications/Requirements
We have included 6 key features in this skill, here is a brief on each:
How the Horoscope Skill Works
Layalina horoscopes built on Amazon Alexa using Alexa Voice Service process the?utterances, identify the user’s?intent?and validate the value of the?slots?(if they exist) then send the inputs to the Backend?(Skills Application Logics)?to handle the intent. Backend built using Node.js on the Lambda server for handling the intents.
Backend Services:
1.?DynamoDb:?As a database to store user IDs with horoscope ID
2.?CloudWatch:?Used for logs
3.?S3 storage:?Used for static files, such as logos and images
4.?Layalina Api:?Used to get predictions
5.?Third-party service:?Used for diacritics
Then build a speech response in addition to a visual response (if the device supports it).
Intents: An intent represents an action that fulfills a user's spoken request. Intents can optionally have arguments called slots. Intents are specified in a JSON structure called the intent schema. Intents can optionally have arguments called?slots.
Sample utterances: A set of likely spoken phrases mapped to the intents. They include as many representative phrases as possible.
Slots (optional): Intents arguments?
Custom slot types: A representative list of possible values for a slot. Use custom slot types for lists of items that aren't covered by one of Amazon's built-in slot types.
Dialog model (optional):?A structure that identifies the steps for a multi-turn conversation between your skill and the user to collect all the information needed to fulfill each intent. The dialog model simplifies your code to ask the user for information.
Intents Used in Skills:
1.?Horoscope by Name Intent: Has required?Horoscope?slot and more than 175 sample utterances, like:
2.?Horoscope Name by Theme Intent: Has required?Horoscope?slot and?Theme?slot. It has more than 220 sample utterances, like:
3.?My Horoscope Intent: Has more than 54 sample utterances, like:
4.?My Horoscope by Theme Intent: Has required?Theme?slot and more than 39 sample utterances, like:
5.?My Default Horoscope Intent: Has more than 32 sample utterances, like:
6.?Set Default Horoscope Intent:?Has required?Horoscope?slot and more than 33 sample utterances, like:
7.?Change Default Horoscope Intent:?Has required?Horoscope?slot and more than 37 sample utterances, like:
Built-in Intents Skill:?The standard intents are used for common, general actions; such as stopping, canceling, and asking for help. To learn more about built-in intents check this?link.
Slots Used in Skills
Slot Type:
Horoscope Skill Application Logics Flowchart
References: