This week we published our agenda for TechBash 2018. It is time for you to register!

You can see the schedule of the breakout sessions here. If you haven’t registered yet, now is the time to do it.

Not familiar with TechBash? Here’s some additional information…

TechBash 2018 is Oct 2-5, 2018, hosted at the Kalahari Resort in Poconos Manor, PA!

Techbash is quite affordable, especially when compared to our competition (because we are non-profit). Our 3 day pass plus 3 hotel nights is only about $875 (book before our Kalahari discount expires). We are also local to many people – less than 2 hours from NY and Philly. So if you live in the northeast US we keep your travel expenses down!

2017 Keynote with Donovan Brown

 

Come to Learn

Techbash features all the content you need to take your career a level up! We feature content for .NET, Azure, DevOps, JavaScript, Mobile, AI, Bots and much more. And our speakers are world class. These are actually many of the same presenters you’ll find at more expensive conferences.

Great Content

 

Come to Network!

We’ve built a safe, welcoming and exciting environment that is designed for all attendees to get the most out of the event. In the many informative sessions at TechBash, you’ll learn a crazy number of new things, but we know amazing interactions happen outside of the talks too. Our attendee lounge will have plenty of space for you to hang out and talk with old friends and make new ones. Speakers, attendees, and vendors will gather in the lounge to follow up talks after sessions over coffee and snacks. Our awesome, big name vendors will be there, presenting their latest gadgets and code, and a few job listings as well.

Networking

 

Come Have Fun

In addition to all the learning, we have an attendee welcome reception, game night, and a 200,000 sq. ft. indoor waterpark – the largest in the country! This year we are expanding our Friday family content so bring the kids. Soon, we’ll update our website with much more information about this.

2017 JewelBots session for kidsWaterslides

 

Please Help Us – Spread the Word!

Did you know TechBash is run by volunteers who don’t get paid? Every dime we charge goes right back into running the event. We started this because we wanted to have an awesome, destination conference with world class speakers in our part of the country! And this year we want TechBash to be better than ever. To do that, we need more attendees. Quite frankly, the larger the crowd, the more money we have to enhance the event. So if you have read this far, you must be interested. All we need you to do is spread the word. The event sells itself pretty well, the problem is, people don’t know about it! Tell your friends, co-workers, LinkedIn contacts, and your plumber.

I’ve updated my presentation Creating Awesome Chat Bots with the Bot Framework and C# to use BotBuilder v4. The new way to create bots is quite different from v3. At the time of this post, Bot Builder v4 is still in preview mode. Hopefully it will be going live soon.

In the talk, I demonstrated how to use quite a few tools:

 

Here are the slides for the presentation: BotFrameworkDemoSlides

The code sample can be found on my GitHub repo here: https://github.com/schwammy/conference-bot.

Enjoy!

TechBash 2018 will be better than ever. Here’s some exciting information about our next conference…


TechBash | Oct 2-5, 2018 | Kalahari Resort, Pocono Mountains, PA


Keynote Speaker

We are really excited to have Scott Hunter presenting our keynote this year. If you work with .NET or ASP.NET you should know who he is! If you don’t, here is his bio:

