Where does the API call from the interactive card in Google Chat go? - hangouts-chat

I am trying to replicate examples from the Google Docs about Creating interactive cards in Google Chat. I have created a sample link in my card.
Sample card with a link "click me"
But once I hit "click me" I have no idea where the request goes and how to steer that it's routed to my publicly available Node.js express route on Google Cloud run.
I must have missed something about the basic bot communication. Can you help me? (Background. I am sending my card via a simple webhook at this point.)

I have found out, that my implementation was not suitable for interactive cards. If someone clicks an interactive card Google Chat will notify the creating bot at its API point specified in the Google Cloud configuration.
So posting the card via WebHook is possible. But there is not communication channel back in this scenario.
I resolved my issue by implementing it with a proper Google Chat bot.

Related

WhatsApp messaging webhook does not work in production mode

I am trying to create a connection between our WhatsApp Business account and our website where we gather all messages sent to our business on different channels (through our own app, text, WhatsApp, ...).
I've followed this tutorial (https://developers.facebook.com/docs/whatsapp/cloud-api/get-started) and have everything set up: our WhatsApp Business is working correctly, I've added a Meta App and I've set up the webhooks with a connection to my node.js backend.
When I click Test next to the "Messaging" webhook, I receive the message on my node.js backend and website. So I know this side is working as it should.
I've then used the Graph API to subscribe my Meta app to the messages with the business id of the WhatsApp with the correct permissions. When checking the subscribed apps with the {business_id}/subscribed_apps endpoint, I can see my Meta app. So I believe everything is set up correctly.
My Meta app is also set to "production".
However, when I try to send a message with my personal WhatsApp to my business WhatsApp, I receive nothing on the webhook.
I checked the logs on my server and nothing is being received, so I know it's not an issue in my node.js backend.
Is there something else I need to do to make this work? Does the Meta app need to be verified to use the webhook in production? If so, how can I do this? The guide for verification says I need a platform and login insctructions, but the Meta app is really only a webhook without an interface.
Thanks in advance.

Is there a way to integrate google chat into a website?

I am trying to implement the integration of google chat in a website. Is there a rest API for fetching and sending messages that can be connected to our google account? Right now we can fetch chats with Gmail API but that's not reliable because the receiver is not shown in the sent messages.
Thanks in advance.
I asked the google support team and here is their reply:
here is the information about Google Chat for developers:
https://developers.google.com/chat There is no option to integrate
Google Chat into a website.
Hope this thread helps you to find the answer sooner that I did.

Verification process for google picker

my dev and I would like to implement the google picker on our website. It will allow the web-visitor to upload their files from their Google drive to our website.
My dev is now trying to get the API for the google picker however they are asking for a "demo video that showcases the process to request an OAuth token" and we were wondering how we should do it when we don't have the API from google.
We are doing all of this on the staging site and we were wondering how are we suppose to do this demo video when the API is not provided and not installed.
please enlighten us, thank you!
See the question How can I make sure the verification process is as streamlined as possible? in the FAQ. It explains what the verification team is looking for with the video. Mostly it's just about showing how your product uses OAuth and the various APIs -- in your case how it asks for access to Drive, how the picker is used, etc. You're showing the integration from the user perspective.

Need Whatsapp api for sending messages from my PHP project

i want to know if there is any whatsapp api that can help me to send messages from my php project because after some research i found that whatsapp doesn't have any api for developers..
someone can help me please?
I used Google :
A quick google search with the proceeding query : "WhatsApp PHP API" gives us many results , the first result is a github page made by mgp25 a well known member of the github dev community.
Good luck!
You are absolutely right that whatsapp does not published the api for the such chatting using php .
By the way you can use the sharing uri to share text messages who have whats appp installed in their device or web chat option for whatsapp
Chat API: https://api.whatsapp.com/send?phone=15551234567
Custom URL: Scheme whatsapp://send?text=hello world
First one is used to open chat with the desired phone number and the second one is used to share some test as custom url format.
Whatsapp is now maintain by facebook and it has created a api for business to communicate with customers .
This it has launched api for whatsapp as well as for Facebook instagram .
You can have a look on the documentation portal for whatsapp api for more details
https://developers.facebook.com/docs/whatsapp/api/reference
Also there are partners of Facebook who give ready made solution to the productivity.

How can I access the Google+ hangout chat?

I want to implement a speaker queue manager that works off of the chat - see GitHub repo Q Bot for more details - but are unable to find a way to listen to chat events (and then react to them). Any hints?
There's no way to access chat from the Hangouts API.
There is, however, an open feature request for this. If you star the issue you'll be notified when it's updated.
You might be able to work around this by making your own interface in a Hangout extension to control the inputs for this app, rather than overloading the chat feature.