Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex S committed Jun 7, 2021
0 parents commit 3918064
Show file tree
Hide file tree
Showing 42 changed files with 14,427 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
3 changes: 3 additions & 0 deletions empty_bot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# files generated during the lubuild process
generated/
node_modules
7 changes: 7 additions & 0 deletions empty_bot/Nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="BotBuilder.myget.org" value="https://botbuilder.myget.org/F/botbuilder-v4-dotnet-daily/api/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
27 changes: 27 additions & 0 deletions empty_bot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Welcome to your new bot

This bot project was created using the Empty Bot template, and contains a minimal set of files necessary to have a working bot.

## Next steps

### Start building your bot

Composer can help guide you through getting started building your bot. From your bot settings page (the wrench icon on the left navigation rail), click on the rocket-ship icon on the top right for some quick navigation links.

Another great resource if you're just getting started is the **[guided tutorial](https://docs.microsoft.com/en-us/composer/tutorial/tutorial-introduction)** in our documentation.

### Connect with your users

Your bot comes pre-configured to connect to our Web Chat and DirectLine channels, but there are many more places you can connect your bot to - including Microsoft Teams, Telephony, DirectLine Speech, Slack, Facebook, Outlook and more. Check out all of the places you can connect to on the bot settings page.

### Publish your bot to Azure from Composer

Composer can help you provision the Azure resources necessary for your bot, and publish your bot to them. To get started, create a publishing profile from your bot settings page in Composer (the wrench icon on the left navigation rail). Make sure you only provision the optional Azure resources you need!

### Extend your bot with packages

From Package Manager in Composer you can find useful packages to help add additional pre-built functionality you can add to your bot - everything from simple dialogs & custom actions for working with specific scenarios to custom adapters for connecting your bot to users on clients like Facebook or Slack.

### Extend your bot with code

You can also extend your bot with code - simply open up the folder that was generated for you in the location you chose during the creation process with your favorite IDE (like Visual Studio). You can do things like create custom actions that can be used during dialog flows, create custom middleware to pre-process (or post-process) messages, and more. See [our documentation](https://aka.ms/bf-extend-with-code) for more information.
Empty file.
5 changes: 5 additions & 0 deletions empty_bot/empty_bot.botproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/main/Composer/packages/server/schemas/botproject.schema",
"name": "empty_bot",
"skills": {}
}
81 changes: 81 additions & 0 deletions empty_bot/empty_bot.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$kind": "Microsoft.AdaptiveDialog",
"$designer": {
"name": "empty_bot",
"description": "",
"id": "A79tBe"
},
"autoEndDialog": true,
"defaultResultProperty": "dialog.result",
"triggers": [
{
"$kind": "Microsoft.OnConversationUpdateActivity",
"$designer": {
"id": "376720"
},
"actions": [
{
"$kind": "Microsoft.Foreach",
"$designer": {
"id": "518944",
"name": "Loop: for each item"
},
"itemsProperty": "turn.Activity.membersAdded",
"actions": [
{
"$kind": "Microsoft.IfCondition",
"$designer": {
"id": "641773",
"name": "Branch: if/else"
},
"condition": "string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)",
"actions": [
{
"$kind": "Microsoft.SendActivity",
"$designer": {
"id": "90AgFo"
},
"activity": "${SendActivity_90AgFo()}"
}
]
}
]
}
]
},
{
"$kind": "Microsoft.OnUnknownIntent",
"$designer": {
"id": "mb2n1u"
},
"actions": [
{
"$kind": "Microsoft.SendActivity",
"$designer": {
"id": "kMjqz1"
},
"activity": "${SendActivity_DidNotUnderstand()}"
},
{
"$kind": "AdaptiveJSDemo.MultiplyDialog",
"$designer": {
"id": "8aaojQ"
},
"arg1": 5,
"arg2": 5,
"resultProperty": "dialog.result"
},
{
"$kind": "Microsoft.SendActivity",
"$designer": {
"id": "mo1t1C"
},
"activity": "${SendActivity_mo1t1C()}"
}
]
}
],
"generator": "empty_bot.lg",
"id": "empty_bot",
"recognizer": "empty_bot.lu.qna"
}
14 changes: 14 additions & 0 deletions empty_bot/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

const { start } = require('botbuilder-dialogs-adaptive-runtime-integration-express');

(async function () {
try {
await start(process.cwd(), "settings");
} catch (err) {
console.error(err);
process.exit(1);
}
})();

Empty file.
Empty file.
15 changes: 15 additions & 0 deletions empty_bot/language-generation/en-us/empty_bot.en-us.lg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[import](common.lg)

# SendActivity_DidNotUnderstand()
[Activity
Text = Lets do a multiplication: 5x5 = ?
]

# SendActivity_mo1t1C()
[Activity
Text = Result is ${dialog.result}
]


# SendActivity_90AgFo()
-
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added empty_bot/media/publish-az-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions empty_bot/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "empty_bot",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=dev node index.js"
},
"dependencies": {
"adaptive-expressions": "4.13.5",
"botbuilder": "4.13.5",
"botbuilder-dialogs": "4.13.5",
"botbuilder-ai-luis": "4.13.5-preview",
"botbuilder-ai-qna": "4.13.5-preview",
"botbuilder-dialogs-adaptive": "4.13.5-preview",
"botbuilder-dialogs-adaptive-runtime-core": "4.13.5-preview",
"botbuilder-dialogs-adaptive-runtime-integration-express": "4.13.5-preview",
"botbuilder-dialogs-declarative": "4.13.5-preview",
"cross-env": "latest",
"multiply-dialog-package": "file:../multiply_dialog_package"
}
}
8 changes: 8 additions & 0 deletions empty_bot/recognizers/empty_bot.en-us.lu.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$kind": "Microsoft.LuisRecognizer",
"id": "LUIS_empty_bot",
"applicationId": "=settings.luis.empty_bot_en_us_lu.appId",
"version": "=settings.luis.empty_bot_en_us_lu.version",
"endpoint": "=settings.luis.endpoint",
"endpointKey": "=settings.luis.endpointKey"
}
5 changes: 5 additions & 0 deletions empty_bot/recognizers/empty_bot.lu.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$kind": "Microsoft.MultiLanguageRecognizer",
"id": "LUIS_empty_bot",
"recognizers": {}
}
4 changes: 4 additions & 0 deletions empty_bot/recognizers/empty_bot.lu.qna.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$kind": "Microsoft.CrossTrainedRecognizerSet",
"recognizers": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Multiply",
"description": "This will return the result of arg1*arg2",
"type": "object",
"additionalProperties": false,
"id": "MultiplyDialog",
"defaultResultProperty": "dialog.result",
"properties": {
"arg1": {
"$ref": "schema:#/definitions/numberExpression",
"title": "Arg1",
"description": "Value from callers memory to use as arg 1"
},
"arg2": {
"$ref": "schema:#/definitions/numberExpression",
"title": "Arg2",
"description": "Value from callers memory to use as arg 2"
},
"resultProperty": {
"$ref": "schema:#/definitions/stringExpression",
"title": "Result",
"description": "Value from callers memory to store the result"
}
}
}
Loading

0 comments on commit 3918064

Please sign in to comment.