ms_luis v1.0.0 MsLuis

The MsLuis module is used to send requests to the LUIS service.

Summary

Functions

Sends a request to the LUIS service for the given query

Functions

get_intent(query)
get_intent(binary) :: {atom, map} | {:error, binary | atom}

Sends a request to the LUIS service for the given query

Args

  • query - a binary that is to be sent to the LUIS service

Usage

MsLuis.get_intent("turn off the lights")
# {:ok, %{"topScoringIntent" => "lights_off", ...}}