Category: Chat

  • GPT-3 and Me: Is Conversational AI the End of Education as We Know It? (Part IV)

    Conversational AI has the potential to revolutionise the way we think about education. For example, at Noodle Factory, we use conversational AI in our “Walter” platform to provide teachers, course instructors, and students with AI-powered teaching and learning assistants. These assistants perform various tasks: consolidate course content, create lesson plans, generate knowledge bases, offer personalised tutoring, provide online course assistance, moderate virtual study groups, and more. 

  • Build an Automated, AI-Powered WhatsApp Chatbot with ChatGPT using Flask

    We all agree to a point that by now we not only have heard about ChatGPT but also got a hands-on experience with it and we Loved it! For those who haven’t got a chance to get in touch with ChatGPT here is a brief introduction: ChatGPT is a large language model trained by OpenAI, and it was designed to assist users by generating human-like text based on the given prompt. It can help with a wide range of tasks, such as answering questions, providing information, and engaging in conversations on a variety of topics.

    On top of that ChatGPT has left us dumbstruck by generating incredible answers to almost anything, you throw a question and it will provide you with the correct answer that we were finding hard to write.

    At Pragnakalp we believe in making things user-friendly, since ChatGPT is something that will ease our life by leaps and bounds, we thought of making it accessible at our fingertip. So we brainstormed and came up with the idea of using ChatGPT on WhatsApp!!

    Yes, you read it right “ChatGPT on WhatsApp!” or what if we say ChatGPT on any of your preferable platforms?

    This blog describes how you can integrate the WhatsApp Business API, hosted by Meta, and create a python application based on the Flask web framework that can receive user WhatsApp messages and utilize ChatGPT to respond to those messages in detail.

    Step 1: Integrate WhatsApp Business API

    To automate the messages with the Flask application, we must integrate the WhatsApp Business API. For that follow our blog WhatsApp Business API Setup to send and receive messages using a test phone number. Please ensure that you have followed the blog’s instructions before proceeding.

    Step 2: ChatGPT API

    We’re going to use ChatGPT API to respond to users’ messages. Detailed instructions for setting up and using ChatGPT are provided in this section.

    The ChatGPT API offers an easy way to include technologically advanced language understanding in your web services. Since there are currently no official API endpoints available, the ChatGPT community has developed a number of simple solutions that you can use.

    Prerequisites

    Before we begin utilizing the unofficial ChatGPT API, please follow the steps listed below to configure the code.

    1. Clone this Git repository.

    git clone https://github.com/mmabrouk/chatgpt-wrapper

    2. To use this API, please make sure that you have installed setuptools

    pip install setuptools

    3. Install dependencies by running the below command.

    pip install git+https://github.com/mmabrouk/chatgpt-wrapper

    4. Installing a browser in Playwright is required for launching the application. By default, the script will use Firefox.

    playwright install firefox

    After running the above command it will give a message as shown in the below image, if you are installing playwright for the first time, it will ask you to run playwright install command one time only.

    5. After installation is done, you can run the program in Install mode by running below command

    chatgpt install

    It will open a new browser window as shown in the below image, and ask for login or sign up for chat.openai.com.

    Log in and stop the running program and restart it.

    Now you can use it with the shell command chatgpt <your prompt> without “Install” as shown in the below image

    Note: However after some time, if you are not actively using ChatGPT it will expire your session automatically and you need to log in again with chatgpt install

    Create an instance of the class, use the ask method to send a message to OpenAI, and then use the response to interact with ChatGPT via the ChatGPT class as an API.

    from chatgpt_wrapper import ChatGPT
    import time

    prompt = "what is coronavirus? explain me in 2 3 lines"
    bot = ChatGPT()
    response = bot.ask(prompt)
    print("Prompt: ",prompt)
    print("Response: ",response)

    This is the response we got from chatGPT API.

    Step 3: Integrate ChatGPT API with Flask Application

    After our ChatGPT API got installed successfully, it is time to integrate it with the flask application.

    Now we need to modify the flask app that we have created in Step 1. Replace your existing code with the below code to get the user message’s response from ChatGPT.0][‘value’][‘contacts’][0][‘wa_id’] send_msg(response,receiver_number) except: pass return ‘200 OK HTTPS.’ if __name__ == “__main__”: app.run(debug=True)

    from flask import Flask, request
    import requests
    from chatgpt_wrapper import ChatGPT


    app = Flask(__name__)

    def send_msg(msg,receiver_number):

    headers = {
    'Authorization': 'Bearer VERIFICATION_TOKEN',
    }
    json_data = {
    'messaging_product': 'whatsapp',
    'to': receiver_number,
    'type': 'text',
    "text": {
    "body": msg
    }
    }
    response = requests.post('https://graph.facebook.com/v13.0/PHONE_NUMBER_ID/messages', headers=headers, json=json_data)
    print(response.text)

    @app.route('/receive_msg', methods=['POST','GET'])
    def webhook():
    res = request.get_json()
    print(res)
    try:
    if res['entry'][0]['changes'][0]['value']['messages'][0]['id']:
    chat_gpt_input=res['entry'][0]['changes'][0]['value']['messages'][0]['text']['body']
    bot = ChatGPT()
    response = bot.ask(chat_gpt_input)
    print("ChatGPT Response=>",response)
    receiver_number=res['entry'][0]['changes'][0]['value']['contacts'][0]['wa_id']
    send_msg(response,receiver_number)
    except:
    pass
    return '200 OK HTTPS.'


    if __name__ == "__main__":
    app.run(debug=True)

    Note:

    Run the flask application in the terminal: python SCRIPT_NAME.py
    Run the ngrok on terminal: ngrok http 5000

    Step 4: Test Chatbot

    Now come back to the “Getting Started” page as shown in the below image and click on the “Send Message” button.

    For all events, including message send, message delivery, and message read, you will receive a response on your Flask app at the receive_msg endpoint. The ChatGPT response can be checked on the server terminal as well.

    Here is the ChatGPT response on our server.

    You can also check the conversion with ChatGPT on WhatsApp

    We hope that you have successfully integrated the ChatGPT in WhatsApp and having fun in using it.

    Originally published at Build An Automated, AI-Powered WhatsApp Chatbot With ChatGPT Using Flask on January 6, 2023.


    Build an Automated, AI-Powered WhatsApp Chatbot with ChatGPT using Flask was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.

  • Bot Libre 3D — Digital Humans for the Metaverse

    Bot Libre 3D — Digital Humans for the Metaverse

    They say a house is not a home if there is no one there. Well, what good is an advanced virtual space without access to digital assets like 3D chatbots to interact with?

    Bot Libre, the open-source platform for chatbot development and the metaverse, has launched an APK app for its metaverse solution where people can experience how their 3D chatbots can engage customers in the metaverse.

    Within the metaverse, Bot Libre 3D chatbots can act as customer support officers, tutors, event hosts, conference facilitators, designers, and even friends. You can build your bot from scratch or choose from thousands of our language-independent bots available, train them, and deploy them across varying virtual spaces. For instance, they can be added to a storefront to answer shoppers’ questions and even study customers’ habits to offer more personalized recommendations.

    https://medium.com/media/41ebafa597b98b593f6a071d37759459/href

    These digital humans can teach you a new language, resolve your banking issues, help you sell your NFTs, offer cool recommendations on what to purchase or places to visit in the metaverse, talk about politics and even dance for you. The 3D avatars can also be used to realistically represent humans at conferences, concerts, or even when having a friendly conversation with others.

    For persons accessing the app, and integrating it with their business solutions, send an email to sales@botlibre.com for support.

    Bot Libre is also accepting members to our Metaverse program, Bot Libre Metaverse Enterprise, where you can get early access to our metaverse solutions and support to develop your product or service for the metaverse. To learn more about Bot Libre metaverse solutions, send an email to sales@botlibre.com.

    Learned something? Please give us a clap below and share!


    Bot Libre 3D — Digital Humans for the Metaverse was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.

  • How To Add A Chatbot To Webflow

    Webflow is a cloud-based CMS that helps to build great websites. Webflow allows users to design, build and host a website with simple and easy steps.

    In this blog, we are building a website and adding a chatbot so that website visitors can take help from the chatbot to understand the product.

    Sign up on Webflow CMS and design your website. Once you finish designing, follow the given steps to add the Kommunicate chat widget to your website.

    1. Log into your Webflow account and open your site in design mode.

    2. Click on the alphabet W icon present in the top left corner of the design window.

    3. Under Project Settings, you will see the Custom Code feature, visit the section and check for the Footer code option.

    4. Visit the Footer code option and add the Kommunicate Install script inside the code section as shown below and click on Save Changes.

    NOTE: You will have to select the Kompose chatbot from the RULES section of the Kommunicate dashboard to handle all the incoming conversation so that chatbot will handle the new conversations.

    5. Now, go and Publish your site using the Publish option given on the top right corner of the page.

    6. Chat widget is added successfully

    Now, your website users can use the chat option to get help about your product and all these chats can be monitored from the Kommunicate dashboard, also support agents can involve in handling chats when the chatbot is unable to answer.

    Originally Published Here


    How To Add A Chatbot To Webflow was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.

  • MS Teams Bot: The future of ITSM (Ultimate Guide -2023)

    The world has turned into a digital hub. Thanks to the pandemic, there has been a global shift for organizations after embracing remote work. The trend will continue, with many organizations adopting remote work to increase the well-being of their workforce.

    According to Upwork, 73% of departments will have remote workers by 2028. With more people working from home, teamwork and information exchange is paramount. One of the best–possible approaches to provide ongoing support to a remote team and ensure the optimal functioning of your organization is via collaboration platforms. Top IT companies like Microsoft have created communication tools like Microsoft Teams to help employees stay connected with their co-workers regardless of location.

    Microsoft Teams is your central hub for collaboration. Be it team meetings, workplace chat, videoconferencing, presentations, or sharing data and apps, everything is saved in a single shared workspace. The best part is you can access it from any device, making it one of the best-bet platforms that guarantee a collaborative working atmosphere and ongoing employee support while maximizing efficiency.

    By October 2020, MS Teams had surpassed 115 million daily active users, a 475% increase from November 2019. A whopping 2.7 billion meeting minutes were logged in a single day in March.

    Current uses of IT support using MS Teams:

    • Collaboration on a document
    • Team conversation and one-on-one chat
    • Application Integration
    • Video meetings
    • File storage
    • For data visibility and governance

    Microsoft Office integration options

    • To schedule online live events

    Introducing MS Teams Bot

    A bot is a new feature/functionality in Microsoft Teams that enables you to engage with and acquire information from a program or website in a text/search/conversational way.

    In truth, bots are basically automated intelligence programs. They’re delivering us several things but most significantly, it’s in a natural and accurate language. Bots are sophisticated enough to both grasp what we are requesting but also deliver in similarly detailed language back to us. Of course, we only want information that is useful to the user based on queries or status updates connected to the individual seeking the information.

    When we look at how we all used to get information, you’ll notice that whenever we seek information, whether it’s on the internet or a particular website, we always need to utilize Search Tabs.

    Whether you’re searching on Bing, Google, or a more complicated search engine like SharePoint or a website, it doesn’t matter. You must understand how to utilize search, what operators to employ, and how to use that search effectively to discover relevant information. Search engines present general information based on your search criteria in your search tabs.

    That method of gathering information has improved, and we now use more natural language in our searches. Whether you’re using Cortana, Alexa, Google, or Siri, we’ll first ask those virtual assistants to give us information.

    The way we search for information has evolved. We’re approaching it from the standpoint of a discussion. This will be accommodated by bots, such as those in Microsoft Teams.

    No Code — Free MS Teams Chatbot Get Started

    What are the benefits of MS Teams Bot?

    Bots are customizable and can be a part of a bigger application or created as standalone applications. The majority of bots on the Microsoft Teams platform are designed to boost collaboration and coordination by reducing the need for context switching and automating particular processes or activities. Be it HR, Service desk, or as an ultimate tool of workplace support and collaboration, MS Teams Bot is weaving its magic in each of these sectors enhancing the overall productivity of an individual and the organization.

    Here are some benefits of MS Teams Bot in the IT support department: Save time — enhance output

    The key advantage of implementing MS Teams Bot is the time savings. The phrase automation relates to mechanization and computerization, which is the process of reducing time and increasing accuracy in a work by increasing speed. Saving time on work is directly tied to freeing up time for the employee to engage in other productive activities rather than executing a job that requires mechanical repetition of procedures.

    Minimize expenses

    More productivity is achieved when an individual is engaged in more activities that earn the greatest money for your company within the same working hours. Since time and money are constantly intertwined, more productivity implies more money saved for the company.

    Fewer human errors

    Since MS Teams Bot removes the human intervention leading to an automated workflow resulting in fewer administrative mistakes. Humans are prone to errors but automated programs, on the other hand, do not produce errors. The next job is automatically triggered in an automated workflow system through MS Teams Bot, and the person in charge of the task is also informed of the action anticipated by him. As a result, there is no mishap or faulty processes leading to erroneous results.

    Incorporate features from other services

    Microsoft Teams has an app store, similar to Android and iOS. Bots from other organizations and services are all available in the Teams app store. You can occasionally engage with the bot directly in Teams after installing it to gather, capture, and submit important data. For example, Zoom’s Microsoft Teams connection lets you use bot instructions to initiate or join meetings.

    Service desk transformation

    Every year, billions of dollars are spent on software linked to digital transformation. IT Service Desks are now in charge of integrating these new service desk software installations that are tied to substantial digital transformation programs. As a consequence, ticket traffic is increasing, putting pressure on ticketing costs and the IT service desk. Virtual agents, such as bots, can help the IT service desk become lean and flexible, allowing end-users to remain afloat and sail over the technological tsunami. MS Team bots, which are filled with specific IT service Desk knowledge bases and self-service portals, may help minimize the number of calls to support operations. AI, automation, and bots can also be used to execute the ITIL framework’s best practices for integrating service delivery with strategic goals.

    Simplified approvals

    Approval procedures that are clumsy slow down whole workflows. When manual approvals are required, employees often spend hours submitting papers by hand and following down on approvers. Approval procedures are streamlined as a result of digitization and process automation. To avoid delays, automated alerts notify approvers of new documents, while reminders indicate that approval is still waiting. Thanks to MS Teams Bots, staff no longer have to pursue approvals since they are signed off on right away due to automatic alerts.

    Useful data

    Reports containing graphical data for enhanced visibility are a significant advantageous aspect of an automated process. With precise insights from MS Teams Bots, IT teams can rapidly detect crucial bottlenecks like resource allocation and component availability and avoid expensive overruns. The capacity to take action based on relevant data in a timely way is feasible with automation and the capturing of important performance measures.

    Enhanced task management

    Improvement in Task Management is yet another important advantage of process automation which is a major benefit of MS Teams Bot. This again leads to greater communication. Due to automation, multiple departments can remain in contact more readily, enhancing communication. All automated workflows generally come with Tasks showing ‘Dashboards’ and reminders intimating ‘Calendars’ which are available to all people utilizing the process which is another feature of automated workflows — ‘Visibility’. This allows Managers to rapidly identify the status, bottlenecks, and chances for process improvement.

    Tickets are resolved more quickly.

    Employees may interact more quickly, resulting in shorter ticket waits. They can locate experts, interact with them, and resolve cases quicker thanks to the ChatOps bot, which helps them identify other professionals who have worked on similar issues.

    Find information without having to switch contexts.

    Agents may access information about tickets, related occurrences, and knowledge articles without moving between apps by using natural language and instructions in Microsoft Teams. Agents do not need to hop between Microsoft Teams and Smart IT to update an issue. They may use the chat to add activity comments, change the assignee, and update the ticket status

    Collaboration is simple

    When a problem is reported, utilizing the Microsoft Teams channel makes collaborating extremely simple. Employees may pool their knowledge to work on problems and solve them swiftly.

    Issues are less likely to bounce back.

    Previously, a problem would bounce from one team to the next, sometimes numerous times, while the company tried to locate a team that could push the issue to resolution. With MS Teams Bots, IT employees can interact with specialists from other teams and fix them without having to bounce them back and forth.

    Increase in productivity

    Most IT employees are responsible for a large number of activities that are simple yet take a long time to complete Routine chores like scheduling meetings across several employee calendars, arranging meeting rooms, reporting hours, and compiling reports can become a productivity killer. MS Team Bots can be used to drastically reduce time by automating them. Employees can now devote more time to critical activities, resulting in increased efficiency and output.

    Other advantages of using Microsoft Teams chatbots include:

    • Support is available 24 hours a day, 7 days a week.
    • Troubleshooting procedures such as printing, internet connection, and more can be automated.
    • Authentication of users
    • Assist in the resolution of work-from-home concerns
    • Requests for software and hardware will be recorded automatically
    • The management approval procedure is automated
    • Staff will be notified of any outages, whether they are urgent or planned.
    • Integrates with your current ITSM tools, such as ServiceNow
    • Provides the same capability in Microsoft Teams and SharePoint.
    • Extract data from existing knowledge bases, FAQs, and user manuals and send it to a popular chat service like Microsoft Teams.

    Did you know you can transform your Teams into an internal IT help desk with on-the-go self-service?

    Workativ is a no-code interface solution that lets you create sophisticated, intelligent, and responsive conversational chatbots that work in tandem with Microsoft Teams. We collaborate with you to design your AI’s persona, reactions, and more — and the greatest thing is that your bot learns and improves its responses based on the feedback it gets. More information can be provided to the bot as more people interact with it via Teams, allowing it to improve its level of help. The bot also collects data that allows us to provide you with information such as demographics, the most popular times to contact online support, and other information that allows us to personalize your experience better.

    Use Workativ today to sky-rocket your organizational productivity!

    This blog was original and published here.


    MS Teams Bot: The future of ITSM (Ultimate Guide -2023) was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.

  • How Chatbots Can Boost Customer Experience and SEO

    Chatbots have the potential to become the ultimate secret weapon to help you improve your business in quite many ways.

  • GPT-3 and Me: Opportunities and Risks Associated with AI in Education (Part III)

    Artificial intelligence (AI) is rapidly becoming common in classrooms worldwide. Many educators are exploring potential technologies like GPT-3 (the large language model behind ChatGPT) to improve teaching and learning. Education technology firms, such as Noodle Factory, are actively developing tools to assist educators in tapping into the power of conversational AI. While AI could offer many exciting possibilities, educators need to be aware of the potential risks and ethical considerations that come with it. 

  • GPT-3 and Me: How Chat and Conversational AI Are Changing Education (Part II)

    Artificial intelligence (AI) is rapidly becoming a common feature in school classrooms and corporate workshops worldwide, with many educators and instructors exploring the potential of this technology to improve teaching and learning outcomes.One of the key features of conversational AI that sets it apart from other technologies is its ability to generate human-like text and perform a wide range of language-related tasks. 

  • 5 Proven Ways How Chatbots Can Help Enterprise Businesses Scale

    Enterprises. Think behemoths. The big guns. The giants in the industry.

    While there is no cut-and-dry explanation as to what exactly an enterprise is, one can safely assume that enterprise businesses are those whose revenues range from $1 million to a few billion dollars.

    The E.U. defines enterprise businesses as those that employ more than 250 people.

    According to Abhimanyu Singh, who leads the sales function here at Kommunicate, “Any company whose revenue exceeds $1 million is an enterprise by Kommunicate’s lens, but then, this varies from company to company.”

    As you can see, the definitions may vary, but there does seem to be a clear picture emerging as to what an Enterprise business is.

    An Enterprise business is a well-established, well-oiled machinery that employs a large number of people, has very well-defined processes, a complex structure, and generates a large amount of revenue.

    We can already see enterprise businesses adopting chatbots to automate some of their functions. But there is a lot more that chatbots can do to help grow an enterprise. This is exactly what we are going to look at in this article.

    Before we dive in, what exactly is an enterprise chatbot?

    What is an enterprise chatbot?

    An enterprise chatbot is a scaled-up version of a regular chatbot built to match the scale of a large organization. A normal chatbot and an enterprise chatbot solve essentially the same problem. The key difference here to note is that an enterprise chatbot helps solve complex, enterprise-level challenges to the business.

    Here are some of the methods Enterprise chatbots can help businesses scale:

    1. Chatbots can help in handling enterprise-level volume of support queries:

    Businesses, especially eCommerce websites, occasionally see a massive spike in the number of concurrent users. This is especially during peak shopping seasons such as Cyber Monday or Black Friday.

    Spikes may also come in during long holiday weekends, for which your business needs to be prepared. To mitigate these, you cannot entrust a normal chatbot. A normal bot may not have the bandwidth or the technical capability to handle thousands of users at the same time.

    This is where Enterprise chatbots come in. Enterprises have the freedom to scale their conversation systems so that the chatbots can handle the plethora of queries that come with systems of such scale.

    2. Chatbots can help enterprises in their Omnichannel approach

    Customers expect consistency. In fact, investing in a consistent customer experience can potentially double your revenue, according to this research by the Temkin group.

    A good customer experience means customers are willing to spend more on your product.

    Case in point, the Apple stores. Sleek interiors, products that are displayed beautifully in aesthetically pleasing cases, and helpful and knowledgeable staff. These are the hallmarks of an Apple store.

    No wonder that when the iPhone 14 Pro started retailing at $999, people queued up outside these very stores to buy them.

    For an enterprise business, it is difficult to deliver personalization at scale. This is why an omnichannel approach works best to provide a superior customer experience.

    This is where enterprise chatbots come in. One can deploy enterprise chatbots across multiple channels by techniques such as cloning. With this, they can provide a consistent customer experience across multiple communication channels, maintaining your brand’s omnichannel strategy.

    3. Enterprise chatbots can help augment an organization’s security

    Enterprise businesses, by nature, structure themselves in such a way that there are no data leaks. Considering the fact that they deal with customers’ sensitive data, which in some cases may run into thousands of customers, this data is extremely valuable.

    With an IBM report that estimates the cost of a data breach as $9.4 million in the US, this is no laughing matter. Data, like oil, is one of the most precious commodities in the world at the moment.

    Enterprise chatbots are already subject to a lot of regulatory procedures that help prevent data leaks and ensure security. Chatbots can also help in fields such as:

    • Providing end-to-end encryption
    • Educating the employees and the visitors about security-best practices
    • Authentication to gain access to the website.
    • Authorization
    • Placing security protocols in appropriate locations.

    4. Help enterprises be online 24 x 7 for their customers

    Customers of enterprise businesses expect a response from the companies around the clock, irrespective of where the business headquarters are or what their working hours are.

    Taking time to respond to customer queries leads to a bad customer experience, something that companies should avoid like the plague. In fact, according to this Zendesk report, about 80% of the respondents would rather do business with a competitor after just one ‘bad experience.’

    With chatbots, enterprise businesses can be online all the time and also provide instantaneous responses to their customers. Also, there is a reduction in the dependency on support agents who, in turn, can concentrate on resolving more complex queries.

    Chatbots can be the first point of contact for customers, and the bot-to-human-handoff feature can also provide a seamless experience.

    For repetitive queries, you can always use an enterprise chatbot that you can easily be trained to provide quick responses to customers. This creates a positive customer experience, which, in turn, can turn to increased revenue.

    Even if the query is irrelevant / a chatbot is unable to provide the exact responses, getting quick feedback means customers feel looked after. This affects your customer satisfaction and CSAT scores, metrics which are quite important even for enterprises.

    5. Enterprise chatbots can help in data collection and lead generation

    A good enterprise chatbot is also very proficient in the following fields- monitoring and analyzing customer data. This is a highly useful feature that helps organizations make sense of customer behavior and help effectively market their products.

    Customer attention is also something that a lot of companies compete for, so enterprise chatbots can help grab this attention by sending out push notifications. Push notifications sent regularly at fixed intervals help enterprises increase their customer engagement.

    Enterprises can also use chatbots to collect feedback from customers, which they can then use to improve their website, product, or service.

    Another important application of enterprise chatbots is lead generation. How? When a customer is browsing through the enterprise’s website, chatbots can initiate a conversation with the customer. This can help the enterprise nurture leads and then nudge them toward the right team members.

    Chatbots can help provide instantaneous responses to customer queries, and this level of customer engagement can act as a natural boost to the number of leads and conversion rates.

    Parting words

    Businesses today are trying to survive in an environment that is getting more and more competitive with each passing day, and it is the only technology that can help them stay afloat. An enterprise chatbot powered by AI is at the forefront of this technological revolution. Enterprises that decide to implement these enterprise bots have an advantage over those who choose not to do so. With a chatbot solution provider like Kommunicate, enterprises can be sure their needs are taken care of.

    Originally Published here


    5 Proven Ways How Chatbots Can Help Enterprise Businesses Scale was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.

  • Generative AI — How To Connect Your Bot To Chat GPT-3

    Generative AI — How To Connect Your Bot To Chat GPT-3

    Whether it’s to write a research paper, solve calculus questions, write a code, debate about world affairs or find a date online, Chat GPT-3 is the latest AI generative technology that promises to accomplish all of this. The technology is created by Open AI and answers questions on a wide variety of topics in multiple languages.

    With Bot Libre being a language independent, open source platform with a wide variety of chatbots for all industries and topics, new and existing clients can still hop on the Chat GPT-3 train without discarding their Bots.

    In this article, we show you how to connect your Bot Libre bot to GPT-3 using OpenAI’s API, and a Self script in your bot.

    1 — Create Your Bot

    From the Bot Libre website click on “New Bot”,

    enter your bots name, and select “gpt3_template” as your bot template

    click on “Create”

    Another option if you already have an existing bot is to import the “GPT-3” script from the Bot Libre Script library, from your bot’s Scripts page select “Import”.

    2 — Create Your Open AI Account

    From the Open AI website create an account and API key,

    Click on “View API Keys”,

    then “Create new secret key”, and copy the key.

    3 — Set Your Key In Your Script

    From your bot’s Admin Console, select “Scripts” and edit the “proxy” script.

    Enter your Open AI API key in the line,

    var apiKey = “”;

    4 — Edit your greeting

    Your bot’s greeting is the first message the bot send new users. It is also used as the first message in the text prompt sent to GPT-3.

    Your greeting lets GPT-3 know what you want it to be.

    i.e. here are some example greetings,

    “Hello, I am Julie, product support for ACME, how can I help?”

    “Hello, I am Joe, and can help you with any questions you have on plumbing.”

    “Hi, I am Jane, your best friend.”

    “Hello, I am Dexter, your virtual math tutor, ask me anything about math.”

    “Bonjour, je suis Céline, votre tutrice virtuelle de français.”

    5 — Chat With Your Bot

    You can now chat with your bot and it will respond to a wide variety of questions in multiple languages in the context of your conversation.

    If you exceed your API quota, or the API is busy you will get the error “Bot is not available”, which you can change in the script.

    You can chat with GPT-3 here

    Maximize Chat GPT-3 Potential With Bot Libre

    Using Bot Libre you can also now connect your GPT-3 bot to avatars, speech, the web, mobile, social media, and the metaverse. You can also enhance the bot by adding in your own responses, these will overlay the GPT-3 responses and take precedence if they are a good match.

    Currently the GPT-3 proxy script forwards every question, but you can change this by editing the pattern in the script. To allow trained responses to take precedence you can change the pattern to “proxy *”, and change your default response to redirect(“proxy “ + input.input) to only engage GPT-3 when your bot does not have a trained response.

    If you need help setting up or training your bot, or if interested in training GPT-3 or other GPT models such as GPT-J on your own dataset please contact sales@botlibre.biz.

    Learned something? Please give us a clap below and share!


    Generative AI — How To Connect Your Bot To Chat GPT-3 was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.