Glific v0.3.1 Glific.Dialogflow.Intents View Source

The main intents module which stiches it all together

Link to this section Summary

Link to this section Functions

Link to this function

add_training_phrase(id, text, language \\ "en")

View Source

Specs

add_training_phrase(String.t(), String.t(), String.t()) :: tuple()

Add a training phrase to an intent.

Link to this function

create(body, language \\ "es")

View Source

Specs

create(map(), String.t()) :: tuple()

Create an intent

Link to this function

get(id, language \\ "en", view \\ "INTENT_VIEW_UNSPECIFIED")

View Source

Specs

get(String.t(), String.t(), String.t()) :: tuple()

Get an intent for a specific id

Link to this function

list(language \\ "en", view \\ "INTENT_VIEW_UNSPECIFIED", token \\ nil, acc \\ [])

View Source

Specs

list(String.t(), String.t(), String.t() | nil, list()) :: tuple()

List all the intents of the agent per pageToken.

Link to this function

list_by_page(language \\ "en", view \\ "INTENT_VIEW_UNSPECIFIED", page_size \\ 100, token \\ nil)

View Source

Specs

list_by_page(String.t(), String.t(), integer(), String.t() | nil) :: tuple()

List an agent's intents by pageToken and defining page size.

Link to this function

update(id, intent, language \\ "es")

View Source

Specs

update(String.t(), map(), String.t()) :: tuple()

Update an intent view full.