{"id":18768564,"url":"https://github.com/dacili/echobotlatest","last_synced_at":"2025-12-10T05:30:18.312Z","repository":{"id":196000899,"uuid":"694127470","full_name":"Dacili/EchoBotLatest","owner":"Dacili","description":"Create, deploy and embed your Azure chatbot 😎","archived":false,"fork":false,"pushed_at":"2023-09-28T09:07:39.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T07:17:04.708Z","etag":null,"topics":["azure","bot","bot-emulator","bot-framework","chatbot","deployment","dotnet-6","echo-bot"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dacili.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-20T11:38:27.000Z","updated_at":"2023-09-22T14:57:06.000Z","dependencies_parsed_at":"2023-09-21T00:21:04.466Z","dependency_job_id":null,"html_url":"https://github.com/Dacili/EchoBotLatest","commit_stats":null,"previous_names":["dacili/echobotlatest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacili%2FEchoBotLatest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacili%2FEchoBotLatest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacili%2FEchoBotLatest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dacili%2FEchoBotLatest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dacili","download_url":"https://codeload.github.com/Dacili/EchoBotLatest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239671416,"owners_count":19677873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","bot","bot-emulator","bot-framework","chatbot","deployment","dotnet-6","echo-bot"],"created_at":"2024-11-07T19:13:08.617Z","updated_at":"2025-12-10T05:30:18.251Z","avatar_url":"https://github.com/Dacili.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create, deploy, and embed your chatbot 😎\n## Echo Bot \n\nEcho Bot is a simple chatbot that returns back everything the user entered in the chat.    \n*If you want to check default generated readme file, check this:* https://github.com/Dacili/EchoBotLatest/blob/master/README1.md \n## Creation\nYou need to install Visual Studio extension **Bot Framework** if not already:    \n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/ee84e938-f952-443f-a677-3691c878f3e6\" width=\"800\"\u003e\n\nCreate new project in Visual studio, and select Echo Bot project.   \n\n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/1349c0d7-8b24-4d3f-8201-5a13564f7269\" width=\"700\"\u003e\n\nAfter you got template, you can customize it as you wish.  \nIn order to test Bot locally you need to install **Bot Framework Emulator**  \n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/06fb1286-6c12-44c6-8dc4-a9ac8018d909)  \nTesting locally:  \n\nhttps://github.com/Dacili/EchoBotLatest/assets/37112852/4febd794-2886-4307-a92d-796fc700fc97\n\n\n## Deployment to Azure\n### Required services\nServices on Azure that you're gonna need are:  \n\n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/24b85c93-8030-481b-95c5-fa7ab5c869a8\" width=\"600\"\u003e      \n\u003cbr/\u003e\u003cbr/\u003e\n1. App Service - for hosting the code of your chatbot (web app type). I chose the free one.   \u003cbr/\u003e\n2. Azure Bot -\n   When setting up the pricing, choose Free tier.   \n   \n   ![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/c268f207-004b-49fd-8039-de937f8dcfce)\n   \u003cbr/\u003e  \n\n3. App Service plan - is linked to app service (you can create it while creating app service), it depends on location, zone, features, cost...   \n   Note: If you need this for some real use cases, probably you will have to upgrade from free services to pay-on-demand.   \n\n### Deploy bot code to App Service\nI was using 2 different approaches to deploy my bot code:  \n**1st approach:** Published my app to Github, then connected app service with that repo on Github. And enabled continuous deployment.  \n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/761cb005-aa61-4bd7-8b63-8eb3dbf6936b\" width=\"600\"\u003e  \n\nIn GitHub actions, we can check deployments:\n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/9517860c-028b-4733-983a-3c51b3b60e89)  \n\n**2nd approach:** Publish directly from Visual Studio. Right-click on the project, and click on Publish.  \n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/01852335-7caa-4ef5-b33e-553ee81ffc22\" width=\"500\"\u003e  \nChoose Azure -\u003e Azure app service -\u003e log in Azure -\u003e you will see your services, choose the app service you want -\u003e publish.  \nOnce you did this process you will generate Deploy.pubxml file, so next time you can just hit the Publish button.  \n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/c5204012-aee9-458e-a6a4-2883a6f7176a\" width=\"600\"\u003e  \n\n\n\n### Connect App Service with Azure Bot\nIn Bot service -\u003e configuration, enter the url of app service, and add sufix /api/messages:  \n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/8503b40e-bfb9-4701-ac50-8e6356bcb11a)  \nSave somewhere the Microsoft App ID.  \nClick on Manage password:  \nCreate a new password, you will be able to copy the VALUE just upon the creation (if you leave the page, you will not be able anymore to copy it).  \n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/8d7181c8-fb3e-47b0-a9fc-5b1d68aee8bc)  \nIn bot code, in appsettings.json, fill that values:  \n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/05b5dd25-4e87-42eb-a0cf-e0c70afcee3a\" width=\"400\"\u003e \n \nbut in appsettings.Development.json make them empty, because the emulator will fail with 401 errors:  \n\u003cimg src=\"https://github.com/Dacili/EchoBotLatest/assets/37112852/8c1cd0b7-0c23-401a-b156-ebfe1de0cfe0\" width=\"400\"\u003e \n\nDeploy your bot code one more time.  \n\n\n### Test bot in Web chat (Azure)\nIf you did everything properly, you should be able to run your bot in Test in Web Chat:  \n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/16b1435c-0753-44fd-9ee8-6f3897681961)   \n\n## Embedding into Web app\nWe're gonna embed it directly in web app. You should use this approach if it's for testing, development.  \n(If it's production, then we would have to gather a token with a secret key, and then get embedded code with that token.)  \nIn Azure Bot service, click on Channels -\u003e Web Chat:\n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/7ffbc229-d7a5-4c65-8839-549768d8d9cc)  \nThen click on Default Site:  \n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/2607558e-a09c-4631-9a18-9bc9886a7d30)  \nIn html page, copy this embedded code, and replace *YOUR_SECRET_HERE* with real secret key, and that's it!  \n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/a3fa9729-e03c-48be-809c-21f3578b22f3)   \n\nYou can even use it in teams, just click on Teams in Channels, and create one. And then open it via Teams:  \n![image](https://github.com/Dacili/EchoBotLatest/assets/37112852/7b796ddb-da4e-4ca8-8f14-29608beaf62a)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacili%2Fechobotlatest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacili%2Fechobotlatest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacili%2Fechobotlatest/lists"}