Git Product home page Git Product logo

Comments (2)

mekpavit avatar mekpavit commented on July 17, 2024

Hi @MANASAMKRISHNA. First of all, sorry for my late reply. I didn't see this issue until you mentioned me on the other issue. BTW, here is my answers:

  1. Are we supposed to develop a method to handle incoming requests within dialoglow-integration/server.js?
  • IMO, you should not add more handlers on this HTTP server anymore. But I think it's impossible for standalone Dialogflow to captures some parts of information from the HTTP request and responses based on that information. So, if you want Dialogflow to response based on the user information on HTTP request, I believe you have to
    1. Develop a fulfillment webhook to add more flexibility on how your Dialogflow agent will response to users. Details are here. This fulfillment webhook will extract the user information (In this case, extract "John") from the HTTP request sent from Dialogflow, perform some logics to create a response message (in this case, create a sentence, "Hello John"), and response the message back to Dialogflow.
    2. Deploy you fulfillment webhook anywhere that give you a HTTPS domain
    3. Connect your Dialogflow agent with this fulfillment webhook. You can see how-to here.
    4. Set up your intents to use a webhook fulfillment
  1. Where should we look for the said user information?
  • If you've developed the fulfillment webhook, and start to receive some HTTP requests from Dialogflow. I suggest you to print out the HTTP request body. The user information will be somewhere in originalDetectIntentRequest field.

from dialogflow-integrations.

barissecen avatar barissecen commented on July 17, 2024

We are trying to integrate Dialogflow chatbot with Microsoft Teams. We followed this tutorial (https://github.com/GoogleCloudPlatform/dialogflow-integrations/tree/master/skype)
We got to a point where we’re able to send text-based basic intent mapped questions, and they’re working flawlessly.

Is there a way to extract user information out of Teams?

For example, in the Welcome Intent, instead of bot saying “Hello user”, is there a way to make it say “Hello John”?

A little bit of research led us to this (#37 (comment)) but we find it a little bit confusing. Are we supposed to develop a method to handle incoming requests within dialoglow-integration/server.js? If so, where should we look for the said user information? Any pointers will help.

TIA.

Hi Sorry for the late answer. You can get the user name from here; originalDetectIntentRequest.payload.from.name

from dialogflow-integrations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.