Class RCSBusinessMessaging.Phones.DialogflowMessages

  • Enclosing class:
    RCSBusinessMessaging.Phones

    public class RCSBusinessMessaging.Phones.DialogflowMessages
    extends java.lang.Object
    The "dialogflowMessages" collection of methods.
    • Constructor Detail

      • DialogflowMessages

        public DialogflowMessages()
    • Method Detail

      • create

        public RCSBusinessMessaging.Phones.DialogflowMessages.Create create​(java.lang.String parent,
                                                                            DialogflowEvent content)
                                                                     throws java.io.IOException
        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. Create a request for the method "dialogflowMessages.create". This request holds the parameters needed by the rcsbusinessmessaging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - "phones/{E.164}", where {E.164} is the user's phone number
        content - the DialogflowEvent
        Returns:
        the request
        Throws:
        java.io.IOException