Class ProjectsResource.LocationsResource.ConversationsResource.CreateRequest
Creates a new conversation. Conversations are auto-completed after 24 hours. Conversation Lifecycle:
There are two stages during a conversation: Automated Agent Stage and Assist Stage. For Automated
Agent Stage, there will be a dialogflow agent responding to user queries. For Assist Stage, there's
no dialogflow agent responding to user queries. But we will provide suggestions which are generated
from conversation. If Conversation.conversation_profile is configured for a dialogflow agent,
conversation will start from Automated Agent Stage
, otherwise, it will start from Assist Stage
.
And during Automated Agent Stage
, once an Intent with Intent.live_agent_handoff is triggered,
conversation will transfer to Assist Stage.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.LocationsResource.ConversationsResource.CreateRequest : DialogflowBaseServiceRequest<GoogleCloudDialogflowV2beta1Conversation>, IClientServiceRequest<GoogleCloudDialogflowV2beta1Conversation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudDialogflowV2beta1Conversation, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudDialogflowV2beta1Conversation body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDialogflowV2beta1Conversation | body | |
string | parent |
Properties
ConversationId
Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it
if you cannot wait for the response to return a auto-generated one to you. The conversation ID
must be compliant with the regression formula a-zA-Z*
with the characters length in range of
[3,64]. If the field is provided, the caller is responsible for 1. the uniqueness of the ID,
otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not
under a project to better ensure uniqueness.
Declaration
[RequestParameter("conversationId", RequestParameterType.Query)]
public virtual string ConversationId { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. Resource identifier of the project creating the conversation. Format:
projects//locations/
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()