Full name: projects.locations.instances.legacyPlaybooks.legacyAiGenerate
Generates a playbook using AI based on the provided user prompt.
HTTP request
Path parameters
Parameters | |
---|---|
instance |
Required. The instance to generate the playbook for. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "prompt": string, "playbook": { object ( |
Fields | |
---|---|
prompt |
Required. The user prompt to generate the playbook. |
playbook |
Optional. The playbook to generate the playbook. |
metadata |
Optional. Metadata for the response. |
hashedUserId |
Optional. A hashed identifier of the user initiating the playbook generation request. |
Response body
LegacyPlaybookAiGenerateResponse is a response for generating a playbook with AI.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"instance": string,
"playbook": {
object ( |
Fields | |
---|---|
instance |
Required. The instance to generate the playbook for. Format: projects/{project}/locations/{location}/instances/{instance} |
playbook |
Optional. The generated playbook. |
correlationId |
Optional. The correlation id of the request. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.