View Source Glific.Dialogflow.Sessions (Glific v5.1.6)

Helper to help manage intents

Link to this section Summary

Functions

Add message to queue worker to detect the intent

Function to communicate with dialogflow to detect the intent of the request

Link to this section Functions

Link to this function

detect_intent(message, context_id, result_name)

View Source
@spec detect_intent(Glific.Messages.Message.t(), non_neg_integer(), String.t()) :: :ok

Add message to queue worker to detect the intent

Link to this function

make_request(message, session_id, language \\ "en", opts)

View Source
@spec make_request(map(), String.t(), String.t(), Keyword.t()) ::
  :ok | {:error, :string}

Function to communicate with dialogflow to detect the intent of the request