- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- ActionInvocation
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 one of the following OAuth scopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/discoveryengine.readwrite
- https://www.googleapis.com/auth/discoveryengine.assist.readwrite
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name resource:
- discoveryengine.dataConnectors.buildActionInvocation
For more information, see the IAM documentation.
ActionInvocation
Represents an action invocation.
| JSON representation | 
|---|
| { "agentName": string, "actionName": string, "args": { object }, "dataConnector": string, "dataSource": string, "invocationId": string, "actionDisplayName": string, "userConfirmationMessage": string, "authorizationUrl": string, "resendQueryOnUserAuthorization": boolean, "parameterDeclaration": { object }, "argSetCandidates": [ { object } ] } | 
| Fields | |
|---|---|
| agentName | 
 Optional. name of the agent that is performing the action. | 
| 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. | 
| dataSource | 
 Output only. The name of the data source. | 
| 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: 
 
 
 |