Executes a 3rd party action using the DataConnector
.
HTTP request
POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}:executeAction
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The data connector used for executing the action. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"actionName": string,
"args": {
object
},
"languageCode": string,
"assistAnswerInfo": {
object ( |
Fields | |
---|---|
actionName |
Required. Name of the action. For example: "send_email" |
args |
Required. Named arguments of the action. For example: When offered to a user, this part might be editable. |
languageCode |
Optional. Language to be used for status and error messages created by actions. |
assistAnswerInfo |
Optional. If specified, the result of the action execution will be associated with the given assist answer. This lets the assistant take the result into account in subsequent answers in the same session. The referenced assist answer resource must exist. |
Response body
Response for the DataConnectorService.ExecuteAction
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"status": {
object ( |
Fields | |
---|---|
status |
Status of the action execution. |
textResult |
Human readable result of the action execution in case of success. |
result |
Detailed result of the action execution in case of success. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
AssistAnswerInfo
Message that identifes an action invocation in the assist answer.
JSON representation |
---|
{ "assistAnswer": string, "invocationId": string } |
Fields | |
---|---|
assistAnswer |
Required. Name of the assist answer. Format: |
invocationId |
Required. The action invocation ID. |