Skip to content

Instantly share code, notes, and snippets.

View little-einstien's full-sized avatar

Little Einstien little-einstien

View GitHub Profile
<h4>Deploy your bot</h4><p>In this article we will show you how to deploy a basic bot to Azure. We will explain how to prepare your bot for deployment, deploy your bot to Azure, and test your bot in Web Chat.</p><h4>Prerequisites</h4><ul><li>A subscription to <a href="https://azure.microsoft.com/free/">Microsoft Azure</a>.</li><li>A C# bot that you have developed on your local machine.</li><li>Latest version of the <a href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli">Azure CLI</a>.</li><li>Familiarity with <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview">Azure CLI and ARM templates</a>.</li></ul><h4>Prepare for deployment</h4><p>Make sure that bot has been built in Release mode. In Visual Studio, make sure that the solution configuration is set to Release and perform a clean rebuild of the solution before continuing. The deployment may fail if the solution configuration is set to Debug.</p><p>When you Create a bot, the source code generated incl
<h4>Create a bot</h4><p>This assignment shows you how to build a bot by using the Bot Framework SDK, and then shows how to test it with the Bot Framework Emulator.</p><h4>Prerequisites</h4><ul><li>ASP.NET Core Runtime 3.1</li><li>Bot Framework Emulator</li><li>Knowledge of ASP.NET Core and asynchronous programming in C#</li></ul><h4>Templates</h4><ul><ul><li>Visual Studio 2019 or later</li><li>Bot Framework v4 SDK Templates for Visual Studio</li></ul></ul><p>To add the bot templates to Visual Studio, download and install the <a href="https://marketplace.visualstudio.com/items?itemName=BotBuilder.botbuilderv4">Bot Framework v4 SDK Templates for Visual Studio</a> VSIX file.</p><h4>Create Bot</h4><p>In Visual Studio, create a new bot project using the Echo Bot (Bot Framework v4 - .NET Core 3.1) template. Choose AI Bots from the project types to show only bot templates.</p><p><img src="https://docs.microsoft.com/en-us/azure/bot-service/media/azure-bot-quickstarts/bot-builder-dotnet-project-vs2019.png?view=azure-b
"""
This code sample is a part of a simple demo to show beginners how to create a skill (app) for the Amazon Echo using AWS Lambda and the Alexa Skills Kit.
"""
from __future__ import print_function
def lambda_handler(event, context):
""" Route the incoming request based on type (LaunchRequest, IntentRequest,
etc.) The JSON body of the request is provided in the event parameter.
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>