Genesys Cloud (formerly PureCloud)

Discussion Thread View
Expand all | Collapse all

Passing data to Dialogflow bot

  • 1.  Passing data to Dialogflow bot

    Posted 06-09-2020 14:15
    We are experimenting with a dialogflow bot with Genesys Purecloud. Is there a way we can send data/ string to the dialogflow bot?
    And also return a string from the dialogflow bot to the genesys?
    #Integrations

    ------------------------------
    Kartik Sura
    Uber
    ------------------------------


  • 2.  RE: Passing data to Dialogflow bot

    Posted 06-13-2020 16:26
    I don't think the ability to pass in information to the bot is available yet.  I do know that if you fill an action or parameter and check the box to end the conversation, those parameters will be sent back to Architect as variables underneath each Intent.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Passing data to Dialogflow bot

    Posted 08-26-2020 02:56
    Hi Kartik, we need to send data (like CallAni) from Architect to Google Dialogflow bot, have you solved the issue?

    Thanks in advanced and best regards

    ------------------------------
    Alberto Ochoa
    Indra Soluciones Tecnologías de la Información, S.L.
    ------------------------------



  • 4.  RE: Passing data to Dialogflow bot

    Posted 08-26-2020 03:12
    We did solve for CallAni. The genesys conversation ID is already sent to the bot. We use that to call Genesys conversation API to get the call details, which includes the ANI. You have to do some work for fetching the access tokens. 

    --
    ~Kartik





  • 5.  RE: Passing data to Dialogflow bot

    Posted 08-26-2020 03:30
    Thanks a lot, Kartik

    ------------------------------
    Alberto Ochoa
    Indra Soluciones Tecnologías de la Información, S.L.
    ------------------------------



  • 6.  RE: Passing data to Dialogflow bot

    Posted 09-22-2020 12:15
    Hello Kartik,

    Do you have a sample of the code on how to get the Genesys-Conversation-id from fulfilling? I imagine that's how you are accessing the data.

    And what library are you using to connect to the Purecloud API?

    An example would be really helpfull since I'm trying to access data from a contact list and We are unable to do so for the moment.


    Regards,
    Diego Pereira

    ------------------------------
    Diego Pereira
    CrossNet S.A.
    ------------------------------



  • 7.  RE: Passing data to Dialogflow bot

    Posted 09-22-2020 12:59
    We use the REST API.
    1. For getting the ani details:
    host: "api.mypurecloud.com",
    path: "/api/v2/conversations" // /${cid}
    headers: {
    'Authorization': `Bearer ${accessToken}`
    }
    You will get the conversation id from the context in the bot. 

    2.You need to get the access token from
      host: "login.mypurecloud.com",
    path: "/oauth/token"







  • 8.  RE: Passing data to Dialogflow bot

    GENESYS
    Posted 09-23-2020 11:01
    Genesys has a GitHub repository with example code for voicebots. Of specific interested to you would be the Dialogflow fulfillment example.
    https://github.com/MyPureCloud/voicebot-examples/tree/master/dialogflow-fulfillment/aws-lambda
    It shows how you can use a AWS Lambda for fulfillment to get ANI and also to update a conversation with attributes.

    ------------------------------
    Brad Wehmeier
    Genesys - Employees
    ------------------------------