Glip bot in multiple companies / glip instances?

  • 1
  • Question
  • Updated 4 months ago
I have the following use case:

* A user from glip (it could be any glip) needs to be able to interact with 'our app'.
* Our app needs to update a DB and respond to the user  based on what the user entered.

* I'm not sure if it's possible to have a bot that would be integrated in multiple glips?
* If so, would there be a way to have a button 'Add bot to glip' on our app? At the moment, I see that button in the dev console and it seems like this would link it to the corresponding glip VS the current dev account?
* If it's not possible with a bot or if there's something more efficient, how could we achieve that?
Photo of Mg

Mg

  • 180 Points 100 badge 2x thumb

Posted 4 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 2,016 Points 2k badge 2x thumb
Hi Mg,

Just want to clarify one thing before I'll look into a solution for your problem.
Saying "any glip" and "multiple glips" do you mean "any glip channels under the same account" or from different accounts? 

Thanks,
Phong
Phung - you seem to be extremely knowledgeable. Can you help me fix a Fax API issue please?  Please see my profile or email to scarter@sterlingtherapy.com
Photo of Mg

Mg

  • 180 Points 100 badge 2x thumb
Hi Phong!

I mean different accounts. Like the company ABC inc has a glip and wants these features, then the company Cleaning inc also has a glip and wants these features, etc.
(Edited)
Photo of Embbnux Ji

Embbnux Ji

  • 150 Points 100 badge 2x thumb
Hi, Mg,

You can create a Bot in public type. So it can be installed in different account. Every account can install it by `Add to Glip` button. and it will creates different bot user for different account. When different account install glip bot, your server can get different token.    

You can try this https://github.com/embbnux/botbuilder-glip . it supports public bot.

Thanks
(Edited)
Photo of Mg

Mg

  • 180 Points 100 badge 2x thumb
Thank you for your answer Embbnux Ji, but I'm not sure I understand your answer.

What would be the process for a customer to add our bot? What do you mean by 'Add to glip button'? 

I saw a 'add to glip' button, but in my developer.ringcentral.com account when creating the app. Is there a way to add a 'Add to glip' button anywhere (like on our own web app)?

Or would a customer need to create a developer account? If so, how do they 'find' our bot to add it? Is there a catalog of bots when the bot is public?

Ideally, we would want a way for the users to simply click a button and integrate the app or bot in their Glip account, without having to create a Ring Central dev account.

For example on Slack, there's a way to package a bot with a slack app:
https://api.slack.com/bot-users#attaching_bot_users_to_a_slack_app

So that users just have to click a 'install to slack' button that you can put anywhere and adds a bot user into their slack team.
(Edited)
Photo of Embbnux Ji

Embbnux Ji

  • 150 Points 100 badge 2x thumb
After bot app goes to production, you can set `Add to Glip` in RingCentral app gallery or a button in your website. Customer doesn't need dev account. https://apps1.ringcentral.com/apps?compatibility=ringcentral&appCategory=Bots