Skip to content

explain initialDiaglog usage #12

@mydiemho

Description

@mydiemho

this is how componentDialog determine entry point

const DONATION_DIALOG = 'donationDialog';

class DonateFoodDialog extends ComponentDialog {
    constructor(dialogId) {
        super(dialogId);

        // entry point of the component, THIS IS REQUIRED
        this.initialDialogId = DONATION_DIALOG;

        this.addDialog(new ChoicePrompt('choicePrompt'));

        // Define the conversation flow using a waterfall model.
        this.addDialog(new WaterfallDialog(DONATION_DIALOG, [
            async function (step) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions