From 71102d54db1206d0985cab829a95cddb37b3efc5 Mon Sep 17 00:00:00 2001 From: Vinoth Rajendran Date: Sun, 10 Nov 2019 07:21:46 +0530 Subject: [PATCH 1/3] Added new Dialog Prompts types Phone Number, Email Address, Internet Protocols , GUID dialogs has added --- .../README.md | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/libraries/botbuilder-community-dialogs-prompts/README.md b/libraries/botbuilder-community-dialogs-prompts/README.md index b678491..aca338b 100644 --- a/libraries/botbuilder-community-dialogs-prompts/README.md +++ b/libraries/botbuilder-community-dialogs-prompts/README.md @@ -62,3 +62,65 @@ Below is an example of how you might use this result. result = step_context.result await turn_context.send_activity(result) ``` + +## Phone Number + +The 'PhoneNumberPrompt' will extract a phone number from a message from the user. + +```python +dialogs.add(new PhoneNumberPrompt('phprompt'); +``` + +Example + +```python +User : My phone number is 1 (877) 609-2233 +PhoneNumberPrompt return as 1 (877) 609-2233 +``` + +## Email Address + +The `EmailPrompt` will extract an email address from a message from the user. + +```python +dialogs.add(new EmailPrompt('eprompt'); +``` + +Example + +```python +User : My email id is r.vinoth@live.com +EmailPrompt return as r.vinoth@live.com +``` + +## Internet Protocols + +The 'InternetProtocolPrompt' will extract one of the following types based on which InternetProtocolPromptType enum value is passed in: + +* IPAddress +* URL + +```python +dialogs.add(InternetProtocolPrompt("urlprompt",InternetProtocolPromptType.URL)) +``` +Example + +```python +User : My favorite web site is http://rvinothrajendran.github.io/ +InternetProtocolPrompt return as http://rvinothrajendran.github.io/ +``` + +## GUID + +The `GUIDPrompt` will extract a GUID from a message from the user. + +```python +dialogs.add(new GuidPrompt('gprompt'); +``` + +Example + +```python +User : my azure id is "7d7b0205-9411-4a29-89ac-b9cd905886fa" +GUIDPrompt return as "7d7b0205-9411-4a29-89ac-b9cd905886fa" +``` From 8a27097f7c9a72c7558934495f85c6c371088134 Mon Sep 17 00:00:00 2001 From: Vinoth Rajendran Date: Sun, 10 Nov 2019 07:25:10 +0530 Subject: [PATCH 2/3] New Prompt type has added --- libraries/botbuilder-community-dialogs-prompts/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/botbuilder-community-dialogs-prompts/README.md b/libraries/botbuilder-community-dialogs-prompts/README.md index aca338b..4e1743f 100644 --- a/libraries/botbuilder-community-dialogs-prompts/README.md +++ b/libraries/botbuilder-community-dialogs-prompts/README.md @@ -65,7 +65,7 @@ await turn_context.send_activity(result) ## Phone Number -The 'PhoneNumberPrompt' will extract a phone number from a message from the user. +The `PhoneNumberPrompt` will extract a phone number from a message from the user. ```python dialogs.add(new PhoneNumberPrompt('phprompt'); @@ -95,7 +95,7 @@ EmailPrompt return as r.vinoth@live.com ## Internet Protocols -The 'InternetProtocolPrompt' will extract one of the following types based on which InternetProtocolPromptType enum value is passed in: +The `InternetProtocolPrompt` will extract one of the following types based on which InternetProtocolPromptType enum value is passed in: * IPAddress * URL From 8bbfc2d5f2d74c916ba5f31dfd79c9478826598b Mon Sep 17 00:00:00 2001 From: Vinoth Rajendran Date: Sun, 10 Nov 2019 08:07:40 +0530 Subject: [PATCH 3/3] Dialog-Prompts section added in README.md file. Dialog-Prompts section added --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 338da3e..b5ac3f6 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,13 @@ This repository is part of the Bot Builder Community Project and contains Bot Builder Extensions for the Python SDK, including middleware, dialogs, helpers and more. Other repos within the Bot Builder Community Project exist for extensions for [JavaScript](https://github.com/BotBuilderCommunity/botbuilder-community-js), [.NET](https://github.com/BotBuilderCommunity/botbuilder-community-dotnet), [Java](https://github.com/BotBuilderCommunity/botbuilder-community-java) and [tools](https://github.com/BotBuilderCommunity/botbuilder-community-tools) - you can find our other repos under [our GitHub organisation for the project](https://github.com/BotBuilderCommunity/). -This repo will be updated shortly to add the first extensions - please contribute you own too! +To see a list of current extensions available for the Bot Builder Python SDK, use the links below to jump to a section +* [Dialogs & Prompts](#dialogs-and-prompts) + + +## Dialogs and Prompts +The following dialogs are currently available; + +| Name | Description | Sample | PIP | +| ---- | ----------- | ------- | --- | +| [@botbuildercommunity/dialog-prompts](libraries/botbuilder-community-dialogs-prompts/README.md) | A variety of prompts using the [Microsoft Recognizers Text](https://github.com/microsoft/Recognizers-Text) suite, such as currency, temperature, age and dimension. | coming soon | coming soon |