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

The intent object which has the intent information from any classifiers

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Create an Intent for the NLP framework

Get a list of all the intent names.

Link to this section Types

@type t() :: %Glific.Dialogflow.Intent{
  __meta__: Ecto.Schema.Metadata.t(),
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  name: String.t() | nil,
  organization:
    Glific.Partners.Organization.t() | Ecto.Association.NotLoaded.t() | nil,
  organization_id: non_neg_integer() | nil,
  updated_at: :utc_datetime | nil
}

Link to this section Functions

Link to this function

changeset(intent, attrs)

View Source
@spec changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types

@spec create_intent(map()) :: t()

Create an Intent for the NLP framework

Link to this function

get_intent_name_list(org_id)

View Source
@spec get_intent_name_list(non_neg_integer()) :: list()

Get a list of all the intent names.