Skip to main content

playbooks

Creates, updates, deletes, gets or lists a playbooks resource.

Overview

Nameplaybooks
TypeResource
Idgoogle.dialogflow.playbooks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
codeBlockobject (id: GoogleCloudDialogflowCxV3CodeBlock)
createTimestring (google-datetime)
displayNamestring
goalstring
handlersarray
inlineActionsarray
inputParameterDefinitionsarray
instructionobject (id: GoogleCloudDialogflowCxV3PlaybookInstruction)
llmModelSettingsobject (id: GoogleCloudDialogflowCxV3LlmModelSettings)
outputParameterDefinitionsarray
playbookTypestring (PLAYBOOK_TYPE_UNSPECIFIED, TASK, ROUTINE)
referencedFlowsarray
referencedPlaybooksarray
referencedToolsarray
tokenCountstring (int64)
updateTimestring (google-datetime)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_playbooks_getselectprojectsId, locationsId, agentsId, playbooksId
projects_locations_agents_playbooks_listselectprojectsId, locationsId, agentsIdpageToken, pageSize
projects_locations_agents_playbooks_createinsertprojectsId, locationsId, agentsId
projects_locations_agents_playbooks_patchupdateprojectsId, locationsId, agentsId, playbooksIdupdateMask
projects_locations_agents_playbooks_deletedeleteprojectsId, locationsId, agentsId, playbooksId
projects_locations_agents_playbooks_exportexecprojectsId, locationsId, agentsId, playbooksId
projects_locations_agents_playbooks_importexecprojectsId, locationsId, agentsId

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
locationsIdstring
playbooksIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Successful response

SELECT
name,
codeBlock,
createTime,
displayName,
goal,
handlers,
inlineActions,
inputParameterDefinitions,
instruction,
llmModelSettings,
outputParameterDefinitions,
playbookType,
referencedFlows,
referencedPlaybooks,
referencedTools,
tokenCount,
updateTime
FROM google.dialogflow.playbooks
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND playbooksId = '{{ playbooksId }}' -- required
;

INSERT examples

No description available.

INSERT INTO google.dialogflow.playbooks (
data__displayName,
data__llmModelSettings,
data__name,
data__instruction,
data__playbookType,
data__inputParameterDefinitions,
data__goal,
data__outputParameterDefinitions,
data__referencedTools,
data__handlers,
data__codeBlock,
projectsId,
locationsId,
agentsId
)
SELECT
'{{ displayName }}',
'{{ llmModelSettings }}',
'{{ name }}',
'{{ instruction }}',
'{{ playbookType }}',
'{{ inputParameterDefinitions }}',
'{{ goal }}',
'{{ outputParameterDefinitions }}',
'{{ referencedTools }}',
'{{ handlers }}',
'{{ codeBlock }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}'
RETURNING
name,
codeBlock,
createTime,
displayName,
goal,
handlers,
inlineActions,
inputParameterDefinitions,
instruction,
llmModelSettings,
outputParameterDefinitions,
playbookType,
referencedFlows,
referencedPlaybooks,
referencedTools,
tokenCount,
updateTime
;

UPDATE examples

No description available.

UPDATE google.dialogflow.playbooks
SET
data__displayName = '{{ displayName }}',
data__llmModelSettings = '{{ llmModelSettings }}',
data__name = '{{ name }}',
data__instruction = '{{ instruction }}',
data__playbookType = '{{ playbookType }}',
data__inputParameterDefinitions = '{{ inputParameterDefinitions }}',
data__goal = '{{ goal }}',
data__outputParameterDefinitions = '{{ outputParameterDefinitions }}',
data__referencedTools = '{{ referencedTools }}',
data__handlers = '{{ handlers }}',
data__codeBlock = '{{ codeBlock }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND playbooksId = '{{ playbooksId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
codeBlock,
createTime,
displayName,
goal,
handlers,
inlineActions,
inputParameterDefinitions,
instruction,
llmModelSettings,
outputParameterDefinitions,
playbookType,
referencedFlows,
referencedPlaybooks,
referencedTools,
tokenCount,
updateTime;

DELETE examples

No description available.

DELETE FROM google.dialogflow.playbooks
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND playbooksId = '{{ playbooksId }}' --required
;

Lifecycle Methods

Successful response

EXEC google.dialogflow.playbooks.projects_locations_agents_playbooks_export
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required,
@playbooksId='{{ playbooksId }}' --required
@@json=
'{
"playbookUri": "{{ playbookUri }}",
"dataFormat": "{{ dataFormat }}"
}'
;