Beispiel #1
0
def sample_update_conversation_profile():
    # Create a client
    client = dialogflow_v2beta1.ConversationProfilesClient()

    # Initialize request argument(s)
    conversation_profile = dialogflow_v2beta1.ConversationProfile()
    conversation_profile.display_name = "display_name_value"

    request = dialogflow_v2beta1.UpdateConversationProfileRequest(
        conversation_profile=conversation_profile, )

    # Make the request
    response = client.update_conversation_profile(request=request)

    # Handle the response
    print(response)
async def sample_create_conversation_profile():
    # Create a client
    client = dialogflow_v2beta1.ConversationProfilesAsyncClient()

    # Initialize request argument(s)
    conversation_profile = dialogflow_v2beta1.ConversationProfile()
    conversation_profile.display_name = "display_name_value"

    request = dialogflow_v2beta1.CreateConversationProfileRequest(
        parent="parent_value",
        conversation_profile=conversation_profile,
    )

    # Make the request
    response = await client.create_conversation_profile(request=request)

    # Handle the response
    print(response)