howdyai / botkit-cms

An open tool for designing, building and managing interactive dialog systems
https://botkit.ai
MIT License
265 stars 92 forks source link

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

Open wdnk opened 5 years ago

wdnk commented 5 years ago

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 commented 5 years ago

I have the same issue, anybody can help?

refai2016 commented 5 years ago

@benbrown

benbrown commented 5 years ago

@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 commented 5 years ago

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

ohadcn commented 5 years ago

mine is using this command:

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

thank you @ohadcn