Resource: CannedQuery
Canned query resource of Assistant. It represents a short-cut to a predefined conversation start.
| JSON representation |
|---|
{ "name": string, "displayName": string, "defaultTexts": { object ( |
| Fields | |
|---|---|
name |
Immutable. Resource name of the canned query. Format: It must be a UTF-8 encoded string with a length limit of 1024 characters. |
displayName |
The display name of the canned query. It must be a UTF-8 encoded string with a length limit of 128 characters. |
defaultTexts |
Required. The default (non-localized) values for the text attributes. |
localizedTexts |
Optional. The translations of the text attributes. The keys should be BCP-47 language codes. |
requiredCapabilities[] |
Optional. The capabilities the Assistant needs to have to use this canned query. |
enabled |
Whether this canned query is enabled. |
googleDefined |
Output only. Whether this is a Google-defined, read-only canned query. |
CannedQueryTexts
The text pieces for the canned query, which can be localized.
| JSON representation |
|---|
{
"title": string,
"prefix": string,
"suggestedPrompts": [
{
object ( |
| Fields | |
|---|---|
title |
Required. The title that is for the end user. |
prefix |
Optional. The prefix that |
suggestedPrompts[] |
Required. The prompts the canned query will offer to the user. |
SuggestedPrompt
A suggested prompt for the canned query.
| JSON representation |
|---|
{ "promptText": string } |
| Fields | |
|---|---|
promptText |
Required. The text of the suggested prompt. |
AssistantCapability
Capability of an assistant needed to use this canned query.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field capability. Capability of an assistant, either an action or a tool. capability can be only one of the following: |
|
actionName |
The name of the action that the Assistant needs to have set up to use this canned query. |
Methods |
|
|---|---|
|
Creates a CannedQuery. |
|
Deletes a CannedQuery. |
|
Gets a CannedQuery. |
|
Lists all CannedQuerys under an Assistant. |
|
Lists the CannedQueryUserViews for all active CannedQuerys. |
|
Updates a CannedQuery. |