Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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 UpdateAnswerRecord method
to send feedback about a specific answer that they believe is wrong.
Instance Attribute Summary collapse
-
#agent_assistant_record ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantRecord
Represents a record of a human agent assistant answer.
-
#answer_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerFeedback
Represents feedback the customer has about the quality & correctness of a certain answer in a conversation.
-
#name ⇒ String
The unique identifier of this answer record.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AnswerRecord
constructor
A new instance of GoogleCloudDialogflowV2beta1AnswerRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AnswerRecord
Returns a new instance of GoogleCloudDialogflowV2beta1AnswerRecord.
8442 8443 8444 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8442 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_assistant_record ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantRecord
Represents a record of a human agent assistant answer.
Corresponds to the JSON property agentAssistantRecord
8428 8429 8430 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8428 def agent_assistant_record @agent_assistant_record end |
#answer_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerFeedback
Represents feedback the customer has about the quality & correctness of a
certain answer in a conversation.
Corresponds to the JSON property answerFeedback
8434 8435 8436 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8434 def answer_feedback @answer_feedback end |
#name ⇒ String
The unique identifier of this answer record. Required for AnswerRecords.
UpdateAnswerRecord method. Format: projects//locations//answerRecords/.
Corresponds to the JSON property name
8440 8441 8442 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8440 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8447 8448 8449 8450 8451 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8447 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 |