Builds an action invocation using the DataConnector
.
HTTP request
POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}:buildActionInvocation
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The data connector used for building the action invocation. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "actionName": string, "languageCode": string } |
Fields | |
---|---|
actionName |
Required. Name of the action. For example: "send_email" |
languageCode |
Optional. Language to be used for status and error messages. |
Response body
Response for the DataConnectorService.BuildActionInvocation
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"actionInvocation": {
object ( |
Fields | |
---|---|
actionInvocation |
The action invocation. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ActionInvocation
Represents an action invocation.
JSON representation |
---|
{ "actionName": string, "args": { object }, "dataConnector": string, "invocationId": string, "actionDisplayName": string, "userConfirmationMessage": string, "authorizationUrl": string, "resendQueryOnUserAuthorization": boolean, "parameterDeclaration": { object }, "argSetCandidates": [ { object } ] } |
Fields | |
---|---|
actionName |
Name of the action. For example: "send_email" |
args |
Named arguments of the action. For example: When offered to a user, this part might be editable. If there are multiple options for the action arguments (e.g., multiple possible time slots for a calendar event), then this field describes the first option. |
dataConnector |
The data connector used for performing the action. |
invocationId |
Output only. The action invocation ID. |
actionDisplayName |
Output only. Human-readable name of the action that is displayed to the user. |
userConfirmationMessage |
Output only. Human-readable message shown to the user along with the confirmation dialog. |
authorizationUrl |
Output only. Authorization URL. |
resendQueryOnUserAuthorization |
Output only. If true, caller must resend query upon user authorization. |
parameterDeclaration |
Output only. Description of the parameters of the action including rendering/validation information. Its format is based on the OpenAPI's parameters specification. Based on: https://swagger.io/docs/specification/describing-parameters/ Example:
|
argSetCandidates[] |
Output only. If there are multiple options for the action arguments (e.g., multiple possible time slots for a calendar event), these additional argument candidates are listed in this field. Contains a list of argument sets, each of which is formatted similarly as the args field. The argument sets only contain the arguments that differ from the args field. When offered to a user, these values might be editable. For example:
|