I'm working on a Dialogflow part of a project.Some body else created the database part of project in GraphQL and now I want to connect DialogFlow intents to this database,send query and get response.As I have no idea about it and I have only the URL of database, can anybody help me on this?
Dialogflow does not provide any direct integration with backend systems except through a straightforward webhook protocol. You're responsible for building the bridge between that protocol and however you extract the data from your database - using GraphQL in your case.
Related
Working on nodejs backend with google products, I am trying to make use of google DLP to filter out bad words, so that after users send a message request, the backend can send response to the frontend if the message contains bad words. But the DLP seems only scan source from within BigQuery, Google cloud storage or Cloud datastore. Is there an api that can scan the bad words within DLP?
You can use the content methods for that.
https://cloud.google.com/dlp/docs/concepts-method-types#content-methods
Found the answer from google doc
I am trying to follow the Jokes tutorial #https://remix.run/docs/en/v1/tutorials/jokes
and I was wondering how do I fetch from a specific (back-end) API link / Database URL?
Can you provide an example (where you use Prisma)?
On the webpage it says "You can use any persistence solution you like with Remix; Firebase, Supabase, Airtable, Hasura, Google Spreadsheets, Cloudflare Workers KV, Fauna, a custom PostgreSQL, or even your backend team's REST/GraphQL APIs"
I have set the DATABASE_URL in the .env file to the API link, however I don't know how to continue from here
Please provide some code, so we can help you based on a specific question.
In general, you would fetch data inside your loader function in Remix. That function runs on your server and can be used to fetch from a database or API.
If you have trouble with Prisma, I would suggest you have a look at the tutorial you are following or look at the Prisma documentation.
You can find more information about data loading in Remix in the Remix documentation: https://remix.run/docs/en/v1/guides/data-loading
I am trying to implement a messaging feature for users on my website. So that they can send messages to each other. My website is based on NODEJS, EXPRESS, MongoDB. Any hint or reference will be a great help in this direction.
I'm learning Dialogflow right now, and I'd like to connect a bot to some frontend web code. I know about the Node.js API for Dialogflow, but for my current purposes, it seems a little over-complicated. The only functionality I need right now is sending user input to the bot and receiving the bot's response, so it seems like setting up an entire server just to communicate with the bot is pretty excessive.
Is there a way to communicate with the bot from the frontend directly, like an HTTP API? Or is the NPM package the only option?
This is the only endpoint that you need: https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/v2/projects.agent.sessions/detectIntent. As long as you get the authentication right you should be good to go.
I am using the Facebook SDK on a mobile app. After the login, I get a token (long string) from facebook. I want to use this to connect to a remove mongodb database and update or query the database there.
Am I correct in understanding that:
I need to run node.js on the remote server and then
make a connection from the app to the remote node.js, and then
have node.js query the mongodb
If yes, can someone please point me to a simple example that demonstrates this?
thanks!
What you require is API(mostly REST which understands JSON), much like the Facebook api your mobile app is already talking to. Your mobile app will also communicate with this API, which in turn connects to MongoDB and preforms desired operation.
Look here to get basic understanding of REST API
Look here for sample REST API implementation using nodejs.
I found a solution which is in line with what I need: http://www.quietless.com/kitchen/building-a-login-system-in-node-js-and-mongodb/