question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Adaptive] Combining BotFramework v4 Dialogs (Waterfall) with Adaptive Dialogs Generated by Composer

See original GitHub issue

Describe 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.

RegisterCustomer.txt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vishwacsenacommented, Jan 9, 2020

Tracked via #3105

0reactions
jamiemaguiredotnetcommented, Jan 9, 2020

@tomlm - Hi, is this issue now resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bridge the data gap between Composer, Adaptive and ...
In this blog post, we've created a chatbot that consists of a combination of regular waterfall dialogs and Adaptive Dialogs authored with Bot ......
Read more >
How to mix and match Regular Dialogs with Composer ...
In this blog post, we'll see how you can do this, i.e. mix and match “regular” Bot Framework Dialogs with Composer-Generated Adaptive Dialogs....
Read more >
Prebuilt actions for adaptive dialogs - Bot Service
Describes the adaptive dialog prebuilt triggers. Triggers handle dialog specific events that are related to the lifecycle of the dialog. Inputs ...
Read more >
Migrate an SDK-first bot with waterfall dialogs to Composer
Learn how to migrate assets and functionality from an SDK-first bot to a bot created in Composer.
Read more >
Bot Framework Composer - Adaptive Card - Button to start ...
I have 2 buttons on the adaptive card."submit" button brings me the information I entered on the form.but the "cancel" button does the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found