SurveyResponse

Câu trả lời khảo sát.

Biểu diễn dưới dạng JSON
{
  "survey": string,
  "rating": enum (SurveyRating),
  "feedback": string,
  "createTime": string,
  "surveyQuestionId": string,
  "questionResponseText": string,
  "questionResponsePostbackData": string,
  "questionType": enum (SurveyQuestionType),
  "questionIndex": integer,
  "totalQuestionCount": integer,
  "surveyTriggerSource": enum (SurveyTriggerSource)
}
Các trường
survey

string

Bản khảo sát được gửi đến người dùng. Phân giải thành "conversations/{conversationId}/surveys/{surveyId}", trong đó {conversationId} là mã nhận dạng duy nhất của cuộc trò chuyện và {surveyId} là mã nhận dạng duy nhất cho bản khảo sát.

rating

enum (SurveyRating)

Điểm xếp hạng từ người dùng.

feedback

string

Phản hồi bằng văn bản từ người dùng.

Không bắt buộc.

createTime

string (Timestamp format)

Thời gian mà khảo sát được phản hồi.

Dấu thời gian ở định dạng RFC3339 UTC "Zulu" với độ phân giải nano giây và tối đa chín chữ số thập phân. Ví dụ: "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z".

surveyQuestionId

string

Giá trị nhận dạng duy nhất của câu hỏi.

questionResponseText

string

Văn bản mà người dùng nhấn vào để làm phản hồi cho câu hỏi.

questionResponsePostbackData

string

Dữ liệu đăng lại cho câu trả lời của người dùng đã nhấn

questionType

enum (SurveyQuestionType)

Loại câu hỏi.

questionIndex

integer

Chỉ mục của câu hỏi trong cuộc khảo sát.

totalQuestionCount

integer

Tổng số câu hỏi trong cuộc khảo sát.

surveyTriggerSource

enum (SurveyTriggerSource)

Nguồn kích hoạt cho bản khảo sát.