Director of Program Management on the .NET team at Microsoft. His team builds .NET Core, .NET Framework, ASP.NET, Entity Framework, managed languages (C#/F#/VB) and the Web and .NET Tooling for Visual Studio.

Yes, you read the correctly, his team builds a lot of stuff. We told you we bring in the experts!

Full Day Workshops

Our attendees have been asking for these and we have delivered. This year, we are proud to offer you 4 choices. They are optional and cost extra. So you can buy a regular, 3-day ticket to TechBash, or you can opt for a 4-day ticket that includes the workshop + the conference. Again, we weren’t kidding when we said we bring in the experts. Check out the talks and the presenters and click the links for more details.

Get Started Building a Web Application with ASP.NET Core

Presented by Jeff Fritz – Sr. Program Manager, Microsoft

DevOps with Visual Studio Team Services (VSTS)

Presented by Paul Hacker – DevOps Architect, Microsoft and Mitch Denny – Sr. Program Manager, Microsoft

Azure for Developers

Presented by Jeremy Likness – Cloud Developer Advocate, Microsoft, Anthony Chu – Cloud Developer Advocate, Microsoft and Brandon Minnick – Cloud Developer Advocate, Microsoft

Deploying Multi-OS applications with Docker EE

Presented by Anoop Kumar – Solution Architect, Docker

Early Bird Discount

TechBash is always a great deal. But, it’s even better when you get the early bird discount. Our best deal of the year expires on June 30th. Get your tickets now!

It’s time to convince your boss!

There are so many reasons to attend TechBash 2018. Here’s a list of things to help you convince your boss to send you to TechBash:

What you’ll learn:

  • TechBash has great content on topics like ASP.NET, Azure, DevOps, C#, and JavaScript
  • TechBash includes great sessions on current topics to help you get your job done!
  • TechBash has great sessions that help you take your skills to the next level!
  • TechBash offers great sessions that give you a glimpse at what’s new!
  • Yeah, TechBash has non-technical content too. Soft skills matter!

Who you’ll meet:

  • We bring in experts from around the country to teach you!
  • Since TechBash is smaller than a lot of other events, we provide great
    networking opportunities. We have a great Attendee Lounge where you can meet
    with your peers, follow up with speakers, and meet our sponsors too!

Here’s how you’ll save money:

  • If you live in the region, travel is easy by car. That means no expensive plane tickets. No need to fly to Orlando or Las Vegas for a conference. We bring the content to you!
  • Also, if you live in the region, you don’t need extra travel days out of the office!
  • TechBash is not-for-profit event. We aren’t in this to make money and our price reflects that! Our goal is to make TechBash affordable.

You’ll have fun:

  • You don’t have to tell your boss that you’ll have fun too! TechBash is hosted at the Kalahari Resort, home to the largest indoor water park in the country. Our Kalahari hotel prices are great and include water park admission.

I hope to see you in the Poconos this October!

-Andy

First, an important note. This content is for Bot Builder SDK v4 which is, at the time of writing this, in pre-release.

In preparing for some upcoming presentations on Creating Bots, I’m upgrading a bot from Bot Builder SDK v3 to v4. It’s new so there isn’t a ton of documentation or samples out there. But if you are building bots for Azure, now is the time to start learning about v4. It’s quite different than the predecessor.

With the old version, you could use the FormFlow feature to easily create “forms” that would gather information needed by the bot to accomplish a task. Consider that if a bot is taking a pizza order, it would need to ask the customer what kind of pizza, what size, find out about side orders and drinks, etc. We had access to the FormBuilder to easily compose a set of prompts to gather the data. Well, in v4, the FormFlow is gone. That’s ok, the new Bot Builder Framework is better Smile.

Again, I am still learning about the new version of the framework and I won’t begin to explain it all here. I found most of the docs very helpful and it was pretty easy to get going. And of course, you can see the source code for the framework on github. However, when it came to providing choices for the user, I couldn’t quite figure it out. I reached out for some help (being a Microsoft MVP has its privileges) and Gary Pretty came to the rescue, pointing me to a sample here. While that sample was helpful, I’ll provide more of an explanation.

So, here is the part about how it works…

The full solution is on github, check it out if you want.

The replacement for the FormFlow is to use a DialogContainer with a list of WaterfallSteps. You can then add a waterfall step for each question you want the user to answer. The questions are asked with the help of a prompt. There are prompts to collect text, numbers, dates, and more. I want to prompt the user to pick an item from a list, so I use the ChoicePrompt. In the constructor of the DialogContainer I have created a prompt:

    var auto = new ChoicePrompt(Culture.English) { Style = ListStyle.Auto };
    Dialogs.Add("auto", auto);

I’ve set the ListStyle to Auto. I’ll get into more detail on that later.

In my constructor I have a list of choices (List<Choice>) and ChoicePromptOptions which wrap the choices and a few other properties including the RetryPromptString.

    var choices = new List<Choice>();
    choices.Add(new Choice { Value = "Plain Pizza", Synonyms = new List<string> { "plain" } });
    choices.Add(new Choice { Value = "Pizza with Pepperoni", Synonyms = new List<string> { "4 Day", "workshop", "full" } });
    choices.Add(new Choice { Value = "Pizza with Mushrooms", Synonyms = new List<string> { "mushroom", "mushrooms", "shrooms" } });
    choices.Add(new Choice { Value = "Pizza with Peppers, Mushrooms and Brocolli", Synonyms = new List<string> { "vegtable", "veggie" } });
    choices.Add(new Choice { Value = "Pizza with Anchovies" });

    _choicePromptOptions = new ChoicePromptOptions { Choices = choices, RetryPromptString = "Sorry, that isn't on the list. Please pick again."};

I also created a WaterFallStep which is really just a method that looks like this:

    private async Task AutoPrompt(DialogContext dc, IDictionary<string, object> args, SkipStepFunction next)
    {
        await dc.Prompt("auto", "What kind of Pizza would you like?", _choicePromptOptions);
    }

Note that here I am telling the DialogContext to show the ChoicePrompt (referring to it by name “auto”), I supply text (“What kind of pizza…”) and the ChoicePromptOptions. This means I can reuse the prompt by providing different text and choices if I want to.

Back in my constructor, I add that waterfall step to my Dialogs collection:

    Dialogs.Add(Id, new WaterfallStep[]
    {
        AutoPrompt
    });

Check it out, it works! Here are some screen shots from the emulator:

image.

 

More Options

While we are here, let’s get into some other settings.

First there are the list style options:

image

 

Prompt Style Samples

I used Auto before, you can see the result above.

Here is a sample using Inline

image

List looks a lot like auto right? (I think Auto will change depending on the channel for your bot. List is just a list.

image

As the name suggests, None doesn’t provide any prompts at all.

image

Lastly, here is SuggestedAction. It provides a list of buttons for the user to click. Depending on your situation this can be a great option.

image

 

Also the RetryPromptString allows you to provide text to display if the user enters a value that doesn’t match up to one of the provided options. Note that if you don’t supply a RetryPromptString and in response to the pizza question, a user enters “hot dog”, the bot won’t react well. In my full sample code I have multiple WaterfallSteps and if a user enters an incorrect response, the bot resets the steps and starts from the beginning. Including RetryPromptString let’s the bot ask again and everything works out.

There are other ChoiceOptions for a ChoicePrompt. You can specify if the numbers should be displayed alongside the list items and customize character used to separate the items in the list such as using a comma or pipe.

image

User Input

The cool part about this is that regardless of which option you use, the user can respond in a variety of ways.

  • For any of these options, the user can simply enter a “3” to indicate “Pizza with Mushrooms”.
  • Users can also input “Pizza with Mushrooms” to select that option.
  • User can also input “mushroom” and get the right selection. That’s because I provided Synonyms for most of the choices. This is a really cool feature.
  • Interestingly, using a number, the text or a synonym all work for the None prompt as well.
  • And Of course, for the SuggestedAction type, users can click the button.

If you want to see all of the code, you can get it on github. I’ve created a sample that includes all of the prompts.

 

 

 

OK, I’m a little late at getting to this but I have just posted the code for my recent talk: Creating Awesome Chat Bots with the Bot Framework and C#.

To all that attended, thanks for joining me. I had a lot of fun preparing and presenting.

The code is here: https://github.com/schwammy/bot-demo

Unfortunately, this isn’t the easiest sample to get running. I think the code serves as a good example of some great things you can do with bots. However, if you want to actually use it, there are several steps that need to be done in advance. I’ve copied the text below from the readme file. As I say in a lot of my presentations, each step is pretty easy. However, putting them all together, especially for the first time, can be tricky. There are lots of good articles and videos on the web already for getting started with Bot Framework (and LUIS and QnA). I suggest reading up a bit and then follow my very basic instructions to get the code sample running.

Contact me if you have any questions or issues. Have Fun!

Getting Started

Before using this code you need to get set up

  1. Follow the instructions in the Prerequisites section here: https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-quickstart
  2. Install the emulator. The link is on the same page as above in the section: “Test your bot”

  3. You will also need:

Resources Setup

  1. After you create a LUIS account, create a LUIS app. You can leave it blank if you want. TechBashBot.sln contains a file LuisModel.json that can be imported to get started quickly.

  2. After you create a QnA Maker account, create a QnA service. You can import the questionsn and answers from TechBashBot.sln using the QnAMaker.tsv file.
  3. After you create your Azure Account, create a Web App Bot. Just add a resource and search “bot”, then choose Web App Bot

App Configuration

Once all of your resources are set up, you need to configure the code:

  1. Update the web.config file with the MicrosoftAppId and MicrosoftAppPassword for your new Web App Bot

  2. Update LuisDialog.cs by setting the new LUIS model id and subscription key
  3. Update QnADialog.cs by setting the QnA Service subscription key and knowledgebase id