Stay organized with collections
Save and categorize content based on your preferences.
Resource: DialogflowEvent
Dialogflow event triggered by the RBM Platform.
With events, an agent can match an intent without using language as an input.
Parameters 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?".
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.
eventName
string
The unique identifier of the event. For example, RBM_WELCOME_EVENT.
The language of this query. For a list of language codes, see Language Support. Before a Dialogflow agent can use a language, the language must be enabled in the Dialogflow console.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-14 UTC."],[[["\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. |"]]