BY  Savithru Lokanath – Developer at Einstein.ai 

A quick preview of the Alexa skill showcasing the power of NetFoundry developer platform. Using voice as an interface, you can use this Alexa skill to interact with the NetFoundry platform.

Using NetFoundry’s platform REST APIs & native AWS constructs, the intent is captured from the speech input & passed on to a custom-built AWS Lambda function. The function maps the intent to the relevant REST API call towards NetFoundry’s platform endpoint.

Below is an example of a sample mapping with slots for “getNetworkStatus” & “createNetwork” intents

[
  {
    "keywords": ["get xyz network status", "give me health check of network xyz"],
    "intent_slots": {
      "network_name": "xyz"
    },
    "intent": "getNetworkStatus",
    "netfoundry_method": "GET /network/{id}/status"
  },
  {
    "keywords": ["can you create network xyz with cidr 10.0.0.0/20", "provision xyz virtual network"],
    "intent_slots": {
      "network_name": "xyz",
      "cidr": "10.0.0.0/20"
    },
    "intent": "createNetwork",
    "netfoundry_method": "POST /network"
  },
]

This Alexa skill’s capabilities are endless & can be enhanced as the platform grows to expose more API routes.