Generates and returns a suggestion for a conversation that does not have a resource created for it.
HTTP request
POST https://{endpoint}/v2beta1/{parent=projects/*/locations/*}/statelessSuggestion:generate
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource to charge for the Suggestion's generation. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "contextReferences": { string: { object ( |
Fields | |
---|---|
contextReferences |
Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator. An object containing a list of |
conversationContext |
Optional. Context of the conversation, including transcripts. |
triggerEvents[] |
Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here. |
securitySettings |
Optional. Name of the CX SecuritySettings which is used to redact generated response. If this field is empty, try to fetch v2 securitySettings, which is a project level setting. If this field is empty and no v2 securitySettings set up in this project, no redaction will be done. Format: |
Union field generator_resource . Generator. generator_resource can be only one of the following: |
|
generator |
Uncreated generator. It should be a complete generator that includes all information about the generator. |
generatorName |
The resource name of the existing created generator. Format: |
Response body
The response message for Conversations.GenerateStatelessSuggestion
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"generatorSuggestion": {
object ( |
Fields | |
---|---|
generatorSuggestion |
Required. Generated suggestion for a conversation. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/dialogflow
For more information, see the Authentication Overview.