David Urbansky
Published © MIT

Spoonacular Food Utilities

Spoonacular helps you to manage your food from meal plan to shopping list to cooking.

IntermediateProtip16 hours1,493
Spoonacular Food Utilities

Things used in this project

Hardware components

Amazon Echo
Amazon Alexa Amazon Echo
×1

Software apps and online services

spoonacular Food API

Story

Read more

Schematics

Workflow from user request to alexa to spoonacular API

Code

Intent Schema

JSON
{
  "intents": [
    {
      "intent": "GetJoke",
      "slots": []
    },
     {
      "intent": "GetFact",
      "slots": []
    },
    {
      "intent": "GetShoppingListInfo",
      "slots": []
    },
    {
      "intent": "GetMealPlanInfo",
      "slots": [
         {
          "name": "Date",
          "type": "AMAZON.DATE"
        },
         {
          "name": "Meal",
          "type": "MEAL"
        }
      ]
    },
    {
      "intent": "Convert",
      "slots": [
         {
          "name": "SourceAmount",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "SourceUnit",
          "type": "UNIT"
        },
        {
          "name": "TargetUnit",
          "type": "UNIT"
        },
        {
          "name": "Ingredient",
          "type": "INGREDIENT"
        }
      ]
    },
    {
      "intent": "GetNutrition",
      "slots": [
         {
          "name": "Amount",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "Unit",
          "type": "UNIT"
        },
        {
          "name": "Nutrient",
          "type": "NUTRIENT"
        },
        {
          "name": "Ingredient",
          "type": "INGREDIENT"
        }
      ]
    },
    {
      "intent": "AddToShoppingList",
      "slots": [
         {
          "name": "Amount",
          "type": "AMAZON.NUMBER"
        },
        {
          "name": "Unit",
          "type": "UNIT"
        },
        {
          "name": "Ingredient",
          "type": "INGREDIENT"
        }
      ]
    },
    {
      "intent": "GetIngredientSubstitutes",
      "slots": [       
        {
          "name": "Ingredient",
          "type": "INGREDIENT"
        }
      ]
    }
  ]
}

Sample Utterances

Plain text
GetJoke tell me a joke
GetJoke crack a joke
GetJoke tell me something funny
GetJoke tell a joke
GetFact tell me a fact
GetFact tell me a random fact
GetFact tell me a fact about food
GetFact tell me a random fact about food
GetFact tell me a food fact
GetFact tell me something I don't know
GetFact tell me something I do not know
GetShoppingListInfo what is on my shopping list
GetShoppingListInfo what's on my shopping list
GetShoppingListInfo what is on the shopping list
GetShoppingListInfo what's on the shopping list
GetShoppingListInfo my shopping list
GetMealPlanInfo what is on the meal plan {Date} for {Meal}
GetMealPlanInfo what's on the meal plan {Date} for {Meal}
GetMealPlanInfo what is on the meal plan on {Date} for {Meal}
GetMealPlanInfo what's on the meal plan on {Date} for {Meal}
GetMealPlanInfo what is on the meal plan {Meal} on {Date}
GetMealPlanInfo what's on the meal plan {Meal} on {Date}
GetMealPlanInfo what is on the meal plan {Meal} {Date}
GetMealPlanInfo what's on the meal plan {Meal} {Date}
GetMealPlanInfo what is for {Meal} {Date}
GetMealPlanInfo what is for {Meal} on {Date}
GetMealPlanInfo what's for {Meal} {Date}
GetMealPlanInfo what's for {Meal} on {Date}
Convert convert {SourceAmount} {SourceUnit} {Ingredient} to {TargetUnit}
Convert convert {SourceAmount} {SourceUnit} of {Ingredient} to {TargetUnit}
Convert convert {SourceAmount} {SourceUnit} {Ingredient} in {TargetUnit}
Convert convert {SourceAmount} {SourceUnit} of {Ingredient} in {TargetUnit}
Convert convert {SourceAmount} {Ingredient} to {TargetUnit}
Convert convert {SourceAmount} {Ingredient} in {TargetUnit}
GetNutrition {Nutrient} in {Amount} {Unit} {Ingredient}
GetNutrition {Nutrient} in {Amount} {Unit} of {Ingredient}
GetNutrition {Nutrient} in {Amount} {Ingredient}
GetNutrition how much {Nutrient} is in {Amount} {Unit} of {Ingredient}
GetNutrition how much {Nutrient} is in {Amount} {Ingredient}
GetNutrition how many {Nutrient} are in {Amount} {Unit} of {Ingredient}
GetNutrition how many {Nutrient} are in {Amount} {Ingredient}
AddToShoppingList add {Amount} {Unit} of {Ingredient} to my shopping list
AddToShoppingList add {Amount} {Unit} of {Ingredient} to the shopping list
AddToShoppingList add {Amount} {Unit} {Ingredient} to my shopping list
AddToShoppingList add {Amount} {Unit} {Ingredient} to the shopping list
AddToShoppingList add {Amount} {Ingredient} to my shopping list
AddToShoppingList add {Amount} {Ingredient} to the shopping list
AddToShoppingList add {Ingredient} to my shopping list
AddToShoppingList add {Ingredient} to the shopping list
GetIngredientSubstitutes what is a good substitute for {Ingredient}
GetIngredientSubstitutes what's a good substitute for {Ingredient}
GetIngredientSubstitutes how can I substitute {Ingredient}
GetIngredientSubstitutes how to substitute {Ingredient}
GetIngredientSubstitutes a good substitute for {Ingredient}
GetIngredientSubstitutes a substitute for {Ingredient}
GetIngredientSubstitutes what is a good replacement for {Ingredient}
GetIngredientSubstitutes what's a good replacement for {Ingredient}
GetIngredientSubstitutes how can I replace {Ingredient}
GetIngredientSubstitutes how to replace {Ingredient}
GetIngredientSubstitutes a good replacement for {Ingredient}
GetIngredientSubstitutes a replacement for {Ingredient}

Credits

David Urbansky

David Urbansky

1 project • 2 followers
Thanks to Crystal Schlegelmilch.

Comments