Creating two messenger bots for one page - bots

Can I create two messenger bots (setting web hook for one) and using these bots? I need first bot for original purpose and the second one for contact center operator

Currently, one Facebook Page may have 10 apps installed. So, you can consider a bot as a 1 app. It is possible to have 10 bots per page currently(23/Jul/2017)

Related

An issue when authorizing Facebook pages in Bot Framework

The issue originates from the bot framework itself, when I add a new Facebook channel for the first time everything works as expected, what I am trying to do is connecting multiple FB pages to the same bot, I read somewhere that you can do this by re-entering the page info and clicking "resubmit", the problem is when the "resubmit" button is clicked without first clicking "Deauthorize" first causes a problem, when I analyzed the request with the browser's inspector it seems that EnableChannelForBot method throws an error.
Also we are developing a service where users can register and link their FB pages to the bot just like ChatFuel or any other famous bot platform, the main problem is that bot framework is asking for a specific page id and access token per FB bot and you must do it manually through the bot framework dashboard, can we have an easy way to register the bot to multiple FB pages and without having to do so manually through an API or something Similar? Please work with us to provide a solution for this as soon as you can, Bot Framework is vital to our work and migrating to another SDK is going to be very costly and time-consuming.
I don't think that connecting multiple Facebook pages to the same bot is supported. Where did you read that?
Also, there is no API currently you can leverage on to register your bot/enable Facebook channel.

Can I install multiple bots on a single Facebook fanpage

We are having two teams building two bots for our Facebook fanpage. One is for customer service and the other one is for a quiz campaign. Can we have the two bots on the same fanpage? Will there be any conflicts such as the custom menu?
The short answer is YES!
However unless managed correctly there will be conflict.
I know it is possible to use one chatbot built on ManyChat and another on Flowxo.
I need to ensure that I LIMIT the "keywords" in ManyChat so that ManyChat does not respond and allows FLOWXO to respond.
In my situation, I am using the Pro version of MC to get users subscribed and to further broadcast to them or subscribe them to a sequence. I pass over the conversation to Flowxo for integrations to third party software and for the basic conversational aspect of the chatbot.
Passing the conversation over from one chatbot to the other takes some manipulation of the use of keywords and Flowxo's "unrecognised phrase" flow.
I will post the link to a blog post when I get around to writing about how I did it.
Another issue as you pointed out is the Greeting and Welcome text. I have not figured out a way to control this and as it turns out with my chatbot, users always appear to enter into the chatbot via ManyChat which fortunately for me is exactly what I need.

Is Bot Builder for multiple channels

I'm a bit confused on how Bot Builder is intended to be used if you want to connect to Slack as well as Kik.
Am I supposed to be using "builder.BotConnectorBot" or will I end up with a "builder.BotConnectorBot" and a separate "builder.SlackBot"? If so, does that mean I'm hosing two separate bots, one for Kik and one for Slack? Or can the same bot built using "builder.BotConnectorBot" be hosted once and work across every channel?
You only need to create a single bot. Just enable it for multiple channels in the portal.
Direct link:
https://dev.botframework.com/bots?id={YourBotId}
You develop one bot and you can use it across multiple channels (skype, slack, FB Messenger, Email, SMS, etc.). This is the main objective of BotFramework to abstract you to the channel implementations.
To add a new channel, you may enter in your bot and BotFramework dev portal and click in the channel you want to add. Some channels (like FB messenger and Slack) may require additional steps to setup the channel.
REF here.

Can I update the Messenger bot which is already approved by Facebook?

I have created Messenger bot which is approved and available for public. Now I want to add other use cases and also change the text messages which are being sent from the bot. One of the use cases is the choose language feature. So if I change the bot use cases is there a probobality that some day Facebook will block the bot due to my made changes. So if yes, then how can I prevent that?
Once your bot is approved by Facebook you can do whatever you want with it.
We published a bot months ago and update its answers and its behavior in a daily basis without waiting for Facebook to re-approve the bot (thank god because the approval was so long).
But keep in mind that if your bot is reported as spam by a certain amount of people, Facebook can automatically disable your bot (and/or the associated Facebook App) and you'll need to fix your bot and explain why it was reported as spam (if you can).

How to grab user track info through spotify api

I recently just got through the beginning tutorial for creating a web app with the spotify api. https://developer.spotify.com/web-api/tutorial/. The tutorial was great for showing how to authenticate a user with oauth and log in a user.
The problem I am having is with the endpoint. I can't seem to figure out how to change the endpoint so that instead of displaying a users profile, I can see a list of a users track, better yet starred or top 10 tracks.
for a 10,000 view perspective of what I want to build is a app that would allow users to easily log in through their spotify account, take their stared or top tracks and push them to a radio that I am building with an raspberry pi.
I am new to working with the spotify api and working with api's in general so whatever advice would be awesome.
At the moment, there is no way to get the "starred"-playlist. (At least it's not documented)
I don't know what you mean with "Top 10 User tracks", since this doesn't exist as far as I know
To get a list of the account's current playlists, change the URL to:
https://api.spotify.com/v1/users/{user_id}/playlists
With this URL, you will get a list of simple-playlist-objects wrapped inside a paging-object. Now you can select one of the playlists (or loop through them) and fetch its track this way
NOTE:
If you also want to fetch private playlists, make sure you use the scope playlist_read_private

Resources