Generates and returns a suggestion for a conversation that does not have a resource created for it.
HTTP request
POST https://{endpoint}/v2/{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. |
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.