Get users to add hangouts chat bot by clicking link - hangouts-chat

I want hangouts chat users in my company to add a hangouts chat bot by clicking on a link.
I have created a bot in my companies hangouts chat environment, and it can only communicate once a user has added it. The bot is designed to proactively chase users, so the bot always initiates the chat. It is not able to do this if the user hasn't added the bot.
I can't find a way to automatically add the bot to all users in the company (if this is actually possible and anyone knows how to do it please let me know), so I need to find a way to reduce the barrier for people to add the bot. I want to send out automated emails with a link; when clicked it will add the bot to the users hangouts chat.
Is this possible, and if so what is the format of the link?

Related

How to implement Telegram bot as a widget on your website?

I'm trying to create some sort of live chat widget, but with a Telegram bot instead of a real person on the other side. I don't know if it is possible, but ideally, there is a chat window that can be implemented on a website, and establishes a new connection with a telegram bot once you click on it. The end-user should NOT have a Telegram account. I already tried to implement Intergram but it's not exactly what I'm looking for, as it merely forwards the message to a human using webhooks, and the bot is only used as a message broker. I have heard that some customization is possible using tdlib but I'm not sure if it can help me achieve the desired result.
How should I start implementing a chat window with my bot on a website?

Google hangout chat data with out bot

Is there a way to read the data from the chat messages in DM or Group with out adding the bot the DM or Group?
Similar to the APIs that are available to programmatically access the google drive, is there a way ?
Answer:
No, there isn't.
More Information:
The only API access you can get for Hangouts chat rooms is by using a bot. You can also use a webhook, but this is only for sending messages and not receiving.
You will need to use a bot to be able to do this.

How do you ensure people add your bot to Google Chat rooms?

We have a bot on Google Chat but it seems people use it in the personal scope rather than adding to rooms. As per my understanding, there is no concept of "teams" on Google Chat. However, our bot works best with teams, ie, in rooms.
Is there a way to ensure bot is added to rooms? Also, to other bot developers out there - have you managed to replicate the success of Slack/MS Teams bots to Google Chat?
Thanks
There is no way to "force" users to use your bot in this way.
The best you could do is to detect whether the bot is in a private conversation and notify the user that it is useful as a "room" bot, not a "personal" bot. That and make sure your bot is well documented with the relevant info in hard-to-miss places.
You could do this by examining the event object which has this attribute:
space | object (Space) | The room or DM in which the event occurred.
Docs
Event Object - where you might find info related to where the bot was called from.
General Guides - for general info.

Telegram Bots: Can I now start a chat or not?

https://core.telegram.org/bots clearly says:
Bots can't initiate conversations with users. A user must either add them to a group or send them a message first.
But if I visit https://telegram.org/blog/login it says
Telegram bots are a powerful communication tool, but until today they couldn't start a conversation. Even if you wanted them to reach out to you, you had to chat them up first.
With the new login widget, moving from interacting with a website to a conversation on Telegram becomes completely frictionless.
So it is somehow possible to start a conversation via the login widget. But how do I do it?
I get a user id. Is there an api endpoint to initiate a chat with the user?
The only way to begin conversing with a Telegram bot is to start the conversation with them yourself. There's no way for the bot to start a conversation with a user themselves.
As you said, telegram clearly says there is no way for bot to start a conversation, the only thing bots can do is sending messages to an old conversation (I mean a user have to start the conversation).

Hangouts Chat - Send link to add bot to space

I am building a Google Hangouts Chat chatbot.
I need my bot to prompt users, following a dialog with another user. However, a conversation may not have been started with these users yet and I do not have permission to start one without being added to a DM space.
The current solution I envision is to prompt users by email. However, I cannot find a direct link to the bot, or that adds the bot to the user's space. Does such a link exist? Or do I have to send an email with instructions such as "Please go to chat.google.com and add the bot to a conversation"? I'm afraid this will generate strong churn.
Thank you.
Bots can only be added to a space by a user so yes, you will need to instruct the user to add them manually