Hangouts Chat - Send link to add bot to space - hangouts-chat

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

Related

How can I find telegram user by id

I'm using telegram bot and can get user id from incoming message.
Sometimes I want to find users who communicate with telegram bot and write them message by myself.
I have only user id and have not some additional information about the user.
Can I somehow find users by id or anonimity with only id available is by design?
At least what I've been using...
Program your bot to send you a message with link to that user.
This can be done by using link in your message (must be used as message entity or inline keyboard button):
tg://user?id=<user_id>
Or in case you are using MarkdownV2 for formatting
[inline mention of a user](tg://user?id=<user_id>)
Then, by clicking on that link, you will open a user profile, where you can message your target.
Note, user can change his privacy settings, and disable mentions. In this case these links will not work.

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).

How to add bot to coversation in Circuit sandbox?

I had created bot app using Circuit SDK and got a sandbox in circuitsandbox.net. To create a bot application I went to "Manage Applications" -> "Custom Apps" and created a bot app. It works great but only way to add bot to conversation I found is to type his full mail in "Add Conversation" menu. Is it possible to found him like common user (searching by his name)?
Bots can be added via email as you noted, and not by its name.
But the new way to add bots to conversations is via the sidebar. This will be available very shortly, probably in a week or two.

Create a direct link to open a conversation with a user at chat.google.com

I have a list of contacts on my site, each of whom has a valid google account / email address. I want to create a link for each person which, when clicked, will take the user to chat.google.com (not hangouts) and open a conversation with that person.
Looking at the URLs which appear when I open conversations with users in the Google Hangouts chat web app, the format seems to be the following:
https://chat.google.com/u/1/dm/
Is there a way of retrieving this user id for a given google user?
If this is possible, will a link of constructed in this way solve the issue, or is there more to consider?
Many thanks in advance.

Get users to add hangouts chat bot by clicking link

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?