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

[Typescript] Add GA SDK Skill support to VA/Skill Generator

Open darrenj opened this issue 7 years ago • 64 comments

Following a Skill protocol change to WebSockets we have been waiting on a new Streaming Extensions library to be available for Typescript, previously only available for C#. This will unblock Skill invocation scenarios for Virtual Assistant when using Typescript.

User Story

As ... a Developer I want ...to be able to connect skills to a TypeScript version of the Virtual Assistant so that ...there is parity between C# and Typescript

Acceptance Criteria

  • [ ] Update VA and Skill generator to incorporate new GA SDK Skills
  • [ ] Deploy a typescript VA and add a C# Skill (e.g. Calendar)
  • [ ] Provide documentation on the changes required to existing VA solutions and Skills created by the generator as needed

darrenj avatar Oct 08 '19 12:10 darrenj

hi Darrenj, Is there any ETA on the issue to be fixed? thanks, Kumar

Kumar3010 avatar Oct 10 '19 04:10 Kumar3010

Hoping to have end to end working for testing this week all being well.

darrenj avatar Oct 10 '19 11:10 darrenj

Thank you @darrenj for the update.

Kumar3010 avatar Oct 11 '19 02:10 Kumar3010

is there any update on this issue @darrenj

Kumar3010 avatar Oct 17 '19 10:10 Kumar3010

Hi Darren,

@darrenj could you please provide an update on this work item. we need this critical feature to be developed for our use case.

appreciate your help.

thanks, Kumar

Kumar3010 avatar Oct 31 '19 09:10 Kumar3010

Hi @darrenj ,

Sorry to bother you again, there are any update on this? I saw that the library has been released for the version 4.6.0 (https://botbuilder.myget.org/feed/botbuilder-v4-js-daily/package/npm/botframework-streaming), is this compatible with the Botframework 4.5.0 and the Virtual Assistant?

tommyJimmy87 avatar Dec 04 '19 15:12 tommyJimmy87

There are a few things in flight here, one is the streaming extension availability which you've spotted and the other is the typescript availability of the new GA version of the Skills library. I am expecting the first packaged build of the Skills library next week at which point we can start updates of both the C# and Typescript templates to test and provide the (simple) migration steps.

We are targeting having this work ready for use in January and will keep this issue updated with progress including when daily builds are available.

In the meantime a Javascript/Typescript VA Bot can call a Skill created in JavaScript/Typescript as this uses HTTP due to the lack of the streaming extension dependency. The issue comes in when you wish to call a C# Skill like Calendar which the above changes will align across all languages.

darrenj avatar Dec 06 '19 13:12 darrenj

@darrenj is this fixed and can I connect C# Skill from typescript VA? I am confused about your last comment.

amistry79 avatar Dec 11 '19 05:12 amistry79

Hello @darrenj ,

Once this resolved, would it be possible to invoke cSharp skills like ToDo from a TypeScript version on VA ?

Currently, I am getting an error related to WebSocketTransport used on C# skill. But my VA is typescript.

rjgmail88 avatar Dec 12 '19 22:12 rjgmail88

Yes, migration to the GA version of Skills removes the dependency on Websockets and thus will enable seamless mix/match of skills across platforms. We have the latest bits for C# and JS and working on initial integration, goal is to get changes into a daily build within the next couple of weeks to unblock scenarios.

darrenj avatar Dec 18 '19 09:12 darrenj

Hi @darrenj,

I have another use case which is Typescript VA and Typescript Skill.

My problem is that the updateActivity is not available across the VA to the Skill and I need the streaming library for this (as far as I understood). Now I actually noticed that the WebSocket dependencies have been removed from the latest skills library (4.4.9). Don't understand why :) Are going to be moved somewhere else? Or?

tommyJimmy87 avatar Dec 18 '19 12:12 tommyJimmy87

OK, I have an update on progress with regard to the GA of the Skill capabilities within the Bot Framework SDK. This has transitioned the work incubated by Virtual Assistant into a formal GA version.

A sample is available that shows how a Bot can invoke another Bot (Skill). Key change is we now have a unified adapter meaning there is no need to utilise a different adapter or Streaming extensions. C# and JS.

We are working on updates to the Virtual Assistant / Skill template to provide the (small) changes out of the box and provide documentation on the few steps required to update existing Skills. Targeting end of January, with builds on our daily builds soon.

If you are keen to make progress ahead of this the above samples should give you everything you need. I'll update this issue with pointers to daily builds/changes as soon as they are ready.

darrenj avatar Jan 08 '20 15:01 darrenj

@darrenj thank you for the this awesome update. I am just curious to know about unified adapter before we start leveraging that in our production Virtual assistant.

Does this mean we can use unified adapter in Typescript VA and can still invoke c# skill ?

rjgmail88 avatar Jan 14 '20 17:01 rjgmail88

A long awaited update!

We posted our 0.8 release yesterday which include an update to all of our sample Skills to support the new GA Skills capability and no longer preview. Websockets has been retired in favour of Web-Service communication between skills, Skills communicate back to the Bot asynchronously using a "callback" HTTP connection.

As a result there are some straight forward updates to existing Virtual Assistant and Skills to be made. C# VA updates are documented here and C# Skill updates are documented here.

The equivalent JS/Typescript generator changes are being finalised as we speak and targeting publishing of a new Generator and docs for existing VA/Skills by 14th February. For background reference, the high level steps to support invoking skills can be found here

Once these changes are complete it means a JS/typescript VA can invoke C# Skills, vice versa and indeed Python too.

darrenj avatar Feb 04 '20 11:02 darrenj

@darrenj, any thoughts on above comment about typescript project ?

rjgmail88 avatar Feb 07 '20 17:02 rjgmail88

As per the above, yes there will be some migration steps to follow which we are finalising

darrenj avatar Feb 13 '20 06:02 darrenj

Thank you.

rjgmail88 avatar Feb 13 '20 15:02 rjgmail88

Hey @darrenj , any news on when the JS/TS generator changes and doc updates will be released?

marawanshalaby avatar Feb 17 '20 08:02 marawanshalaby

hey @darrenj, could you please let us know if the communication from VA (C#) to typescript skill work is done in the new framework (SDK) you menationed above. you have said it would be done by 14th Feb. appreciate your help

Kumar3010 avatar Feb 20 '20 06:02 Kumar3010

@darrenj any update on this ticket?

marawanshalaby avatar Feb 24 '20 11:02 marawanshalaby