generators
Creates, updates, deletes, gets or lists a generators
resource.
Overview
Name | generators |
Type | Resource |
Id | google.dialogflow.generators |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. Generators.CreateGenerate populates the name automatically. Format: projects//locations//agents//generators/ . |
displayName | string | Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment. |
placeholders | array | Optional. List of custom placeholders in the prompt text. |
promptText | object | Text input which can be used for prompt or banned phrases. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_agents_generators_get | SELECT | agentsId, generatorsId, locationsId, projectsId | Retrieves the specified generator. |
projects_locations_agents_generators_list | SELECT | agentsId, locationsId, projectsId | Returns the list of all generators in the specified agent. |
projects_locations_agents_generators_create | INSERT | agentsId, locationsId, projectsId | Creates a generator in the specified agent. |
projects_locations_agents_generators_delete | DELETE | agentsId, generatorsId, locationsId, projectsId | Deletes the specified generators. |
projects_locations_agents_generators_patch | UPDATE | agentsId, generatorsId, locationsId, projectsId | Update the specified generator. |
SELECT
examples
Returns the list of all generators in the specified agent.
SELECT
name,
displayName,
placeholders,
promptText
FROM google.dialogflow.generators
WHERE agentsId = '{{ agentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new generators
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dialogflow.generators (
agentsId,
locationsId,
projectsId,
name,
displayName,
promptText,
placeholders
)
SELECT
'{{ agentsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ promptText }}',
'{{ placeholders }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: displayName
value: string
- name: promptText
value:
- name: text
value: string
- name: placeholders
value:
- - name: id
value: string
- name: name
value: string
UPDATE
example
Updates a generators
resource.
/*+ update */
UPDATE google.dialogflow.generators
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
promptText = '{{ promptText }}',
placeholders = '{{ placeholders }}'
WHERE
agentsId = '{{ agentsId }}'
AND generatorsId = '{{ generatorsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified generators
resource.
/*+ delete */
DELETE FROM google.dialogflow.generators
WHERE agentsId = '{{ agentsId }}'
AND generatorsId = '{{ generatorsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';