Webchat | SAP Conversational AI webchat let you deploy a bot straight | Chat library

 by   SAPConversationalAI JavaScript Version: rel/1.4.45 License: MIT

kandi X-RAY | Webchat Summary

kandi X-RAY | Webchat Summary

Webchat is a JavaScript library typically used in Messaging, Chat applications. Webchat has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

The SAP Conversational AI webchat let you deploy a bot straight to a website. It will be embed and available through a chat box on your pages. The webchat is one of the many channels available on SAP Conversational AI, and end-to-end bot building platform. This webchat is built using the React library, along with Redux for state managment.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Webchat has a low active ecosystem.
              It has 73 star(s) with 203 fork(s). There are 21 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 25 open issues and 13 have been closed. On average issues are closed in 93 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Webchat is rel/1.4.45

            kandi-Quality Quality

              Webchat has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              Webchat 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

              Webchat releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              Webchat saves you 357 person hours of effort in developing the same functionality from scratch.
              It has 853 lines of code, 0 functions and 45 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 Webchat
            Get all kandi verified functions for this library.

            Webchat Key Features

            No Key Features are available at this moment for Webchat.

            Webchat Examples and Code Snippets

            No Code Snippets are available at this moment for Webchat.

            Community Discussions

            QUESTION

            How to set up HTTPS for Rasa chatbot?
            Asked 2021-Jun-04 at 13:38

            I have a chatbots (5 pcs) running on testbed cloud server. They all work perfectly in HTTP mode but no I need to change to HTTPS mode and there the problem started. I can get HTTPS working easily but then the chatbot widget doesn't work any more.

            My environment:
            Chatbot engine: Rasa 2.2 in docker 20.10.6 container
            Chatbot widget: Botfront webchat 0.11.12
            Web server: Nginx 1.14.0
            Server: Ubuntu 18.04

            I don't know even what is right way and after banging my head for a week and trying different ways, now I suppose I need to set up Nginx reverse proxy. I think that the problem is websocket between rasa and webchat.

            This is how I start one chatbot

            docker run --name=sakky --user 1003 -v $(pwd):/app -p "5006:5005" rasa/rasa:2.2.0-full run -m models --enable-api --cors "*" --debug

            Here are my config files Index html

            ...

            ANSWER

            Answered 2021-Jun-04 at 13:38

            Is it possible for you to update to at least Rasa 2.5? There were some socket.io fixes in that one!

            You also need to make sure you've configured your bot to have the websocket channel open.

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

            QUESTION

            Show the "TypingIndicator" when the Microsoft Bot is processing any requests
            Asked 2021-May-04 at 22:00

            I am trying to show the "sendTypingIndicator" when the chatBot (Microsoft Bot Framework) is processing any requests. I added sendTypingIndicator: true and sendTyping: true but still it does not show any animation, I searched in Microsoft documentation but i didn't find any specific. This what I have:

            ...

            ANSWER

            Answered 2021-May-04 at 22:00

            so what you need is sending a typing activity from the bot when it receives a message request.

            There's the ShowTypingMiddleware middleware that does just that.

            You just have to add it in the adapter like this:

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

            QUESTION

            Welcome Message not firing for Microsoft Bot (using framework v4) hosted in LivePerson using Direct Line (NOT WebChat)
            Asked 2021-Apr-20 at 15:23

            First, there has been plenty written on this subject in the context of WebChat, and there are fixes out there that show implementation. Here's a link that is pretty good:

            This problem is NOT a WebChat problem, it's a Direct Line problem that uses a 3rd party named LivePerson to host the bot which lives in Azure, and is connected via Direct Line. Hence, I do not control the client code (like I would if I were writing/hosting the bot using html/JavaScript). However, the take away here is "do not use conversationUpdate", which I am using in my bot, but please read on...

            I'm hosting my Microsoft v4 Bot in LivePerson using Direct Line. The bot uses Adaptive Dialogs to welcome the user and ask them a question before the user sends any input using the OnConversationUpdateActivity():

            ...

            ANSWER

            Answered 2021-Mar-13 at 17:32

            QUESTION

            Entry Point for LivePerson "Welcome Event" in Microsoft Bot framework using Direct Line
            Asked 2021-Apr-20 at 15:21

            I'm currently integrating LivePerson via Direct Line using the Microsoft Bot Framework (v4).

            In the LivePerson Developer docs it states:

            Ensure you have an ‘entry point’ in your bot that responds to the default ‘WELCOME’ action send by a new chat customer.

            However, here are no code samples available on exactly how to do that. Does a new http endpoint needs to be built that LivePerson can call, or does this 'event' utilize the existing '/api/messages' endpoint?

            The reason I want to react to this event is b/c when starting a chat with the bot directly in LivePerson test chat, I'm not seeing the bot's initial welcome message and first question. Nothing works until I type something, which the bot interprets as the answer to the first question you never see. When using the emulator and testing in WebChat in Azure, the bot works as expected.

            I'm using Adaptive Dialogs, with a RootDialog as my entry point.

            ...

            ANSWER

            Answered 2021-Mar-10 at 13:09

            My guess would be that LivePerson sends a message to your message endpoint with the following payload:

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

            QUESTION

            Microsoft Bot Framework, Set User State From Javascript
            Asked 2021-Mar-18 at 19:09

            I am attempting to proof of concept a simple support & ticketing bot using Microsoft Bot Framework v4 and Azure. I have successfully created a bot via the Bot Framework Composer and deployed it to Azure using a Web App Bot. I have configured and installed the BotFramework-WebChat component on my test site and successfully connected the bot to it. The BotFramework-WebChat component is installed via cdn.botframework.com. The test site is a single page application and the bot sits alongside this such that it can be accessed at the users convivence.

            Everything is working as expected. I would like however to post certain contextual information to the Bot depending on the current browser state. For example, if a user is looking at product ABC when they converse with the bot I'd like the bot to know this. To achieve it I'd like to update the user state on the bot channel, preferably via vanilla JavaScript when the main application state changes. I'd like to do this seamlessly in the background and I do not want to rely on additional frameworks such as React (the Microsoft Documentation references React heavily and I unfortunately have no understanding of the particular product so find it difficult/impossible to follow).

            My question is therefore in two parts. Is the above possible using the API provided by the BotFramwork-WebChat component and if so how would one go about doing so? If it is not possible I would also appreciate any assistance on alternative methods should such alternatives exist.

            ...

            ANSWER

            Answered 2021-Mar-02 at 14:11

            If you just want to capture information at the time the user renders the webchat session, you can do this by sending a custom event, which you'll also need to handle in your bot code. This specific code will not work if you are trying to create a single instance of the bot that persists across multiple pages, and you are wanting the page details sent every time, but the same concept should apply. This method sends the details only on the initial connection to the bot.

            First you need to send an event from your bot rendering via custom store. Here is how I did it.

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

            QUESTION

            How can i unit test my bot without dialogs? (c#)
            Asked 2021-Mar-18 at 17:43

            i am currently working on automated unit tests inside the Microsoft Bot Framework 4. From there, i want to check simple conversational statements from the bot. In the CoreBot Tests sample (https://docs.microsoft.com/en-us/azure/bot-service/unit-test-bots?view=azure-bot-service-4.0&tabs=csharp) is demonstrated how it is possible to do that but for me, my bot isnt using dialogs (as far as i know).

            My question here is now, how can i unit test simple Question/Answer Statements? My main goal is to unit test my QnA Maker Knowledge Bases.

            ...

            ANSWER

            Answered 2021-Mar-18 at 17:43

            I can't help you with the syntax for C#, but I have some tests in my nodejs bot that are not dialogs and this may help you. Essentially, you just create a TestAdapter and pass that with an activity to your bot. For example, here is part of my dispatchBot.test.js file:

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

            QUESTION

            Welcome/Greeting message delay in webchat MS botframework
            Asked 2021-Mar-12 at 12:55

            I was recently investigating an issue related to a delay in rendering a welcome/greeting message for the first time when webchat is launched. The very first activities network request (before showing the welcome/greeting message) is usually 2-6s long(mostly it's either 2.5s or 5-6s). We are trying to implement this using BotFramework webchat version: 4.10.1 with react (minimizable version).

            What I'm trying to accomplish is to load welcome/greeting message faster than the current time and upon checking the performance profile I found that activities network request(directline.botframework.com/v3/directline.../activites) is taking either ~2.5s or ~5.5s and after that, there is some more buffer time in between before the welcome message gets rendered.

            I tried to record the performance profile of both cases(2.5s/5-6s)

            2.5s https://i.imgur.com/InEyHxl.gif

            5s https://i.imgur.com/yl3l6Z8.gif

            Trying to find more information on how to improve/fix this behavior and gain more insights on this. I would be really glad if anyone can share your thoughts on this issue. Please let me know if I need to provide more information.

            ...

            ANSWER

            Answered 2021-Mar-12 at 12:55

            This is probably a bug that should be solved in a more recent version of webchat

            bugreport in github

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

            QUESTION

            how to disable/enable attachment button inside chatbox using javascript in C# bot framework
            Asked 2021-Mar-12 at 02:48

            I have created a Microsoft bot framework using this tutorial. I created a chatbot using this javascript. I need to Enable/Disable the attachment button based on the bot message. My condition is to Enable the attachment button when the bot sends a message to the user to submit the attachment.

            Html:

            ...

            ANSWER

            Answered 2021-Mar-12 at 02:48

            You can accomplish this by filtering the activities that pass thru Web Chat's store. As you can see below, I first query for the attachment button's elements - there are two, a hidden input field and the button.

            Next, I check if the activity has an attachment and if that attachment's contentType matches "application/vnd.microsoft.card.adaptive". If it does, then the attachment input & button is enabled. Otherwise, the attachment input & button is disabled for all other activities.

            The whole if statement is wrapped in a time out. This is necessary because the check on the contentType of the attachment will complete before the store has finished rendering the activity resulting in a persistently disabled button. Setting a time out of ~300 ms allows the store to complete its rendering action. You can adjust the time out, but less than ~50 ms and the above will start occurring. Longer than ~500 ms and it will start to be noticeable to users.

            Please note, isolating the input & button elements relies on attributes and classes defined by Web Chat. While it is unlikely to be an issue, it's possible those definitions could change in future releases resulting in breaking changes and requiring updates to your code.

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

            QUESTION

            How can you make Twilio Webchat a full screen window?
            Asked 2021-Mar-02 at 02:00

            I'm trying to style the Twilio webchat sample so that it doesn't appear as a page intermodal and instead displays content at 100% width and height. I've gotten most of the way there:

            However I'm not sure how to remove the expand/collapse buttons or have the chat auto initialise the chat on load. In essence the main question is: how can I use Webchat as a full-screen utility instead of a pop-up?

            ...

            ANSWER

            Answered 2021-Mar-02 at 02:00

            Twilio developer evangelist here.

            To have the chat auto initialise on load you should trigger the startEngagement action when the chat has loaded. I think you can do that with:

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

            QUESTION

            BotFramework conversation not found
            Asked 2021-Mar-01 at 22:20

            I've been trying to test a function app sending an activity to a bot that has an existing conversation, but to simplify for this post, I'll speak in terms of sending it via postman. I've have been butting up against an issue wherein the conversationId is not being found, despite confirming it does exist beforehand and I'm not entirely sure what I've done wrong.

            I log onto portal azure, and go to my bot to Test in Web Chat. I authenticate the bot, and the conversation starts.

            Here, I've checked the conversationId is exactly what I expect to be by examining the conversation calls response in Chromes debug tools, in this case it is 1GJ0N9UYKGyELu3LqpDF6b-a

            Here is the exact conversation response...

            ...

            ANSWER

            Answered 2021-Mar-01 at 22:20

            So to answer my own question, to make a long story short. It looks like the example activity supplied in the Microsoft documentation doesn't quite cut it. There is something else that is required, although I didn't have time to narrow it down.

            The solution I took, as I was running low on time was to write a method to save an activity to cosmosDb as part of the authentication flow. This way I have an ironclad activity that I know has worked in at least the invoke stages of the dialog, and I know a conversation reference is correct and present. From there I pulled the activity and changed 4 fields in it.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install Webchat

            We build products to help enterprises and developers have a better understanding of user inputs.
            NLP API: a unique API for text processing, and augmented training.
            Bot Building Tools: all you need to create smart bots powered by SAP Conversational AI's NLP API. Design even the most complex conversation flow, use all rich messaging formats and connect to external APIs and services.
            Bot Connector API: standardizes the messaging format across all channels, letting you connect your bots to any channel in minutes.

            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/SAPConversationalAI/Webchat.git

          • CLI

            gh repo clone SAPConversationalAI/Webchat

          • sshUrl

            git@github.com:SAPConversationalAI/Webchat.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

            Explore Related Topics

            Consider Popular Chat Libraries

            uni-app

            by dcloudio

            taro

            by NervJS

            ItChat

            by littlecodersh

            python-telegram-bot

            by python-telegram-bot

            tinker

            by Tencent

            Try Top Libraries by SAPConversationalAI

            bot-connector

            by SAPConversationalAIJavaScript

            SDK-NodeJS

            by SAPConversationalAIJavaScript

            starter-NodeJS

            by SAPConversationalAIJavaScript

            SDK-iOS

            by SAPConversationalAISwift

            SDK-python

            by SAPConversationalAIPython