UserMessage

사용자가 에이전트에게 보내는 메시지입니다.

UserMessage는 에이전트가 수신하는 message 객체의 data 필드에 표시됩니다. data 필드는 에이전트가 바이트로 변환하고 UserMessage 프로토콜 버퍼로 파싱해야 하는 base64로 인코딩된 문자열입니다.

JSON 표현
{
  "requestId": string,
  "conversationId": string,
  "customAgentId": string,
  "agent": string,
  "context": {
    object (Context)
  },
  "sendTime": string,
  "dialogflowResponse": {
    object (DialogflowResponse)
  },

  // Union field payload can be only one of the following:
  "message": {
    object (Message)
  },
  "receipts": {
    object (Receipts)
  },
  "userStatus": {
    object (UserStatus)
  },
  "surveyResponse": {
    object (SurveyResponse)
  },
  "suggestionResponse": {
    object (SuggestionResponse)
  },
  "authenticationResponse": {
    object (AuthenticationResponse)
  }
  // End of list of possible types for union field payload.
}
필드
requestId

string

사용자 메시지의 고유 식별자입니다. 이 입력란을 사용하여 수신 메일의 중복을 제거할 수 있습니다.

conversationId

string

대화의 고유 식별자입니다.

customAgentId

string

에이전트의 맞춤 식별자입니다. 에이전트 등록 중에 파트너가 정의합니다.

agent

string

에이전트의 식별자입니다. 에이전트를 만드는 동안 설정됩니다.

context

object (Context)

메시지와 관련된 문맥 데이터입니다.

sendTime

string (Timestamp format)

메시지가 전송된 시간입니다.

RFC3339 UTC 'Zulu' 형식의 타임스탬프입니다(나노초 단위, 소수점 이하 9자리). 예를 들면 "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"입니다.

dialogflowResponse

object (DialogflowResponse)

Dialogflow 응답입니다.

통합 필드 payload. 사용자 메시지의 페이로드입니다. payload은 다음 중 하나여야 합니다.
message

object (Message)

메시지의 내용.

receipts

object (Receipts)

영수증의 내용

userStatus

object (UserStatus)

사용자 상태의 콘텐츠입니다.

surveyResponse

object (SurveyResponse)

설문조사 응답입니다.

suggestionResponse

object (SuggestionResponse)

추천 응답입니다.

authenticationResponse

object (AuthenticationResponse)

인증 응답입니다.

UserStatus

사용자 상태입니다.

JSON 표현
{
  "createTime": string,

  // Union field status can be only one of the following:
  "isTyping": boolean,
  "requestedLiveAgent": boolean
  // End of list of possible types for union field status.
}
필드
createTime

string (Timestamp format)

사용자 상태가 변경된 시간

RFC3339 UTC 'Zulu' 형식의 타임스탬프입니다(나노초 단위, 소수점 이하 9자리). 예를 들면 "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"입니다.

통합 필드 status.

status는 다음 중 하나여야 합니다.

isTyping

boolean

사용자의 입력 여부입니다.

requestedLiveAgent

boolean

사용자가 실시간 상담사를 요청했는지 여부입니다.