Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::AnswerRecord (v0.21.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::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 are returned to the customers.
  2. The customer uses the AnswerRecord.name to call the [UpdateAnswerRecord][] method to send feedback about a specific answer that they believe is wrong.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#agent_assistant_record

def agent_assistant_record() -> ::Google::Cloud::Dialogflow::V2::AgentAssistantRecord
Returns

#answer_feedback

def answer_feedback() -> ::Google::Cloud::Dialogflow::V2::AnswerFeedback
Returns

#answer_feedback=

def answer_feedback=(value) -> ::Google::Cloud::Dialogflow::V2::AnswerFeedback
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — The unique identifier of this answer record. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The unique identifier of this answer record. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.
Returns
  • (::String) — The unique identifier of this answer record. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.