new_releases 更新: 新機能とサービスの更新については、
リリースノートをご覧ください。
RCS ビジネス メッセージの仕組み
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
RCS ビジネス メッセージ(RBM)エージェントは、メッセージ、
リクエスト、イベント、リクエストを分析できます。目標が
簡単なもの(配達通知の送信など)と複雑なもの(例: 商品の予約など)
エージェントはリッチカード、メディア、提案を使用して、
ユーザーとエージェントのニーズを満たす滑らかな会話を実現できます。
仕組み
エージェントとユーザーの会話の流れは、
交代で行われる 2 人の人物による会話
互いの反応を見てきました。
RBM エージェントがユーザーとの会話を開始します。ユーザーは起動できません
エージェントとの会話を開始できますが、エージェントが会話を開始すると、
ユーザーはいつでも返信できます。
エージェントは、外部トリガーを受信したときに、
できます。トリガーは何でも構いません。また、エージェントのユースケースによって異なります。
- パッケージが発送された
- ランチタイムのサンドイッチ セールを毎日送信しましょう
- ユーザーがチャットでカスタマー サポートに問い合わせる

エージェントがトリガーを受信すると、エージェントがメッセージを送信します
RCS Business Messaging API を使ってユーザーのデバイスに送信します。エージェントは
メッセージ、イベント、その他のリクエストを、HTTP として RBM API 経由でユーザーに
JSON ペイロードを含む
リクエストの例を見てみましょうユーザーがメッセージ アプリでメッセージを受信する
確認できます。
デバイスが RCS をサポートしていない場合、RBM プラットフォームは 404
エラーを返します。
エージェントは SMS などの別のテクノロジーにフォールバックする必要があります。
ユーザーがメッセージに応答するか、
event
Google の RBM サービスが、構成した
Webhook、
エージェントに情報が渡されますWebhook は、
JSON 形式でエージェントへのすべてのユーザー メッセージ、イベント、その他のリクエスト。
エージェントがメッセージを受信したら、
JSON をデコードしてレスポンスを解析します内部ロジックを使用する場合、または
自然言語理解(NLU)モジュールを使って
Dialogflow の場合、エージェントは応答を
ユーザーのメッセージを受け取り、RBM API を通じてユーザーのデバイスにレスポンスを送信します。
エージェントとユーザーの会話は、
ユーザーが応答しなくなります。
例
次の例は、ユーザーが天気を尋ねるシンプルなシナリオを示しています。
更新されます
- エージェントは、外部サービスから
人のユーザーが最新の天気情報をリクエストしました。
- エージェントがユーザーにメッセージを送信し、ユーザーのリクエストを確認する。
ユーザーの現在地を要求します。
- メッセージ アプリでユーザーはメッセージを読み、
あります。
- エージェントはレスポンスを処理し、天気情報を取得して、
メッセージを作成し、ユーザーに情報を送信します。また
エージェントは、そのユーザーが別の天気情報の天気情報も必要かどうかを尋ねます。
あります。
- ユーザーはメッセージを読み、エージェントにお礼を述べます。
- ユーザーが追加情報を要求しなかったことをエージェントが確認した場合
会話を終了します。
暗号化
ユーザーとエージェントの間で送信される RBM メッセージは、RBM エージェントとエージェントの間で暗号化されます。
Google サーバーとユーザーのサーバーとの間のできます。パートナーは
独自の暗号鍵を保有しているからです。これは、Google がメールをスキャンして、
すべてのユーザーと企業を保護します。
RBM データ セキュリティの詳細については、以下をご覧ください。
RCS ビジネス メッセージのデータ セキュリティ
次のステップ
これらのコンセプトに慣れたら、次はソリューションの
最初のエージェントを構築します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-02 UTC。
[null,null,["最終更新日 2024-09-02 UTC。"],[[["\u003cp\u003eRCS Business Messaging (RBM) agents use messages, events, and requests to communicate with users, achieving business goals through rich cards, media, and suggestions.\u003c/p\u003e\n"],["\u003cp\u003eRBM agents initiate conversations based on external triggers such as a package shipping or a user contacting customer support, sending messages through the RBM API.\u003c/p\u003e\n"],["\u003cp\u003eUser responses and events are sent to a configured webhook, which relays the information back to the agent for processing.\u003c/p\u003e\n"],["\u003cp\u003eThe agent decodes the user's response, decides on a follow-up action, and then sends its reply back to the user through the RBM API, continuing the conversation.\u003c/p\u003e\n"],["\u003cp\u003eRBM messages are encrypted between RBM agents and Google servers and between Google servers and user devices, with Google scanning messages for malicious content.\u003c/p\u003e\n"]]],[],null,["# How RCS Business Messaging works\n\nRCS Business Messaging (RBM) agents communicate with users through messages,\nevents, and requests to achieve your business goals. Whether those goals are\nsimple (such as sending delivery notifications) or complex (such as booking a\nflight), agents use rich cards, media, and suggestions to guide users through\nfluid conversations that satisfy user and agent needs.\n\nHow it works\n------------\n\nThe flow of conversation between your agent and a user is similar to a\nconversation between two people, with each party taking turns speaking,\nlistening, and responding to the other.\n\nYour RBM agent initiates conversations with users. Users can't start\nconversations with your agent, but once the agent starts a conversation, the\nuser can reply at any time.\n\nYour agents sends the first message when it receives an external trigger that\nyou configure. A trigger can be anything and depends on your agent's use case:\n\n- A package ships\n- It's time to send daily lunchtime sandwich deals\n- A user contacts customer support in chat\n\nWhen your agent receives the trigger, the agent [sends a message](/business-communications/rcs-business-messaging/guides/build/messages/send)\nto the user's device with the RCS Business Messaging API. Your agent sends all\nmessages, events, and other requests to the user through the RBM API as HTTP\nrequests with JSON payloads. The user receives the message in the Messages app\non their device.\n\nIf the device doesn't support RCS, the RBM platform returns a `404` error, and\nthe agent should fall back to another technology, such as SMS.\n\nWhen the user responds to the message or triggers an\n[event](/business-communications/rcs-business-messaging/guides/build/events),\nGoogle's RBM service sends the response to your configured\n[webhook](/business-communications/rcs-business-messaging/guides/integrate/webhooks),\nwhich passes the information back to your agent. The webhook sends\nall user messages, events, and other requests to your agent as JSON.\n\nAfter your agent [receives the message](/business-communications/rcs-business-messaging/guides/build/messages/receive),\nit decodes the JSON and parses the response. Using internal logic, or relying on\na natural language understanding (NLU) module like\n[Dialogflow](https://dialogflow.com/), your agent decides on a response to the\nuser's message and sends the response to the user's device through the RBM API.\n\nThe conversation continues between your agent and the user until it reaches an\nintended conclusion or the user stops responding.\n\n### Example\n\nThe following example shows a simple scenario where a user asks for a weather\nupdate.\n\n1. Your agent receives a trigger from an external service indicating that a user requested a weather update.\n2. Your agent sends a message to the user acknowledging the user's request and asking for the user's location.\n3. In the Messages app, the user reads the message and responds with their address.\n4. Your agent processes the response, fetches weather information, creates a conversational message, and sends the information to the user. Additionally, your agent asks if the user also wants weather information for another location.\n5. The user reads the messages and thanks the agent.\n6. Your agent acknowledges that the user didn't request additional information and ends the conversation.\n\nEncryption\n----------\n\nRBM messages sent between users and agents are encrypted between RBM agents and\nGoogle servers and between Google servers and users' devices. Partners can't use\ntheir own encryption keys because Google needs to scan messages for malicious\ncontent to protect all users and businesses.\n\nFor more information about RBM data security, refer to\n[Data security for RCS Business Messaging](/business-communications/rcs-business-messaging/support/data-security).\n\nWhat's next?\n------------\n\nOnce you're comfortable with these concepts, consider what you want your\nagent to do and [build your first agent](/business-communications/rcs-business-messaging/guides/get-started/first-agent)."]]