গুগল চ্যাটের সাথে বিকাশ করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই পৃষ্ঠাটি Google Chat API এবং Google Chat অ্যাপগুলির একটি ওভারভিউ প্রদান করে৷
Google Chat API ওভারভিউ
Chat API-এ gRPC পরিষেবা বা REST রিসোর্স এবং পদ্ধতি রয়েছে যা স্পেস, স্পেস মেম্বার, মেসেজ, মেসেজ রিঅ্যাকশন, মেসেজ অ্যাটাচমেন্ট, স্পেস ইভেন্ট এবং ইউজার রিড স্টেট সহ চ্যাটে অ্যাক্সেস দেয়।
ধারণা
নিম্নলিখিত বিভাগটি Chat API-এর জন্য পরিষেবা, সংস্থান এবং পদ্ধতিগুলিকে সংজ্ঞায়িত করে:
- স্পেস
স্পেস হল এমন জায়গা যেখানে মানুষ এবং অ্যাপ কথোপকথন করতে পারে এবং ফাইল শেয়ার করতে পারে। বিভিন্ন ধরনের স্পেস আছে। সরাসরি বার্তা (DMs) হল দুই ব্যবহারকারী বা একজন ব্যবহারকারী এবং একটি চ্যাট অ্যাপের মধ্যে 1:1 কথোপকথন। গ্রুপ চ্যাট হল তিন বা ততোধিক ব্যবহারকারী এবং চ্যাট অ্যাপের মধ্যে কথোপকথন। নামযুক্ত স্থানগুলি স্থায়ী স্থান যেখানে লোকেরা বার্তা পাঠায়, ফাইলগুলি ভাগ করে এবং সহযোগিতা করে৷
সম্পদের উল্লেখ:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- সদস্যরা
সদস্যরা হল ব্যবহারকারী এবং চ্যাট অ্যাপ যারা যোগদান করেছে বা একটি স্পেসে আমন্ত্রিত হয়েছে।
সম্পদের উল্লেখ:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- বার্তা
বার্তাগুলি স্পেসগুলিতে পোস্ট করা পাঠ্য এবং কার্ড যোগাযোগ অন্তর্ভুক্ত করে৷ বার্তাগুলির সাথে ফাইল সংযুক্ত থাকতে পারে৷ লোকেরা তাদের সাথে ইমোজি যুক্ত করে বার্তাগুলিতে প্রতিক্রিয়া জানাতে পারে।
সম্পদের উল্লেখ:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- প্রতিক্রিয়া
প্রতিক্রিয়াগুলি ইমোজিগুলিকে প্রতিনিধিত্ব করে যা লোকেরা একটি বার্তায় প্রতিক্রিয়া জানাতে ব্যবহার করে, যেমন 👍, 🚲, এবং 🌞৷
সম্পদের উল্লেখ:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- কাস্টম ইমোজি
কাস্টম ইমোজি Google Chat-এ সংস্থার মধ্যে তৈরি এবং শেয়ার করা কাস্টম ইমোজির প্রতিনিধিত্ব করে। কাস্টম ইমোজি একটি বার্তার সামগ্রীতে অন্তর্ভুক্ত করা যেতে পারে বা একটি বার্তায় প্রতিক্রিয়া জানাতে ব্যবহার করা যেতে পারে।
সম্পদের উল্লেখ:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- মিডিয়া এবং সংযুক্তি
মিডিয়া Google চ্যাটে আপলোড করা একটি ফাইলকে উপস্থাপন করে, যেমন ছবি, ভিডিও এবং নথি।
মিডিয়া রিসোর্স রেফারেন্স (RPC-তে অনুপলব্ধ):
সংযুক্তিগুলি হল বার্তাগুলির সাথে সংযুক্ত মিডিয়ার (ফাইল) উদাহরণ৷
সম্পদের উল্লেখ:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- মহাকাশ ঘটনা
স্পেস ইভেন্টগুলি একটি স্থান বা এর শিশু সম্পদের পরিবর্তনগুলিকে প্রতিনিধিত্ব করে, এর সদস্য, বার্তা এবং প্রতিক্রিয়া সহ।
সম্পদের উল্লেখ:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- ব্যবহারকারী পড়া অবস্থা
ইউজার রিড স্টেট হল সিঙ্গলটন রিসোর্স যা Google চ্যাট স্পেসে বা মেসেজ থ্রেডে নির্দিষ্ট ব্যবহারকারীর শেষ পঠিত মেসেজ সম্পর্কে বিশদ বিবরণ উপস্থাপন করে।
স্পেস রিড স্টেট রিসোর্স রেফারেন্স:
থ্রেড পড়া রাষ্ট্র সম্পদ রেফারেন্স:
উদাহরণস্বরূপ ব্যবহার, দেখুন:
- ব্যবহারকারী স্থান বিজ্ঞপ্তি সেটিংস
ইউজার স্পেস নোটিফিকেশন সেটিংস হল সিঙ্গলটন রিসোর্স যা Google Chat স্পেসে একটি নির্দিষ্ট ব্যবহারকারী বিজ্ঞপ্তি সেটিংস উপস্থাপন করে।
সম্পদের উল্লেখ:
প্রমাণীকরণ
চ্যাট API কল করার জন্য প্রমাণীকরণ প্রয়োজন। প্রতিটি চ্যাট এপিআই পদ্ধতিতে হয় ব্যবহারকারীর প্রমাণীকরণ (ব্যবহারকারীর পক্ষ থেকে ক্রিয়া সম্পাদন বা ডেটা অ্যাক্সেস করতে) বা অ্যাপ প্রমাণীকরণ (একটি চ্যাট অ্যাপ হিসাবে ক্রিয়া সম্পাদন বা ডেটা অ্যাক্সেস করতে) প্রয়োজন। কিছু পদ্ধতি ব্যবহারকারীর প্রমাণীকরণ এবং অ্যাপ প্রমাণীকরণ উভয়ই সমর্থন করে।
চ্যাটে প্রমাণীকরণ সম্পর্কে আরও জানতে, প্রমাণীকরণ ওভারভিউ দেখুন।
ক্লায়েন্ট লাইব্রেরি
বেশিরভাগ ডেভেলপারদের জন্য Google Chat API কল করার প্রস্তাবিত উপায় হল আপনার পছন্দের ভাষা যেমন Python, Java, বা Node.js এর জন্য আমাদের আনুষ্ঠানিকভাবে সমর্থিত ক্লাউড ক্লায়েন্ট লাইব্রেরি ।
আপনি যদি Google Apps স্ক্রিপ্ট দিয়ে কোডিং করেন, তাহলে ক্লায়েন্ট লাইব্রেরি ইনস্টল করার পরিবর্তে উন্নত চ্যাট পরিষেবা ব্যবহার করুন।
চ্যাট অ্যাপ তৈরি করুন
চ্যাট API আপনাকে Google Chat অ্যাপ তৈরি করতে দেয় যা আপনার পরিষেবা এবং সংস্থানগুলি সরাসরি Google Chat-এ নিয়ে আসে। আপনি নিম্নলিখিত যে কোনো একটি করতে চ্যাট অ্যাপ তৈরি করতে পারেন:
- ব্যবহারকারীর দ্বারা প্রবেশ করা কাঠামোগত বা বিনামূল্যে পাঠ্য প্রশ্নের উপর ভিত্তি করে তথ্য পুনরুদ্ধার করুন।
- ব্যবহারকারী দ্বারা প্রদত্ত তথ্য ব্যবহার করে ঘটনা প্রতিবেদন বা অন্যান্য নিদর্শন তৈরি করুন।
- দলগত সহযোগিতা বাড়ান, যেমন "টিম মেমরি" বা সময়সূচী সংস্থান প্রদান করা।
আপনি নিম্নলিখিতগুলি সহ বিভিন্ন আর্কিটেকচার শৈলী ব্যবহার করে আপনার চ্যাট অ্যাপটি ডিজাইন করতে পারেন:
- ইন্টারেক্টিভ অ্যাপস : ব্যবহারকারীর মিথস্ক্রিয়ায় সাড়া দিন, যেমন @উল্লেখ বা স্ল্যাশ কমান্ড, এবং তথ্য উপস্থাপন করুন বা কার্ড এবং ডায়ালগ সহ একটি ওয়ার্কফ্লো মাধ্যমে ব্যবহারকারীদের গাইড করুন।
- কমান্ড-লাইন অ্যাপস বা ওয়েবহুক : অন্য সিস্টেম থেকে একটি স্পেসে সক্রিয় বার্তা পাঠান, যেমন অ্যালার্ম বা বিজ্ঞপ্তি। ব্যবহারকারীরা এই ধরনের অ্যাপের সাথে সরাসরি ইন্টারঅ্যাক্ট করতে পারে না।
- ইভেন্ট-চালিত অ্যাপ্লিকেশানগুলি : সদস্যতা নিন এবং একটি চ্যাট স্পেসের কার্যকলাপে প্রতিক্রিয়া জানান, যেমন একটি নতুন সদস্য যোগদান। একটি ইভেন্টের প্রতিক্রিয়া হিসাবে, অ্যাপটি একটি বার্তা পাঠাতে বা অন্য কাজ সম্পাদন করতে পারে।
আপনার চ্যাট অ্যাপ ডিজাইন করার বিষয়ে বিস্তারিত জানার জন্য, একটি Google Chat অ্যাপ আর্কিটেকচার বেছে নিন দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-04 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-04 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eGoogle Chat apps integrate services directly into chats, enabling users to access information and take action without leaving the conversation.\u003c/p\u003e\n"],["\u003cp\u003eThese apps support various functionalities, including workflow management, data collection, and interactive elements like dialogs and slash commands.\u003c/p\u003e\n"],["\u003cp\u003eChoose from interactive, non-interactive, or event-driven architectures to build apps that cater to your specific needs and use cases.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Chat apps can be built using various platforms like AppSheet, Google Apps Script, and Dialogflow.\u003c/p\u003e\n"],["\u003cp\u003eAccess to user data beyond basic identity requires authentication and user consent, ensuring privacy and security.\u003c/p\u003e\n"]]],["Google Chat apps integrate services directly into conversations, allowing users to access information and perform actions without leaving the chat. These apps can send text or card messages within spaces or direct messages. They can be interactive, responding to mentions and commands, or non-interactive, sending messages without user interaction. Apps can retrieve information, file tickets, and coordinate team efforts. Developers can build these apps using diverse platforms, manage deployments, and publish them on the Google Workspace Marketplace.\n"],null,["# Develop with Google Chat\n\nThis page provides an overview of the Google Chat API and Google Chat apps.\n\nGoogle Chat API overview\n------------------------\n\nThe Chat API consists of\n[gRPC services or REST resources and methods](https://cloud.google.com/apis/docs/client-libraries-explained)\nthat grant access to Chat, including spaces, space members,\nmessages, message reactions, message attachments, space events, and user read\nstates.\n\n### Concepts\n\nThe following section defines the services, resources, and methods for the\nChat API:\n\n*Spaces*\n\n: *Spaces* are places where people and apps can converse and share files. There\n are several types of spaces. Direct messages (DMs) are 1:1 conversations\n between two users or a user and a Chat app. Group\n chats are conversations between three or more users and\n Chat apps. Named spaces are persistent places where people send\n messages, share files, and collaborate.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.Space)\n - [REST reference](/workspace/chat/api/reference/rest/v1/spaces)\n\n: For example usage, see:\n\n - [Create a space](/workspace/chat/create-spaces)\n - [Set up a space](/workspace/chat/set-up-spaces)\n - [Get a space](/workspace/chat/get-spaces)\n - [List spaces](/workspace/chat/list-spaces)\n - [Update a space](/workspace/chat/update-spaces)\n - [Delete a space](/workspace/chat/delete-spaces)\n - [Find a direct message (DM)](/workspace/chat/find-direct-message-in-spaces)\n\n*Members*\n\n: *Members* are users and Chat apps that have joined or are\n invited to a space.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.Membership)\n - [REST reference](/workspace/chat/api/reference/rest/v1/spaces.members)\n\n: For example usage, see:\n\n - [Create a membership](/workspace/chat/create-members)\n - [Get a membership](/workspace/chat/get-members)\n - [List memberships](/workspace/chat/list-members)\n - [Update a membership](/workspace/chat/update-members)\n - [Delete a membership](/workspace/chat/delete-members)\n\n*Messages*\n\n: *Messages* include\n [text](/workspace/chat/api/reference/rest/v1/spaces.messages)\n and\n [card](/workspace/chat/api/reference/rest/v1/cards)\n communications posted in spaces. Messages can have files attached to them.\n People can react to messages by appending emoji to them.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.Message)\n - [REST reference](/workspace/chat/api/reference/rest/v1/spaces.messages)\n\n: For example usage, see:\n\n - [Create a message](/workspace/chat/create-messages)\n - [Get a message](/workspace/chat/get-messages)\n - [List messages](/workspace/chat/list-messages)\n - [Update a message](/workspace/chat/update-messages)\n - [Delete a message](/workspace/chat/delete-messages)\n\n*Reactions*\n\n: *Reactions* represent the emoji people use to react to a message, such as\n 👍, 🚲, and 🌞.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.Reaction)\n - [REST reference](/workspace/chat/api/reference/rest/v1/spaces.messages.reactions)\n\n: For example usage, see:\n\n - [Create a reaction](/workspace/chat/create-reactions)\n - [List reactions](/workspace/chat/list-reactions)\n - [Delete a reaction](/workspace/chat/delete-reactions)\n\n*Custom emoji*\n\n: *Custom emoji* represent custom emoji created and shared within the\n organization in Google Chat. Custom emoji can be included in the content of\n a message or used to react to a message.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.CustomEmoji)\n - [REST reference](/workspace/chat/api/reference/rest/v1/customEmojis)\n\n: For example usage, see:\n\n - [Create a custom emoji](/workspace/chat/create-custom-emoji)\n - [Delete a custom emoji](/workspace/chat/delete-custom-emoji)\n - [Get details about a custom emoji](/workspace/chat/get-custom-emoji)\n - [List custom emojis in an organization](/workspace/chat/list-custom-emojis)\n\n*Media and attachments*\n\n: *Media* represents a file uploaded to Google Chat, like images, videos, and\n documents.\n\n: Media resource reference (Unavailable in RPC):\n\n - [REST reference](/workspace/chat/api/reference/rest/v1/media)\n\n: *Attachments* are instances of media (files) attached to messages.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.Attachment)\n - [REST reference](/workspace/chat/api/reference/rest/v1/spaces.messages.attachments)\n\n: For example usage, see:\n\n - [Upload media as an attachment](/workspace/chat/upload-media-attachments)\n - [Download media as an attachment](/workspace/chat/download-media-attachments)\n - [Get an attachment](/workspace/chat/get-media-attachments)\n\n*Space events*\n\n: *Space events* represent changes to a space or its\n child resources, including its members, messages, and reactions.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.SpaceEvent)\n - [REST reference](/workspace/chat/api/reference/rest/v1/spaces.spaceEvents)\n\n: For example usage, see:\n\n - [Get space read state](/workspace/chat/get-space-read-state)\n - [Update space read state](/workspace/chat/update-space-read-state)\n - [Get thread read state](/workspace/chat/get-thread-read-state)\n\n*User read states*\n\n: *User read states* are singleton resources that represent details about a\n specified user's last read message in a Google Chat space or a message\n thread.\n\n: Space read state resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.SpaceReadState)\n - [REST reference](/workspace/chat/api/reference/rest/v1/users.spaces)\n\n: Thread read state resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.ThreadReadState)\n - [REST reference](/workspace/chat/api/reference/rest/v1/users.spaces.threads)\n\n: For example usage, see:\n\n - [Get space read state](/workspace/chat/get-space-read-state)\n - [Update space read state](/workspace/chat/update-space-read-state)\n - [Get thread read state](/workspace/chat/get-thread-read-state)\n\n*User space notification settings*\n\n: *User space notification settings* are singleton resources that represent a\n specified user notification settings in a Google Chat space.\n\n: Resource reference:\n\n - [RPC reference](/workspace/chat/api/reference/rpc/google.chat.v1#google.chat.v1.SpaceNotificationSetting)\n - [REST reference](/workspace/chat/api/reference/rest/v1/users.spaces.spaceNotificationSetting)\n\n### Authentication\n\nCalling the Chat API requires authentication. Each\nChat API method requires either\n[user authentication](/workspace/chat/authenticate-authorize-chat-user)\n(to perform actions or access\ndata on behalf of a user) or\n[app authentication](/workspace/chat/authenticate-authorize-chat-app)\n(to perform actions or access data as a Chat app). Some\nmethods support both user authentication and app authentication.\n\nTo learn more about authentication in Chat, see\n[Authentication overview](/workspace/chat/authenticate-authorize).\n\n### Client libraries\n\nThe recommended way for most developers to call the Google Chat API\nis with our officially supported\n[Cloud Client Libraries](/workspace/chat/libraries)\nfor your preferred language, like Python, Java, or Node.js.\n\nIf you're coding with Google Apps Script, use the\n[Advanced Chat service](/apps-script/advanced/chat)\ninstead of installing a client library.\n\nBuild Chat apps\n---------------\n\nThe Chat API lets you build Google Chat apps that bring your\nservices and resources right into Google Chat. You can build\nChat apps to do any of the following:\n\n- Retrieve information based on structured or free text queries entered by the user.\n- Generate incident reports or other artifacts, using information provided by the user.\n- Enhance team collaboration, such as providing \"team memory\" or scheduling resources.\n\nYou can design your Chat app using several different\narchitecture styles, including the following:\n\n- **Interactive apps**: Respond to user interaction, such as @mentions or slash commands, and present information or guide users through a workflow with cards and dialogs.\n- **Command-line apps or webhooks**: Send proactive messages, such as alarms or notifications, from another system into a space. Users can't directly interact with this type of app.\n- **Event-driven apps**: Subscribe to and react to activity in a Chat space, such as a new member joining. In response to an event, the app can send a message or perform another action.\n\nFor details about designing your Chat app, see\n[Choose a Google Chat app architecture](/workspace/chat/structure).\n\nRelated topics\n--------------\n\n- [Explore Google Chat app samples](/workspace/chat/samples).\n- [Build interactive Google Chat apps](/workspace/chat/interact-users-overview).\n- [Choose a Google Chat app architecture](/workspace/chat/structure).\n\n|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Want to see the Google Chat API in action? The Google Workspace Developers channel offers videos about tips, tricks, and the latest features. [Subscribe now](https://www.youtube.com/channel/UCUcg6az6etU_gRtZVAhBXaw) |"]]