Updates: Check the release notes for new features and product updates.

Method: phones.dialogflowMessages.create

Stay organized with collections Save and categorize content based on your preferences.

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

If Dialogflow integration isn't enabled for an RBM agent, this method returns 403 PERMISSION_DENIED.

When an RBM agent is integrated with a Dialogflow agent, this method triggers an event in the Dialogflow agent. The RBM Platform routes responses from Dialogflow to the user's device and routes messages from the user back to the Dialogflow agent.

If a Dialogflow intent defines multiple responses, the RBM Platform sends users one message per defined response.

If you contact a webhook with Dialogflow fulfillment, the fulfillment request includes the following information in the payload:

Field Description

rbm_user_phone_number

The user's phone number.

rbm_share_location_response

The user's location, if they tapped the share location suggested action.

HTTP request

POST https://rcsbusinessmessaging.googleapis.com/v1/{parent=phones/*}/dialogflowMessages

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

"phones/{E.164}", where {E.164} is the user's phone number

Query parameters

Parameters
messageIdPrefix

string

A unique prefix of RBM message IDs that result from the Dialogflow event. Dialogflow supports multiple responses for a given event. If an event triggers multiple responses, RBM forwards each response as a separate message. Each message ID shares the same prefix.

Request body

The request body contains an instance of DialogflowEvent.

Response body

If successful, the response body contains a newly created instance of DialogflowEvent.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/rcsbusinessmessaging

For more information, see the OAuth 2.0 Overview.