bottender icon indicating copy to clipboard operation
bottender copied to clipboard

How do custom connectors be implemented for a custom webchat?

Open tschnoelzer opened this issue 6 years ago • 4 comments

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

tschnoelzer avatar Sep 26 '18 08:09 tschnoelzer

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

chentsulin avatar Oct 11 '18 17:10 chentsulin

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

tschnoelzer avatar Oct 23 '18 17:10 tschnoelzer

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

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

pavei avatar Oct 23 '18 17:10 pavei

Sounds good. Will test later ...

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


Von: Vinicius Pavei [email protected] 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.

tschnoelzer avatar Oct 24 '18 06:10 tschnoelzer