botkit | open source developer tool for building chat | Bot library

 by   howdyai TypeScript Version: v4.15.0 License: MIT

kandi X-RAY | botkit Summary

kandi X-RAY | botkit Summary

botkit is a TypeScript library typically used in Automation, Bot applications. botkit has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

This repository contains the core Botkit library, as well as a series of plugins and extensions for connecting Botkit to messaging and chat platforms and other tools in the bot building ecosystem. Botkit is part of the Microsoft Bot Framework and is released under the MIT Open Source license.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              botkit has a medium active ecosystem.
              It has 11126 star(s) with 2344 fork(s). There are 321 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 22 open issues and 1296 have been closed. On average issues are closed in 137 days. There are 19 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of botkit is v4.15.0

            kandi-Quality Quality

              botkit has 0 bugs and 0 code smells.

            kandi-Security Security

              botkit has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              botkit code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              botkit is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              botkit releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 1896 lines of code, 0 functions and 123 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of botkit
            Get all kandi verified functions for this library.

            botkit Key Features

            No Key Features are available at this moment for botkit.

            botkit Examples and Code Snippets

            No Code Snippets are available at this moment for botkit.

            Community Discussions

            QUESTION

            unable to connect botkit-based bot to BotFramework's webchat (401 errors)
            Asked 2022-Mar-01 at 21:40

            After successfully connecting my locally hosted (botkit-based) bot to Microsoft's Bot Framework Emulator (using a localhost address for the messaging endpoint), I'm now trying to connect it to the framework's webchat (using an ngrok's hostname for my local bot). However, I get an 'unauthorized' when webchat tries to connect. More on my bot:

            Here's what I've tried so far:

            In all those cases my bot's own log displays the same: "Experienced an error inside the turn handler Error: BotFrameworkAdapter.processActivity(): 401 ERROR Error: Unauthorized. Invalid AppId passed on token: blah".

            The browser console shows different results for the last case compared to the website embeds as follows:

            • (website embeds), I see a 502 in the browser's console, which I believe is expected given the 401 response from the bot (as explained by other sources).
            • (Test in Web Chat'), I see several other errors in the browser web console in addition to the 502. One of those errors makes me think that perhaps 'Test in Web Chat' does not actually support non-Azure hosted bots (MsPortalFx/Base/Base.Net Base.Net: Security issue: Request to send auth token to untrusted domain 'myngrokhostname.scm.azurewebsites.net'. Only a fixed set of domains should be configured to receive auth tokens).

            So here are my immediate questions:

            • Does the 'Test in web chat' feature require an Azure-hosted bot?
            • Given that I don't specify myself an appId and password when configuring the webchat channel (since it gets automatically configured), how could I be getting an error indicating that the wrong appId is being used? (note: the appId and password are part of the bot's adapter configuration as explained in the link I shared earlier; this is the only spot in which I entered them, and they were copied directly from the AzureBot configuration console)

            Aside from the above questions, do you have any other suggestions on what could be wrong/missing in my environment? BTW, by now I believe I have read all of the similar posts that refer to 'unauthorized' errors while using webchat and none of them has helped so far, including those referenced in the first comment provided below. For the record, here are the posts (not mentioned in the comment) that I've also read:

            ...

            ANSWER

            Answered 2022-Feb-03 at 12:27

            • I will suggest you to please check the below Github community forum for details on your issue regarding the turn handler and the ‘BotFrameworkAdapter.processActivity():401 ERROR’ in which they state that they tried to connect through two types by local bot: -

            1. By entering the URL, appID/password
            2. To select the bot which is defined by bot file from "My bots" form in the Welcome section.

            In the above two types of connections made, the 1st one always fails while the 2nd one executes successfully always. So, according to them, they are suggesting downloading the latest version of Emulator over.

            https://github.com/microsoft/BotFramework-Emulator/issues/1417

            Kindly refer to it as it may be helpful to you. And as far as ‘Test in webchat’ feature is concerned, it does require an Azure hosted bot because the Bot Framework Emulator that runs on the local device has the Azure Bot service endpoint link embedded in its runtime configuration for which during the execution of the emulator, we have to enter the AppID and password of the Azure Bot service to connect to.

            https://docs.microsoft.com/en-us/composer/test/test-bots-in-web-chat

            Source https://stackoverflow.com/questions/70901441

            QUESTION

            Botkit Slackbot responds with 401 error every time
            Asked 2020-Oct-07 at 10:41

            I'm trying to create a very simple Slack bot using botkit and Google App Engine, but for some reason I keep getting 401 errors any time I message the bot. The weird thing is that the Slack Event Subscription URL (the one ending in /api/messages) validates correctly, and I get a 200 response in GAE logs and validation within Slack.

            But whenever I actually message the bot it always gets a 401 error with no message explaining the error at all. I've tried various combinations of the code below, and have now stripped it down to the bare minimum as found here. Aside from dependencies and a code to decrypt credentials (which I've verified is working as expected), this is my full code at the moment:

            ...

            ANSWER

            Answered 2020-Oct-07 at 10:41

            I had same issue but figured out the problem.

            I had been using Client Secret as clientSigningSecret

            But I should use Signing Secret !

            Source https://stackoverflow.com/questions/64178676

            QUESTION

            Can't connect to Mongo Atlas getaddrinfo ENOTFOUND [cluster name]
            Asked 2020-Jan-21 at 05:49

            Using Botkit to create slack bot but can't connect to Mongo Atlas for storage. Nodejs backend. Using Botkit-storage-mongo

            Code:

            ...

            ANSWER

            Answered 2020-Jan-21 at 05:49

            This issue had nothing to do with botkit.

            Needed to update connection driver version in mongo atlas dashboard.

            Was Node.js 3.0 or later driver version. When I changed that to the Node.js 2.2.12 or later version, that connection string worked.

            Source https://stackoverflow.com/questions/59778351

            QUESTION

            Botium Botkit 4.0: Specify userId
            Asked 2020-Jan-07 at 16:24

            How can I specify userId in Botium connector for Botkit 4.0?

            In 0.7, I was able to specify BOTKIT_USERID in my .spec.js file.

            It was useful to test responses for different user groups.

            ...

            ANSWER

            Answered 2020-Jan-07 at 16:24

            The Botium Botkit 4.x Connector is based on the Botium Generic HTTP/JSON Connector, so it is possible to fully customize the payload, including the user id.

            By default, the message payload is composed of the message text and a unique generated user id:

            Source https://stackoverflow.com/questions/59602148

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install botkit

            This repo contains multiple inter-linked packages containing Botkit Core, platform adapter packages, and some additional plugins and extensions. To build these locally, follow the instructions below.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/howdyai/botkit.git

          • CLI

            gh repo clone howdyai/botkit

          • sshUrl

            git@github.com:howdyai/botkit.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link