/// <summary>Snippet for CreateConversationAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateConversationResourceNamesAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); Conversation conversation = new Conversation(); string conversationId = ""; // Make the request Conversation response = await contactCenterInsightsClient.CreateConversationAsync(parent, conversation, conversationId); }
/// <summary>Snippet for CreateConversationAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateConversationAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; Conversation conversation = new Conversation(); string conversationId = ""; // Make the request Conversation response = await contactCenterInsightsClient.CreateConversationAsync(parent, conversation, conversationId); }
/// <summary>Snippet for CreateConversationAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateConversationRequestObjectAsync() { // Create client ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); // Initialize request argument(s) CreateConversationRequest request = new CreateConversationRequest { ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), Conversation = new Conversation(), ConversationId = "", }; // Make the request Conversation response = await contactCenterInsightsClient.CreateConversationAsync(request); }