Copyright | (c) Mauricio Fierro 2019 |
---|---|
License | BSD3-Clause |
Maintainer | Mauricio Fierro <mauriciofierrom@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
This module contains types for Dialogflow webhook requests. See the Dialogflow documentation.
Synopsis
- data Intent = Intent {}
- data Context = Context {
- ctxName :: String
- ctxLifespanCount :: Maybe Int
- ctxParameters :: Maybe (Map String String)
- data QueryResult = QueryResult {}
- data WebhookRequest = WebhookRequest {}
- getContextParameter :: [Context] -> String -> String -> Maybe String
Documentation
Represents an intent.
Intent | |
|
Represents a context.
Context | |
|
data QueryResult Source #
Represents the result of conversational query or event processing.
QueryResult | |
|
Instances
Eq QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request (==) :: QueryResult -> QueryResult -> Bool # (/=) :: QueryResult -> QueryResult -> Bool # | |
Show QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request showsPrec :: Int -> QueryResult -> ShowS # show :: QueryResult -> String # showList :: [QueryResult] -> ShowS # | |
ToJSON QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request toJSON :: QueryResult -> Value # toEncoding :: QueryResult -> Encoding # toJSONList :: [QueryResult] -> Value # toEncodingList :: [QueryResult] -> Encoding # | |
FromJSON QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request parseJSON :: Value -> Parser QueryResult # parseJSONList :: Value -> Parser [QueryResult] # |
data WebhookRequest Source #
The request message for a webhook call.
WebhookRequest | |
|
Instances
Eq WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request (==) :: WebhookRequest -> WebhookRequest -> Bool # (/=) :: WebhookRequest -> WebhookRequest -> Bool # | |
Show WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request showsPrec :: Int -> WebhookRequest -> ShowS # show :: WebhookRequest -> String # showList :: [WebhookRequest] -> ShowS # | |
ToJSON WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request toJSON :: WebhookRequest -> Value # toEncoding :: WebhookRequest -> Encoding # toJSONList :: [WebhookRequest] -> Value # toEncodingList :: [WebhookRequest] -> Encoding # | |
FromJSON WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request parseJSON :: Value -> Parser WebhookRequest # parseJSONList :: Value -> Parser [WebhookRequest] # |