Yoctol / bottender

⚡️ A framework for building conversational user interfaces.
https://bottender.js.org
MIT License
4.21k stars 333 forks source link

How do custom connectors be implemented for a custom webchat? #339

Open tschnoelzer opened 5 years ago

tschnoelzer commented 5 years ago

Bottender has a browser entry so it can be bundled by bundlers, such as webpack, browserify..., but it only has very limited functionality (Bot, MemorySession...) now. You will need to build a custom connector to connect it with UI interface.

Hi @chentsulin ,

very nice work and we will test it for a new project.

Here we have to provide a (p)react webclient that was planned to use directLine3 as @pavei also mentioned. Next is an app that should use the same.

I saw the browser.js and read about custom connectors. Still missing pieces ... can u provide a basic sample using (p)react?

Best Timo

chentsulin commented 5 years ago

Hi @tschnoelzer,

I created a react demo to show how to use bottender customer connctor in the browser:
https://github.com/Yoctol/bottender/tree/master/examples/browser-only

But this example is a browser-only example. I suppose that you may want to keep your bot logic on the server.

After I looked into directLine3, If I understand correctly, we should have a connector to connect Bot Framework and Bottender:

Web Chat <-> Direct Line 3 <-> Bot Framework <-> Connector <-> Bottender Core

tschnoelzer commented 5 years ago

Hi @chentsulin,

we need the connector to build a web based conversational interface. this connector might be same structure as directline from MS.

best

Timo

pavei commented 5 years ago

@tschnoelzer i did the basic structure as Directline on this project

https://github.com/pratiksinghchauhan/socket-offline-directline

tschnoelzer commented 5 years ago

Sounds good. Will test later ...

Outlook für iOShttps://aka.ms/o0ukef beziehen


Von: Vinicius Pavei notifications@github.com Gesendet: Dienstag, Oktober 23, 2018 7:49 PM An: Yoctol/bottender Cc: Timo Schnoelzer; Mention Betreff: Re: [Yoctol/bottender] How do custom connectors be implemented for a custom webchat? (#339)

@tschnoelzerhttps://github.com/tschnoelzer i did the basic structure as Directline on this project

https://github.com/pratiksinghchauhan/socket-offline-directline

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Yoctol/bottender/issues/339#issuecomment-432349188, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA6W0Nk2wZcGIyvFBB6WLMUU7uJugjpsks5un1aTgaJpZM4W6L9u.