Service Client: Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AnswerRecordsClient

Client stub representing the remote AnswerRecords gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to dialogflow.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Dialogflow::V2beta1::AnswerRecord - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2beta1/answer_record.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2beta1::AnswerRecord;

my $msg = Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AnswerRecord->new({
    name => $name,
    answer_feedback => $answer_feedback,
    agent_assistant_record => $agent_assistant_record,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AnswerRecord->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2beta1/answer_record.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AnswerRecord

Answer records are records to manage answer history and feedbacks for Dialogflow.

Currently, answer record includes:

- human agent assistant article suggestion - human agent assistant faq article

It doesn't include:

- `DetectIntent` intent matching - `DetectIntent` knowledge

Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there's a human agent assistant suggestion generated.

A typical workflow for customers provide feedback to an answer is:

1. For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, [AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] are returned to the customers. 2. The customer uses the [AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] to call the [UpdateAnswerRecord][] method to send feedback about a specific answer that they believe is wrong.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The unique identifier of this answer record. Required for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] method. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.

  • $msg->answer_feedback() / $msg->answer_feedback($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AnswerFeedback)

    Optional. The AnswerFeedback for this record. You can set this with [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about this answer.

  • $msg->agent_assistant_record() / $msg->agent_assistant_record($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AgentAssistantRecord)

    Output only. The record for human agent assistant.

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AgentAssistantRecord

Represents a record of a human agent assistant answer.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AnswerFeedback

Represents feedback the customer has about the quality & correctness of a certain answer in a conversation.

Inherits from Protobuf::Message.

Accessors

  • $msg->correctness_level() / $msg->correctness_level($value)

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::AnswerFeedback::CorrectnessLevel)

    The correctness level of the specific answer.

  • $msg->agent_assistant_detail_feedback() / $msg->agent_assistant_detail_feedback($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AgentAssistantFeedback)

    Optional. Detail feedback of agent assistant suggestions.

  • $msg->clicked() / $msg->clicked($value)

    Type: Bool

    Indicates whether the answer/item was clicked by the human agent or not. Default to false. For knowledge search, the answer record is considered to be clicked if the answer was copied or any URI was clicked.

  • $msg->click_time() / $msg->click_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time when the answer/item was clicked.

  • $msg->displayed() / $msg->displayed($value)

    Type: Bool

    Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.

  • $msg->display_time() / $msg->display_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time when the answer/item was displayed.

Enum: AnswerFeedback::CorrectnessLevel

  • CORRECTNESS_LEVEL_UNSPECIFIED => 0

  • NOT_CORRECT => 1

  • PARTIALLY_CORRECT => 2

  • FULLY_CORRECT => 3

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AgentAssistantFeedback

Detail feedback of Agent Assistant result.

Inherits from Protobuf::Message.

Accessors

Enum: AgentAssistantFeedback::AnswerRelevance

  • ANSWER_RELEVANCE_UNSPECIFIED => 0

  • IRRELEVANT => 1

  • RELEVANT => 2

Enum: AgentAssistantFeedback::DocumentCorrectness

  • DOCUMENT_CORRECTNESS_UNSPECIFIED => 0

  • INCORRECT => 1

  • CORRECT => 2

Enum: AgentAssistantFeedback::DocumentEfficiency

  • DOCUMENT_EFFICIENCY_UNSPECIFIED => 0

  • INEFFICIENT => 1

  • EFFICIENT => 2

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::GetAnswerRecordRequest

Request message for [AnswerRecords.GetAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.GetAnswerRecord].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the answer record to retrieve. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record Id>`.

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::ListAnswerRecordsRequest

Request message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project to list all answer records for in reverse chronological order. Format: `projects/<Project ID>/locations/<Location ID>`.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Filters to restrict results to specific answer records. The expression has the following syntax:

    <field> <operator> <value> [AND <field> <operator> <value>] ...

    The following fields and operators are supported: * conversation_id with equals(=) operator

    Examples:

    * "conversation_id=bar" matches answer records in the projects/foo/locations/global/conversations/bar conversation (assuming the parent is projects/foo/locations/global).

    For more information about filtering, see [API Filtering](https://aip.dev/160).

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of records to return in a single page. The server may return fewer records than this. If unspecified, we use 10. The maximum is 100.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. The [ListAnswerRecordsResponse.next_page_token][google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse.next_page_token] value returned from a previous list request used to continue listing on the next page.

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::ListAnswerRecordsResponse

Response message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords].

Inherits from Protobuf::Message.

Accessors

  • $msg->answer_records() / $msg->answer_records($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::AnswerRecord::AnswerRecord)

    The list of answer records.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token to retrieve next page of results. Or empty if there are no more results. Pass this value in the [ListAnswerRecordsRequest.page_token][google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.page_token] field in the subsequent call to `ListAnswerRecords` method to retrieve the next page of results.

Google::Cloud::Dialogflow::V2beta1::AnswerRecord::UpdateAnswerRecordRequest

Request message for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord].

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2beta1::AnswerRecord::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.