[Adaptive] Combining BotFramework v4 Dialogs (Waterfall) with Adaptive Dialogs Generated by Composer
See original GitHub issueDescribe the solution you’d like I want to be able to create a dialog using Composer, and reference/start it from existing BotFramework v4 Waterfall dialog.
Let’s say I have a dialog where at some point I want to start “Org registration” dialog.
This org registration dialog can be designed using the Composer.
Then, I want to copy generated .dialog
file (and probably .lg
files) to my existing solution and do something like that:
var resource = this._resourceExplorer.GetResources(".dialog").FirstOrDefault(r => r.Id == "RegisterCustomer.dialog");
if (resource != null)
{
var registerCustomerDialog = DeclarativeTypeLoader.Load<AdaptiveDialog>(resource, _resourceExplorer, DebugSupport.SourceRegistry);
await registerCustomerDialog.Run(turnContext, _conversationState.CreateProperty<DialogState>(nameof(DialogState)), cancellationToken);
}
Currently, I did generate the .dialog
using Composer (attached, renamed to .txt
), and included it into the project.
I’ve also tried to include both app.schema
from Declarative Dialog samples, as well as sdk.schema
from the Composer itself.
But I still just getting an error on this line var registerCustomerDialog = DeclarativeTypeLoader.Load<AdaptiveDialog>(resource, _resourceExplorer, DebugSupport.SourceRegistry);
:
DeclarativeDialogs\RegisterCustomer.dialog error: Type specified in JSON 'Microsoft.AdaptiveDialog' was not resolved. Path '$type', line 2, position 37.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Tracked via #3105
@tomlm - Hi, is this issue now resolved?