Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

how to connect botkit bot and cms that running on same server? #20

Open
wdnk opened this issue Apr 23, 2019 · 6 comments
Open

how to connect botkit bot and cms that running on same server? #20

wdnk opened this issue Apr 23, 2019 · 6 comments

Comments

@wdnk
Copy link

wdnk commented Apr 23, 2019

I have install botkit app and botkit-cms, but how to connect and sync them?
already config the .env and create scripts.json, but still no luck.

@refai2016
Copy link

I have the same issue, anybody can help?

@refai2016
Copy link

@benbrown

@benbrown
Copy link
Contributor

@refai2016 not necessary to tag me here I see every issue on every repo in my org.

Once you have the 2 apps installed and running, configure your Botkit app with the CMS url and token:

modify your Botkit app to include a pointer to this new service.

var controller = Botkit.someplatform({
  ...some_options,
  studio_command_uri: 'https://my.new.service',
  studio_token: 'a shared secret'
})

@milestone35
Copy link

I want to install my server but
studio_token: 'a shared secret'

  • do i create this token ? or

  • in document says First, register for a developer accont with Botkit Studio and acquire an API token. but don't use link.
    thanx

@ohadcn
Copy link

ohadcn commented Jun 11, 2019

mine is using this command:

    controller.usePlugin(new BotkitCMSHelper({
        cms_uri: "http://localhost:12345/",
        uri: "http://localhost:12345/",
        token: "my secret token",
    }));

  • you need one of cms_uri and uri, depending on the version of botkit.
  • the token is the same one you entered in your cms .env file

@milestone35
Copy link

thank you @ohadcn

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants