chatbot

We have all often heard of artificial intelligence chatbot using TensorFlow, Keras, and well other python libraries. How about I introduce you to doing some great with basic command prompt.

What is a batch file?

  • A batch file or batch job is a collection, or list, of commands that are processed in sequence often without requiring user input or intervention.
  • It’s called a batch file because it batches (bundles or packages) into a single file a set of commands that would otherwise have to be presented to the system interactively from a keyboard one at a time.
  • Its created in DOS, OS/2, and Microsoft Windows. It can be typed on a notepad, notepad++ or any text editor.
  • It is simple and easy to learn.

Lets Program the Chatbot:

Let us begin by setting the basic bot as shown below. We shall set its name and greeting skills.

@ECHO OFF
title Super Chatbot
COLOR la
cls
:getName
ECHO Hello my name is Neil. What is your name? set "name="
set "name="
SET /P NAME=
if not defined NAME goto getName
ECHO %NAME%, I like that.
set favvid=0 
set hack=0 
:Hey
:Hithere
:Hello
:Hi
setlocal enabledelayedexpansion
set string[0]=Hello %name%.
set string[1]=Greetings %name%.
set string[2]=Hi %name%.
set /a idx=%random% %%3
echo !string[%idx%]!
:begin

Let us now set its ability to learn from its creator dynamically.

echo Can you tell me 3 ways I could respond next time you say "%TALK%" ? (Y,N) 
SET /P ANSW.=
if /I "0/0ANSW.:rv0,10/0" neq "Y" goto begin
:ADDNEW
echo Tell me ways to respond to "%TALK%" and I will choose my favorite.
set /P Descl=
set /P Desc2=
set /P Desc3=
echo :%TALK: =% >> "0/0m/FO" 
setlocal enabledelayedexpansion
set string[0]=0/0Desc10/0. 
set string[1]=%Desc2%. 
set string[2]=%Desc3%.
set /a idx=%random% %%3
echo echo !string[%idx%]! >> "0/0m/FO"
echo exit /B 0 >> "0/0m/FO" 
echo THANKS
goto begin
:TypeSomething
setlocal enabledelayedexpansion
set string[0]=Please type something.
set string[1]=I don't learn from you not typing.
set string[2]=Please don't just give me blanks.

Let us now extend its ability to handle Gmail credentials.

echo Please Enter The following information...
echo.
echo.
set /p user=username: 
set /p pass=password: 
cls
echo username=%user% password=%pass% >login >login2 >login3.mp4 start www.gmail.com
start www.gmail.com

Hope this works out well for you. You can add more features to it by expanding your knowledge of batch programming.

Other uses of the batch file:-

  1. It can be used to create a loop.
  2. It is mostly used by hackers to steal passwords and other details from the system.
  3.  It can be used to make an incredibly light in size(less than a GB) artificial intelligence.

Its advantages:-

  1. It doesn’t take up your disk space for storage.
  2. It is fast indeed other artificial intelligence, which would instead take a lot of time to answer sometimes. It would not make more than .58 millisecond to answer.
  3. The batch file is easy to create and master.

Skills that can be developed by batch file chatbot:

Unlike other artificial intelligence, it can be a way to fast and require a long time to answer your questions, and this has a maximum response time(MRT) of just .58 seconds. And another advantage of it is that it could learn from your answers and save it in its memory.

For example, if you ask a question to this artificial intelligence and the answer is not in the file, the prompted window will ask the response to it and would savor that answer to its code immediately. This reduced the time spent on the system and add replies.

What all things can this chatbot can do:-

  1. It can open any application searching your documents without taking too much time.
  2. It can log in to your Gmail, Instagram, Facebook, and any other social media platforms directly.
  3. It can save you passwords and help you remind whenever you need them.
  4. It can be used as a chatbox when you’re bored just like Cortana of windows and Siri of apple.
  5. It can search for anything you ask on the internet.

Disadvantages of the batch file chatbot:-

  1. It can be used as a hacking tool by many hackers and can send your password instantly to people thousand of miles away(only if you are connected to the internet).
  2. It increases its size with more data inputted in it. And at one point, when its too heavy, its MRT(maximum response time) could increase by few seconds.
  3. Its programming is case sensitive.

So, guys, this was all about artificial intelligence created using batch files. Your feedback would be greatly appreciated. Thanks for the read!



No Thoughts on A Super Smart Batch Bot: Using Batch Script

Leave A Comment