integrating google assistant with other android apps [closed] - node.js

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is it possible to open an android application and perform a certain task as a response to google assistant chat. how to code the google assistant app in node.js for that?

The short answer is no. And in most cases, you don't want to do this anyway. The Assistant runs on multiple platforms, not just Android, and is meant for more of a conversational user interface.
A slightly longer answer is that, while it is possible, it would be a bad idea. The Assistant is good for hands-free, and sometimes eyes-free, operation, and directing the user to an application treats it just as a launcher. The better solution would be to move some of the logic you have in your app into a webhook and provide a conversational way to get the same information.
If you insist on going to an app, however, there are two ways you can do this:
You can have your webhook (node.js in your case) trigger a notification using something like Firebase Cloud Messaging which would either create a notification on your device or trigger an intent in your app.
You can return a basic card containing a link URL that will trigger an Intent in your app.

Related

Can I start a chatbot conversation in Dialogflow using external events? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'd like to make my bot initiate a conversation with the user based on external events. I read the documentation, but I'm still not sure if this is possible, I feel like the conversation only starts on behalf of the user.
Thanks
Your assumption is correct, conversations must begin by the user invoking your bot.
However, you can use push notifications to encourage a user to engage with the bot. Also you can use a push notification to deep link into your bot and open a specific intent. You would have to write a script that depends on your external trigger to send a notification, and that would depend on your external trigger. You can read more about notifications for Google Assistant here:
https://codelabs.developers.google.com/codelabs/actions-user-engagement/

Is there a way to add quick replies/suggestion chips (like actions on Google) in Discord chat [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am making a Discord bot, and I was wondering if there was a way to add suggestion chips/quick replies so that people could click the bubble and that would be sent as a reply.
My end goal is to use DialogFlow's Actions on Google ability to create suggestion buttons, but that would only be possible if discord supported quick replies in the first place.
I am using discord.js for the bot as of now.
One other thing I was thinking was to add some sort of HTML snippet inside bot response, that would call another webpage which has the fully functioning bot in it, all displayed inside Discord. Or HTML embeds that would have suggestion chips that could then be sent as a response.
I don't think suggestion buttons like in the image are possible. However, reactions are commonly used.
For example, the bot can say
How can I assist you today?
1️⃣: Just browsing!
2️⃣: I have question
3️⃣: Give me a Product Tour
and the bot can respond when the user reacts with the appropriate emoji.
For more information on how to implement this, see the Discord.js guide (archive).

Is where a way we can integrate google dialogflow chat bot with our WebApps? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is where a way we can integrate google dialogflow chat bot with our WebApps?
I would like to create a chat bot and integrate in our webapp, so that when user type something on that page, that would reply with data stored in DB.
Please suggest if it can be done and steps. Or any other easy integration and chat bot design can be done.
I am new to this.
There is an API which you can use to integrate dialogflow chatbot in webapps
https://cloud.google.com/dialogflow/docs/quick/api
Above link shows you how to interact with an agent by using the REST API using the client libraries.
https://cloud.google.com/dialogflow/docs/reference/rest/v2-overview
If you want to integrate with your own backend (to store or provide responses) a very popular approach is to use the DialogFlow Fulfillment.
create a DialogFlow Agent
configure the Webhook URL with your application/service implementing the webhook or use the inline capabilities (Cloud Functions for Firebase)
In terms of integrating on your web site (or web application) you have various options:
DialogFlow web widget (for testing the integration only)
use a Web plugin like Kommunicate or Botcopy
build your own web widget, indeed possible with the Google api (see other answer)
The Dialogflow app of https://board.support/dialogflow should work fine. You have the full source code and the license allows you to edit it.
In your case, you may need to contact the author for a custom license due it looks like you want to integrate it into an app that is sold/shared publicly.
Disclaimer: I work for Support Board

Google action - deep linking [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am implementing app for google assistant . I build simple conversation app with the help of Api.ai tool and it works fine .
Now i want to communicate to my application(Which is installed in android devices) when user trigger particular intent(Created in Api.ai) by saying some text. Guide me to right place to achieve this.
For that, you need to use the fulfillment option of Api.ai. You will need to have a webserver for that, not just an Android app.
You first will need to enable the webhook in the Fulfillment tab:
There, you will put an url to your server that performs the action you want. Check the Actions on Google documentation to see how to respond with the correct format to give an answer to your user in the Google Assistant.
Then, you need to go to the particular intent that should trigger your server and enable the Webhook there too:

Weather API on remote server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
My idea was creating iOS applications where the user can enter a location. This location is stored in a remote database with the device id for push notifications.
Then the application on the remote server periodically checks the weather and when it's about to rain in one of the locations stored in the database it sends push notifications to all device ids for that location.
So basically I need to create iOS applications to store data (I like to call these "listeners") and a application for the server which connects to a weather api and sends notifications ("controller").
My idea on the controller is still kind of vague and I don't really know how to achieve this. Is it even a good idea to create an application that runs 24/7 on the server to checks the weather and sends notifications. And if not, what would be a good way to achieve something like this?
This should be the only way to do it in my opinion. You server could check for more people per update then the app could do it self. Also by using push notification you will make sure that you app is not running in the background (this is not even possible for your kind of app) and draining the battery.
A cron job that runs every so often that calls a web page, shell script, etc.. will also do. There are many option and there is no 1 answer.

Resources