I created a Facebook Messenger Bot(for customer's feedback) for our office last year, now we have 4 more branches and we want to have the feedback Bot at every branch. I want to know if it's possible to distinguish each branch (through the QR Code) by using the same messenger BOT we have at the head office without creating a new Messenger Bot application for each branch.
I think you are looking for parametric codes.
You can set ref values in parametric codes, and with that you can distinguish multiple branches, even though the QR code for messenger will be same from user's eye.
You can read more about it here https://developers.facebook.com/docs/messenger-platform/discovery/messenger-codes/
Related
I am very new to Messenger platform and I'm trying to wrap my head around the types of things that are possible. In particular, I'm interested in using a bot as a "mediator" of communication among friends. For example, one could build build a bot to help make a group decision, like where four or five people will have lunch. Each person interacts only with the bot, the bot gathers lunch preferences, and communicates some type of optimal choice to all participants. This could require a back-and-forth discussion of preferences with each participant. Is that clear?
At this point, I'm wondering two things:
How would a user initially invite another user into the conversation? Suppose user A starts talking to the bot and the bot tells user A, "Invite some friends to join us in this conversation". Can the bot actually send these invitations on behalf of user A? Or does invitation have to take place via some other out-of-band mechanism?
Is messenger platform the most appropriate FB platform technology for creating this sort of interactive mediation app?
Thanks in advance, InterWebs...
If I'm understanding your idea correctly, it would be very difficult to build a bot that could chat with each person separately but offer a shared experience. When a user shares the bot with another user and the new user starts a chat, the bot has no way of knowing where the referral comes from, so there's really no way to know that the two users are linked.
What you could do is build a chat extension, which basically makes functionality from your bot available in a group chat:
https://developers.facebook.com/docs/messenger-platform/guides/chat-extensions
I need to replace existing company messenger bot with a new one. It is my first time when I am working with Facebook for developers, so I am a newbie. Could you help me and answer few questions? I tried to find them on the internet, but unfortunately, it is the first time I could not find something.
1) Could I deploy messenger bot from other developer application than current? I mean that I do not have access to current developer application, could I create a new app and deploy it to our page from that app?
2) Could I deploy new messenger bot without replacing the old one? If yes then could they coexist? I would like to choose users who will talk with a new bot, and the rest will speak with the old bot.
3) Do I need to submit my whole app for review? Alternatively, could I only review messenger app?
4) If I pass messenger bot review, then could I replace a fan page associated with the bot?
Thank you very much in advance :)
Ok, let me try to answer those questions.
Yes, the app is subscribed to the pages using https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps. You can drop it and install another one.
Yes, there can be as many in parallel. You find them at https://www.facebook.com/[page_id]/settings/?tab=messenger_platform and it looks like this (below). You can also select a role (primary or secondary receiver), so that one app just snatches some sort of messages.
Here it depends. There is "App Review" and "App Review for Messenger". I am assuming you mean Review for Messenger. Now, if the bot is pretty complex - which it is in most cases - you have to provide a video how to use it. So you are showing its features. First and formost for the "pages_messaging_subscriptions" approval, you need to show how to interact with subscriptions (adding, deleting, etc).
Once your bot (=your app) is approved, you can add it to as many pages you want. The review (sort of) checks if the app is a good piece of software, not on which page it will run later. Thats why you can add chatfuel to your personal, your brand or your fan page at the same time.
Hope that helps. Cheers
My aim is to use a single bot code to run the bot at two different channels DirectLine and Facebook#work. I am going to cite an example of issues that I face when I am using facebook channel and directLine channel. The issues I have are the following:
The links or urls though supported through mark down in DirectLine are not supported in facebook, I have to make a seperate hero card.
Even if i use an url through hero card in facebook, the skype link cant be connected, bcos the link "sip:***#xxx.com", is changed to xxx alone.
I cannot get the name of the user from the "From.Name".
So what is the best possible way to resolve this? Should I simply write functions for each channels??Is that the only option.
What I want in the end is a bot code that is independent of the channel that is used for chatting
Use a simple switch-case for the Activity.Channel in the messagesController, then format the Activity.Text that is giving you troubles for each channel
Mark down is not supported in the Facebook channel. So there's no way to directly connect to Skype from Facebook channel.
Facebook# work returns only the id of the corresponding user to the bot framework. We have to then use the Facebook api to get the name of the user with the corresponding id.
I want to make my bot available for download for testing purpose without
going through the actual review process of Facebook? This is just for testing purpose as I want to test how exactly end user will
download my bot from FB messenger platform and then will start using my bot. Is there a way/platform to try this? Can I do that?
(currently i am testing am sending message to my bot using FB page's messenger link as indicated in almost all the blogs/sites including FB's official
site.)
Can you please provide any pointers/links on this?
I see two options for you:
You want users to test your bot on Messenger:
Simply add them as testers in your bot corresponding Facebook page then ask them to look for your bot in their Messenger app.
Or you want to test your bot behaviors:
Enter botgen the chatbot generator I'm currently working on, which could help you test more publicly the bot you're working on. (assuming your bot doesn't need coding and is all about pattern conversation).
Just use the designer interface to design, run and test your chatbot.
Publish it and share it with your actual test users.
I refer to a messenger bot (ChatPay) that we created and were seeking approval for. We noticed that the facebook team could not have a full experience on how the bot works as it is useful for registered users (as per the screen shot). The bot works with an application (ChatPay) from where registration is invoked and bank transaction interfaces are displayed from (for security purposes).
How do I go about getting the bot approved? We could provide test credentials to the facebook team. The app is at https://play.google.com/store/apps/details?id=com.craft.chatpayenter image description here
Follow the regular review process, the Facebook users will test the bot and ask questions if need be. They tested my bot and asked a few questions.
I have the Pages application on my phone so I saw all the interaction with the bot immediately. You can type a personal message with Pages as well as have the bot respond. I spoke with the Facebook test team this way.
Another idea is to put some boilerplate text on the bot that tells the testers the requirements. You can make updates to the bot after the approval process to remove the instructions. Until approval the general public cannot access the bot so your clients will not see the instructions.
Here is my bot if you would like to play around. I'd be happy to help with your testing.