Comments (2)
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:
- 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
- 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.
- Deploy you fulfillment webhook anywhere that give you a HTTPS domain
- Connect your Dialogflow agent with this fulfillment webhook. You can see how-to here.
- Set up your intents to use a webhook fulfillment
- 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.
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)
- hii
- Problem with my Agent when Integrated with Twilio for WhatsApp HOT 1
- not able to edit, says I need a branch
- Sometimes , twitter integration becomes to be disconnected
- Want an option to always show SendIcon in Dialogflow Messanger.
- server.js
- CX and Twilio SMS? HOT 1
- account id
- Error
- Pass Phone Info
- How can we use facebook integration for managing multiple page with one agent?
- Getting error while trying to deploy GCP function
- [FR] Officially allow facebook persona in dialogflow (or at least mention in document about facebook persona)
- [bug] Dialogflow facebook integration not response with customer_feedback payload
- Azure-Dialogflow CX Integration-Webchat Issue-GatewayTimeout HOT 3
- MS teams-DF CX Integration- Enable Calling
- Security considerations HOT 1
- Twitter integration
- In a chatbot conversation using dialogflow cx, Is there a way to make the bot speak first? HOT 2
- Integrating Dialogflow CX with Azure Bot Service HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dialogflow-integrations.