Ejemplo n.º 1
0
def sample_get_participant():
    # Create a client
    client = dialogflow_v2.ParticipantsClient()

    # Initialize request argument(s)
    request = dialogflow_v2.GetParticipantRequest(name="name_value", )

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

    # Handle the response
    print(response)
def sample_suggest_smart_replies():
    # Create a client
    client = dialogflow_v2.ParticipantsClient()

    # Initialize request argument(s)
    request = dialogflow_v2.SuggestSmartRepliesRequest(parent="parent_value", )

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

    # Handle the response
    print(response)
Ejemplo n.º 3
0
def sample_update_participant():
    # Create a client
    client = dialogflow_v2.ParticipantsClient()

    # Initialize request argument(s)
    request = dialogflow_v2.UpdateParticipantRequest()

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

    # Handle the response
    print(response)
def sample_create_participant():
    # Create a client
    client = dialogflow_v2.ParticipantsClient()

    # Initialize request argument(s)
    request = dialogflow_v2.CreateParticipantRequest(parent="parent_value", )

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

    # Handle the response
    print(response)
Ejemplo n.º 5
0
def sample_list_participants():
    # Create a client
    client = dialogflow_v2.ParticipantsClient()

    # Initialize request argument(s)
    request = dialogflow_v2.ListParticipantsRequest(parent="parent_value", )

    # Make the request
    page_result = client.list_participants(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Ejemplo n.º 6
0
def sample_analyze_content():
    # Create a client
    client = dialogflow_v2.ParticipantsClient()

    # Initialize request argument(s)
    text_input = dialogflow_v2.TextInput()
    text_input.text = "text_value"
    text_input.language_code = "language_code_value"

    request = dialogflow_v2.AnalyzeContentRequest(
        text_input=text_input,
        participant="participant_value",
    )

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

    # Handle the response
    print(response)