REST Resource: phones.dialogflowMessages

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?".

JSON representation
{
  "name": string,
  "eventName": string,
  "parameters": {
    object
  },
  "languageCode": string
}
Fields
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.

eventName

string

The unique identifier of the event. For example, RBM_WELCOME_EVENT.

parameters

object (Struct format)

(Optional) Parameters associated with the event.

languageCode

string

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.

Methods

create

Prompts a Dialogflow agent to send messages through an RBM agent.