How to create a group bot for facebook messenger?

With all the hype about facebook launching groups of bots from their Messenger, I also wanted to give it a try. I already have a bot that you can chat with one-on-one, and I just wanted to allow this bot to be used in the chat group you created. I thought it would be very simple, like with telegram bots: add the bot to the group, like an ordinary person. I guess I was wrong. The bot is a page (application), not a person, so I can't find it when I click the Add People to Conversation button. I could find another way to use the bot in a group. Did I miss something? Am I misunderstanding the concept of facebook bots? Maybe someone can share their experience of creating a group bot for Messenger.

+3


source to share


2 answers


You can make a bot that behaves like a group

The most common scenario is that all users send messages to the bot, and it identifies each with a UserId to know who to reply to.

The bot usually uses the userId to determine who to send each message to. In this case, only the recipient will receive.

By removing this condition, which restricts the message to the recipient only, all users received the sent messages.



With this, just add information about who is sending the message

msg = username + "says:" + message

      

A friend did it on Parlo

0


source


For the regular Facebook messenger, you can add chat extensions to group chats, but not to bots. Chat extensions are much more limited in scope.

It is unlikely that the capabilities you need in a chatbot will be available for chat extensions anytime soon. This was announced by Mikhail Larionov, engineer-developer of Facebook Messenger, at the 2017 F8 developer conference:



Chat extensions do not listen to your messages. "You can't @mention them. Instead, we go all-in with webviews. Why? Because we want user input to be accessible and text very limited. We also don't want bots to have access to your personal conversations and we don't want to pollute your conversations with bot commands Source: Venture Beat

You can add bots to groups in WorkPlace Messenger, which is the business version of Messenger. Documents

0


source







All Articles