| Copyright | (c) Mauricio Fierro 2019 |
|---|---|
| License | BSD3-Clause |
| Maintainer | Mauricio Fierro <mauriciofierrom@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Dialogflow.V2.Fulfillment.Webhook.Request
Description
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.
Constructors
| Intent | |
Fields
| |
Represents a context.
Constructors
| Context | |
Fields
| |
data QueryResult Source #
Represents the result of conversational query or event processing.
Constructors
| QueryResult | |
Fields
| |
Instances
| Eq QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request | |
| Show QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request Methods showsPrec :: Int -> QueryResult -> ShowS # show :: QueryResult -> String # showList :: [QueryResult] -> ShowS # | |
| ToJSON QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request Methods toJSON :: QueryResult -> Value # toEncoding :: QueryResult -> Encoding # toJSONList :: [QueryResult] -> Value # toEncodingList :: [QueryResult] -> Encoding # | |
| FromJSON QueryResult Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request | |
data WebhookRequest Source #
The request message for a webhook call.
Constructors
| WebhookRequest | |
Fields
| |
Instances
| Eq WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request Methods (==) :: WebhookRequest -> WebhookRequest -> Bool # (/=) :: WebhookRequest -> WebhookRequest -> Bool # | |
| Show WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request Methods showsPrec :: Int -> WebhookRequest -> ShowS # show :: WebhookRequest -> String # showList :: [WebhookRequest] -> ShowS # | |
| ToJSON WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request Methods toJSON :: WebhookRequest -> Value # toEncoding :: WebhookRequest -> Encoding # toJSONList :: [WebhookRequest] -> Value # toEncodingList :: [WebhookRequest] -> Encoding # | |
| FromJSON WebhookRequest Source # | |
Defined in Dialogflow.V2.Fulfillment.Webhook.Request Methods parseJSON :: Value -> Parser WebhookRequest # parseJSONList :: Value -> Parser [WebhookRequest] # | |