Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerRecord

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

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 AnswerRecords. UpdateAnswerRecord method to send feedback about a specific answer that they believe is wrong.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AnswerRecord

Returns a new instance of GoogleCloudDialogflowV2AnswerRecord.



8825
8826
8827
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8825

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#agent_assistant_recordGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantRecord

Represents a record of a human agent assist answer. Corresponds to the JSON property agentAssistantRecord



8811
8812
8813
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8811

def agent_assistant_record
  @agent_assistant_record
end

#answer_feedbackGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerFeedback

Represents feedback the customer has about the quality & correctness of a certain answer in a conversation. Corresponds to the JSON property answerFeedback



8817
8818
8819
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8817

def answer_feedback
  @answer_feedback
end

#nameString

The unique identifier of this answer record. Format: projects//locations// answerRecords/. Corresponds to the JSON property name

Returns:

  • (String)


8823
8824
8825
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8823

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8830
8831
8832
8833
8834
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8830

def update!(**args)
  @agent_assistant_record = args[:agent_assistant_record] if args.key?(:agent_assistant_record)
  @answer_feedback = args[:answer_feedback] if args.key?(:answer_feedback)
  @name = args[:name] if args.key?(:name)
end