Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.
See: Dialogflow API Reference for dialogflow.projects.agent.sessions.detectIntent
.
Synopsis
- type ProjectsAgentSessionsDetectIntentResource = "v2" :> (CaptureMode "session" "detectIntent" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2DetectIntentRequest :> Post '[JSON] GoogleCloudDialogflowV2DetectIntentResponse))))))))
- projectsAgentSessionsDetectIntent :: GoogleCloudDialogflowV2DetectIntentRequest -> Text -> ProjectsAgentSessionsDetectIntent
- data ProjectsAgentSessionsDetectIntent
- pasdiXgafv :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Xgafv)
- pasdiUploadProtocol :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text)
- pasdiAccessToken :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text)
- pasdiUploadType :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text)
- pasdiPayload :: Lens' ProjectsAgentSessionsDetectIntent GoogleCloudDialogflowV2DetectIntentRequest
- pasdiSession :: Lens' ProjectsAgentSessionsDetectIntent Text
- pasdiCallback :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text)
REST Resource
type ProjectsAgentSessionsDetectIntentResource = "v2" :> (CaptureMode "session" "detectIntent" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2DetectIntentRequest :> Post '[JSON] GoogleCloudDialogflowV2DetectIntentResponse)))))))) Source #
A resource alias for dialogflow.projects.agent.sessions.detectIntent
method which the
ProjectsAgentSessionsDetectIntent
request conforms to.
Creating a Request
projectsAgentSessionsDetectIntent Source #
Creates a value of ProjectsAgentSessionsDetectIntent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentSessionsDetectIntent Source #
Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.
See: projectsAgentSessionsDetectIntent
smart constructor.
Instances
Request Lenses
pasdiXgafv :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Xgafv) Source #
V1 error format.
pasdiUploadProtocol :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pasdiAccessToken :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text) Source #
OAuth access token.
pasdiUploadType :: Lens' ProjectsAgentSessionsDetectIntent (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pasdiPayload :: Lens' ProjectsAgentSessionsDetectIntent GoogleCloudDialogflowV2DetectIntentRequest Source #
Multipart request metadata.
pasdiSession :: Lens' ProjectsAgentSessionsDetectIntent Text Source #
Required. The name of the session this query is sent to. Format: `projects//agent/sessions/`. It's up to the API caller to choose an appropriate session ID. It can be a random number or some type of user identifier (preferably hashed). The length of the session ID must not exceed 36 bytes.