ProjectsLocationsAgentsSessions
class ProjectsLocationsAgentsSessions extends Resource (View source)
The "sessions" collection of methods.
Typical usage is:
$dialogflowService = new Google\Service\Dialogflow(...);
$sessions = $dialogflowService->projects_locations_agents_sessions;
Methods
Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries.
Fulfills a matched intent returned by MatchIntent. Must be called after MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is undefined. (sessions.fulfillIntent)
Returns preliminary intent match results, doesn't change the session status.
Processes a natural language query and returns structured, actionable data as a result through server-side streaming. Server-side streaming allows Dialogflow to send partial responses earlier in a single request.
Updates the feedback received from the user for a single turn of the bot response. (sessions.submitAnswerFeedback)
Details
GoogleCloudDialogflowCxV3DetectIntentResponse
detectIntent(string $session, GoogleCloudDialogflowCxV3DetectIntentRequest $postBody, array $optParams = [])
Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries.
Note: Always use agent versions for production traffic. See Versions and environments. (sessions.detectIntent)
GoogleCloudDialogflowCxV3FulfillIntentResponse
fulfillIntent(string $session, GoogleCloudDialogflowCxV3FulfillIntentRequest $postBody, array $optParams = [])
Fulfills a matched intent returned by MatchIntent. Must be called after MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is undefined. (sessions.fulfillIntent)
GoogleCloudDialogflowCxV3MatchIntentResponse
matchIntent(string $session, GoogleCloudDialogflowCxV3MatchIntentRequest $postBody, array $optParams = [])
Returns preliminary intent match results, doesn't change the session status.
(sessions.matchIntent)
GoogleCloudDialogflowCxV3DetectIntentResponse
serverStreamingDetectIntent(string $session, GoogleCloudDialogflowCxV3DetectIntentRequest $postBody, array $optParams = [])
Processes a natural language query and returns structured, actionable data as a result through server-side streaming. Server-side streaming allows Dialogflow to send partial responses earlier in a single request.
(sessions.serverStreamingDetectIntent)
GoogleCloudDialogflowCxV3AnswerFeedback
submitAnswerFeedback(string $session, GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest $postBody, array $optParams = [])
Updates the feedback received from the user for a single turn of the bot response. (sessions.submitAnswerFeedback)