আমরা 31 জুলাই, 2024-এ Google বিজনেস মেসেজ বন্ধ করে দেব।
এখানে আরও পড়ুন।
UserMessage
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একজন ব্যবহারকারীর কাছ থেকে এজেন্টকে পাঠানো একটি বার্তা।
UserMessage
message
অবজেক্টের data
ক্ষেত্রে উপস্থিত হয় যা এজেন্টরা গ্রহণ করে। data
ক্ষেত্র হল একটি বেস64-এনকোডেড স্ট্রিং যা এজেন্টদের অবশ্যই বাইটে রূপান্তর করতে হবে এবং UserMessage
প্রোটোকল বাফারের সাথে পার্স করতে হবে।
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 "জুলু" ফর্ম্যাটে একটি টাইমস্ট্যাম্প, ন্যানোসেকেন্ড রেজোলিউশন এবং নয়টি পর্যন্ত ভগ্নাংশের সংখ্যা। উদাহরণ: "2014-10-02T15:01:23Z" এবং "2014-10-02T15:01:23.045123456Z" । |
dialogflowResponse | object ( DialogflowResponse ) ডায়ালগফ্লো প্রতিক্রিয়া। |
ইউনিয়ন ফিল্ড payload । ব্যবহারকারীর বার্তার পেলোড। payload নিম্নলিখিতগুলির মধ্যে একটি হতে পারে: |
message | object ( Message ) বার্তার বিষয়বস্তু। |
receipts | object ( Receipts ) রসিদের বিষয়বস্তু। |
userStatus | object ( UserStatus ) ব্যবহারকারীর অবস্থা বিষয়বস্তু. |
surveyResponse | object ( SurveyResponse ) জরিপ প্রতিক্রিয়া. |
suggestionResponse | object ( SuggestionResponse ) পরামর্শ প্রতিক্রিয়া. |
authenticationResponse | object ( AuthenticationResponse ) প্রমাণীকরণ প্রতিক্রিয়া. |
ব্যবহারকারীর অবস্থা
একটি ব্যবহারকারীর অবস্থা।
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 "জুলু" ফর্ম্যাটে একটি টাইমস্ট্যাম্প, ন্যানোসেকেন্ড রেজোলিউশন এবং নয়টি পর্যন্ত ভগ্নাংশের সংখ্যা। উদাহরণ: "2014-10-02T15:01:23Z" এবং "2014-10-02T15:01:23.045123456Z" । |
ইউনিয়ন ক্ষেত্রের status । status নিম্নলিখিতগুলির মধ্যে একটি হতে পারে: |
isTyping | boolean ব্যবহারকারী টাইপ করছে কিনা। |
requestedLiveAgent | boolean ব্যবহারকারী একটি লাইভ এজেন্ট অনুরোধ করেছেন কিনা। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eAgents receive user messages within the \u003ccode\u003edata\u003c/code\u003e field of a \u003ccode\u003emessage\u003c/code\u003e object, encoded as base64 strings.\u003c/p\u003e\n"],["\u003cp\u003eAgents need to decode the \u003ccode\u003edata\u003c/code\u003e field and parse it using the \u003ccode\u003eUserMessage\u003c/code\u003e protocol buffer to access the message content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUserMessage\u003c/code\u003e object contains various fields like \u003ccode\u003erequestId\u003c/code\u003e, \u003ccode\u003econversationId\u003c/code\u003e, \u003ccode\u003eagent\u003c/code\u003e, \u003ccode\u003econtext\u003c/code\u003e, and more to provide context about the message.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epayload\u003c/code\u003e field within \u003ccode\u003eUserMessage\u003c/code\u003e can contain different types of user interactions, such as a regular message, receipts, user status (like typing or requesting a live agent), survey responses, suggestion responses, and authentication responses.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUserStatus\u003c/code\u003e provides information about the user's current state, including whether they are typing or have requested a live agent.\u003c/p\u003e\n"]]],[],null,[]]