new_releases 更新:查看
版本資訊瞭解新功能和產品更新。
REST Resource: phones.dialogflowMessages
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:DialogflowEvent
RBM 平台觸發的 Dialogflow 事件。
透過事件,虛擬服務專員可以在不使用語言做為輸入內容的情況下比對意圖。
參數可用來提供個人化回應。舉例來說,如果輸入內容為 { "eventName": "welcome_event", "parameters": { "name": "Sam" } }
,Dialogflow 虛擬服務專員就可以建立回應 "Hello Sam! What can I do for you today?"
。
JSON 表示法 |
{
"name": string,
"eventName": string,
"parameters": {
object
},
"languageCode": string
} |
欄位 |
name |
string
這個欄位是由 RBM 平台設定。建立服務專員訊息時,請勿加入這個參數。欄位會解析「phones/{E.164}/dialogflowMessages/{messageId}」,其中 {E.164} 是使用者的電話號碼 (採用 E.164 格式),{messageId} 則是 RBM 代理程式訊息的服務專員指派 ID。
|
eventName |
string
事件的專屬 ID。例如 RBM_WELCOME_EVENT 。
|
parameters |
object (Struct format)
(選用) 與事件相關聯的參數。
|
languageCode |
string
這項查詢的語言。如需語言代碼清單,請參閱語言支援。您必須先在 Dialogflow 控制台中啟用該語言,Dialogflow 虛擬服務專員才能使用語言。 同一個工作階段中的查詢可以指定不同的語言。如未指定語言,Dialogflow 會使用代理程式的預設語言。不一定要指定相同的語言。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eDialogflow events enable agents to match intents without relying on language input, using event triggers from the RBM Platform.\u003c/p\u003e\n"],["\u003cp\u003eParameters in Dialogflow events, such as names, allow for personalized responses, improving user experience.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eeventName\u003c/code\u003e field is a unique identifier for each event, like \u003ccode\u003eRBM_WELCOME_EVENT\u003c/code\u003e, and \u003ccode\u003eparameters\u003c/code\u003e are optional fields.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e field is set by the RBM platform and contains phone number information, while the \u003ccode\u003elanguageCode\u003c/code\u003e field specifies the language of the query.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecreate\u003c/code\u003e method is used to prompt a Dialogflow agent to send messages through an RBM agent.\u003c/p\u003e\n"]]],[],null,["# REST Resource: phones.dialogflowMessages\n\nResource: DialogflowEvent\n-------------------------\n\nDialogflow event triggered by the RBM Platform.\n\nWith [events](https://dialogflow.com/docs/events), an agent can match an [intent](https://dialogflow.com/docs/intents) without using language as an input.\n\nParameters enable personalized responses. For example, with the input `{ \"eventName\": \"welcome_event\", \"parameters\": { \"name\": \"Sam\" } }`, a Dialogflow agent can create the response `\"Hello Sam! What can I do for you today?\"`.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"eventName\": string, \"parameters\": { object }, \"languageCode\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` This field is set by the RBM platform. Don't include it when creating an agent message. The field resolves \"phones/{E.164}/dialogflowMessages/{messageId}\", where {E.164} is the user's phone number in E.164 format and {messageId} is the agent-assigned ID of the RBM agent message. |\n| `eventName` | `string` The unique identifier of the event. For example, `RBM_WELCOME_EVENT`. |\n| `parameters` | `object (`[Struct](https://protobuf.dev/reference/protobuf/google.protobuf/#struct)` format)` (Optional) Parameters associated with the event. |\n| `languageCode` | `string` The language of this query. For a list of language codes, see [Language Support](https://dialogflow.com/docs/languages). Before a Dialogflow agent can use a language, the language must be enabled in the [Dialogflow console](https://console.dialogflow.com). Queries in the same session can specify different languages. If a language isn't specified, Dialogflow uses the agent's default language. do not necessarily need to specify the same language. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|\n| ### [create](/business-communications/rcs-business-messaging/reference/rest/v1/phones.dialogflowMessages/create) | Prompts a [Dialogflow](https://dialogflow.com) agent to send messages through an RBM agent. |"]]