Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class 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: - For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, AnswerRecord.name are returned to the customers.
- The customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to send feedback about a specific answer that they believe is wrong.
Generated from protobuf message google.cloud.dialogflow.v2.AnswerRecord
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The unique identifier of this answer record. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>
.
↳ answer_feedback
Google\Cloud\Dialogflow\V2\AnswerFeedback
Required. The AnswerFeedback for this record. You can set this with AnswerRecords.UpdateAnswerRecord in order to give us feedback about this answer.
↳ agent_assistant_record
getName
The unique identifier of this answer record.
Format: projects/<Project ID>/locations/<Location
ID>/answerRecords/<Answer Record ID>
.
Generated from protobuf field string name = 1;
string
setName
The unique identifier of this answer record.
Format: projects/<Project ID>/locations/<Location
ID>/answerRecords/<Answer Record ID>
.
Generated from protobuf field string name = 1;
var
string
$this
getAnswerFeedback
Required. The AnswerFeedback for this record. You can set this with AnswerRecords.UpdateAnswerRecord in order to give us feedback about this answer.
Generated from protobuf field .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED];
hasAnswerFeedback
clearAnswerFeedback
setAnswerFeedback
Required. The AnswerFeedback for this record. You can set this with AnswerRecords.UpdateAnswerRecord in order to give us feedback about this answer.
Generated from protobuf field .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED];
$this
getAgentAssistantRecord
Output only. The record for human agent assistant.
Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasAgentAssistantRecord
setAgentAssistantRecord
Output only. The record for human agent assistant.
Generated from protobuf field .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
$this
getRecord
string