Google Business Messages는 2024년 7월 31일에 지원 중단됩니다.
자세히 알아보기
Method: conversations.messages.create
에이전트에서 사용자에게 메시지를 전송합니다. 대화가 존재하지 않거나 에이전트가 참여할 권한이 없는 대화에서 메시지를 보내려고 하면 PERMISSION DENIED
오류를 반환합니다.
HTTP 요청
POST https://businessmessages.googleapis.com/v1/{parent=conversations/*}/messages
URL은 gRPC 트랜스코딩 구문을 사용합니다.
경로 매개변수
매개변수 |
parent |
string
필수 항목입니다. 메시지가 포함된 대화입니다. 'conversations/{conversationId}'로 해결합니다.
|
쿼리 매개변수
매개변수 |
forceFallback |
boolean
선택사항입니다. 다른 메시지 콘텐츠 대신 지정된 대체 텍스트를 전송하는 플래그입니다. 출시되지 않은 에이전트만 사용할 수 있습니다. 플래그가 true이고 대체 텍스트가 지정되지 않으면 Business Messages에서 오류를 반환합니다.
|
요청 본문
요청 본문에는 Message
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 새로 생성된 Message
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/businessmessages
자세한 내용은 OAuth 2.0 개요를 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[null,null,["최종 업데이트: 2023-12-01(UTC)"],[[["Sends a message from an agent to a user within a specific conversation."],["Returns a `PERMISSION DENIED` error if the conversation doesn't exist or the agent isn't authorized."],["Allows sending fallback text instead of the main message content for non-launched agents using the `forceFallback` query parameter."],["Requires the `https://www.googleapis.com/auth/businessmessages` OAuth scope for authorization."],["Uses the `POST` method with the URL `https://businessmessages.googleapis.com/v1/{parent=conversations/*}/messages` to send the message."]]],[]]