Skip to main content

Microsoft Bot Builder sangam dialogs prompts

Project description

Dialog Prompts

This package contains additional Inputs , beyond those offered out of the box by the Bot Framework SDK.

AdaptiveCardPrompt

The AdaptiveCardPrompt is use in waterfallDialog to receive adaptive card event.

Installing

pip install botbuilder-sangam-dialogs-prompt

Usage

You can then import required types, for example:

   
   from botbuilder.sangam.dialogs.prompt.adaptive import AdaptiveCardPrompt
   
   self.dialog_set.add(AdaptiveCardPrompt("adaptive_prompt"))
   

Then, you can call the bot by specifying your PromptOptions and calling PromptAsync.

   
   async def adaptive_card(self,waterfall_step:WaterfallStepContext):
      
      # card = pass adaptive card information
  
        message = Activity(
            text="Here is an Adaptive Card:",
            type=ActivityTypes.message,
            attachments=[CardFactory.adaptive_card(card)],
        )

        prompt_options = PromptOptions()
        prompt_options.prompt = message
        prompt_options.Type = ActivityTypes.message

        return await waterfall_step.prompt("adaptive_prompt",prompt_options)   
   

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

botbuilder-sangam-dialogs-prompt-0.4.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page