# REST Resource: phones.dialogflowMessages

## Resource: DialogflowEvent

Dialogflow event triggered by the RCS for Business platform.

With [events](https://dialogflow.com/docs/events), an agent can match an [intent](https://dialogflow.com/docs/intents) 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?"`.

| JSON representation |
|---|
| ``` { "name": string, "eventName": string, "parameters": { object }, "languageCode": string } ``` |

| Fields ||
|---|---|
| `name` | `string` This field is set by the RCS for Business 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 RCS for Business agent message. |
| `eventName` | `string` The unique identifier of the event. For example, `RBM_WELCOME_EVENT`. |
| `parameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` (Optional) Parameters associated with the event. |
| `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. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/business-communications/rcs-business-messaging/reference/rest/v1/phones.dialogflowMessages/create` | Prompts a [Dialogflow](https://dialogflow.com) agent to send messages through an RCS for Business agent. |