botframework_multiprompt

1.0.3 • Public • Published

Botframework MultiPrompt

The existing node.js botframework Prompt class is only able to process one input type, whether its a text, attachment or anything else. Such functionality is limiting and requires users to make muliple linear requests to recieve the information they want using an image or text as input.

This module provides a custom Prompt implementation allows dynamic processing of either text or attachments with one unified query.

Usage example

  var bot = new builder.UniversalBot((connector));

  builder.Prompts.multiPrompt = multiPrompt.multiPromptsLauncher;
  bot.dialog('multiPrompt', multiPrompt.multiPrompt);

  // then just ask for input
  builder.Prompts.multiPrompt(session, "Please upload an image or type your message");

Package Sidebar

Install

npm i botframework_multiprompt

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • eladiw