Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Mohamed Hassan AbdulRahman
Created June 5, 2017

Alexa Calculator

This Alexa skill will facilitate making long mathematics calculation that include basic operations beside log & square root operations.

358
Alexa Calculator

Things used in this project

Story

Read more

Schematics

Voice User Interface Diagram

Code

Lambda code

JavaScript
No preview (download only).

Intent Schema

JSON
{
  "intents": [
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "operand_second",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "AddNewEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "operand_second",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "SubNewEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "operand_second",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "MultiplyNewEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "operand_second",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "DivideNewEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "operand_second",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "LogNewEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "SqrtNewEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "AddOldEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "SubOldEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "MultiplyOldEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "DivideOldEqIntent"
    },
    {
      "slots": [
        {
          "name": "connector",
          "type": "OPERATION_CONNECTOR"
        },
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "operand_second",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "LogOldEqIntent"
    },
    {
      "slots": [
        {
          "name": "operand_first",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "connector",
          "type": "OPERATION_CONNECTOR"
        }
      ],
      "intent": "SqrtOldEqIntent"
    },
    {
      "intent": "ResultIntent"
    },
    {
      "intent": "DontKnowIntent"
    },
    {
      "intent": "AMAZON.StartOverIntent"
    },
    {
      "intent": "AMAZON.RepeatIntent"
    },
    {
      "intent": "AMAZON.HelpIntent"
    },
    {
      "intent": "AMAZON.YesIntent"
    },
    {
      "intent": "AMAZON.NoIntent"
    },
    {
      "intent": "AMAZON.StopIntent"
    },
    {
      "intent": "AMAZON.CancelIntent"
    }
  ]
}

Sample Utterances

JSON
No preview (download only).

Credits

Mohamed Hassan AbdulRahman
5 projects • 36 followers
Maker, aiming to make people’s life easier and more meaningful, using the latest HW & SW technologies, analysis and research.
Contact

Comments

Please log in or sign up to comment.