botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Is there Direct Line API V3.0?

Open eddie1976 opened this issue 10 years ago • 15 comments

I found Direct Line API V1.0 is not working after upgrading Bot Framework Version 3.0. So please clarify.

  1. Direct Line API V1.0 is not working in Bot Framework Version 3.0?
  2. There will be Direct Line API V3.0?

Thanks!

eddie1976 avatar Jul 11 '16 11:07 eddie1976

Are you using the latest nuget package?

https://www.nuget.org/packages/Microsoft.Bot.Connector.DirectLine/

It should be working, as far as I know. Do you see a specific error message?

willportnoy avatar Jul 11 '16 20:07 willportnoy

I didn't use nuget package. I got "(500) Internal Server Error" when I send Message. So should I use the latest nuget package released on 2016/7/8?

eddie1976 avatar Jul 11 '16 23:07 eddie1976

Yes, I would use the latest nuget package.

willportnoy avatar Jul 11 '16 23:07 willportnoy

Okay. I will try it later today. And may I know that is there any change to Direct Line after Bot Framework Version V3.0 released?

eddie1976 avatar Jul 11 '16 23:07 eddie1976

The existing version of Direct Line will work with v1 and v3 Bot Framework bots. We'll release a new version of Direct Line in the future.

Cheers --Dan

dandriscoll avatar Jul 12 '16 04:07 dandriscoll

Hi, unfortunately Microsoft.Bot.Connector.DirectLine v1.0.2 uses Microsoft.Rest.ClientRuntime v1.8.2, but Microsoft.Bot.Builder v3.2.1 is using Microsoft.Rest.ClientRuntime v2.3.2. So any solution that references both DirectLine and Bot.Builder will have a compatibility problem with the Rest.ClientRuntime.

I have this problem as my API project provides endpoints for client apps using DirectLine as well as being the final destination for the bot calls.

Can we have an ETA on the updated DirectLine package?

JasonBSteele avatar Oct 05 '16 13:10 JasonBSteele

@JasonBSteele you may want to open a new top level issue for the ClientRuntime issue so we can triage it separately.

willportnoy avatar Oct 07 '16 17:10 willportnoy

HI @willportnoy, thanks for the suggestion. There is a top level issue logged at https://github.com/Microsoft/BotBuilder/issues/1381. It includes a workaround for including both versions of Microsoft.Rest.ClientRuntime in your solution.

JasonBSteele avatar Oct 08 '16 05:10 JasonBSteele

Hi guys, I have a question: I have custom storage for my bot, configured through the ChatConnector, ie replaced state.botframework.com with a custom endpoint; our client uses direct client api; does direct line store data, maybe temporarily? I mean, when I start a conversation, then invoke get messages, it appears direct line gives me messages without hitting my bot connector's api getData, which makes me think it somehow has received it at some point through some interaction direct-line and my bot app; is there a way to know how the whole flow works? I also invoked get message directly for a conversationId: userMessageSet = userConversations.GetMessages(conversationId); and it didn't hit the bot connector from my app at all, which seems to tell that direct client (https://directline.botframework.com) somehow stored or cached the answer to a previous conversation. Thanks.

alin-nemet avatar Nov 03 '16 16:11 alin-nemet

@alin-nemet you should probably open a top-level issue for new questions.

To try to answer your question, DirectLine and the Bot State service are unrelated services, so calling DirectLine shouldn't have much to do your custom Bot State service.

willportnoy avatar Nov 03 '16 17:11 willportnoy

thanks for answering, but can you please elaborate a bit? How does direct line interact with the bot app, is it direct http calls between the two, or do they happen through microsoft botframework hub (where we register the bot, with appid and secret)? Does direct line store conversation data somewhere in the cloud or just in memory, and for how long? Thanks a lot!

alin-nemet avatar Nov 03 '16 17:11 alin-nemet

DirectLine uses the same web service bot endpoint that other channels use. There is an intermediate "Direct Line" service. It stores conversation data for a short period of time (to enable queuing) in the cloud (for fault tolerance), for that short period of time. I think the "short period of time" is something less than a day, but it's subject to change over time.

Open a new issue for further questions please - we don't necessarily pay attention to closed issues.

willportnoy avatar Nov 03 '16 17:11 willportnoy

that clarifies it, thanks a bunch :) sure, no more posting here.

alin-nemet avatar Nov 03 '16 17:11 alin-nemet

Hi @JasonBSteele, the latest release of Microsoft.Bot.Connector.DirectLine uses Microsoft.Rest.ClientRuntime 2.3.2

dandriscoll avatar Nov 03 '16 18:11 dandriscoll

@dandriscoll - that's great news - thanks for letting me know! 😃

JasonBSteele avatar Nov 04 '16 09:11 JasonBSteele