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
事件的唯一标识符。例如 RBM_WELCOME_EVENT 。
|
parameters |
object (Struct format)
(可选)与事件关联的参数。
|
languageCode |
string
此查询的语言。如需查看语言代码列表,请参阅语言支持。Dialogflow 代理可以使用某种语言之前,必须在 Dialogflow 控制台中启用该语言。 同一会话中的查询可以指定不同的语言。如果未指定语言,Dialogflow 将使用代理的默认语言。则不必指定相同的语言
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]