0% found this document useful (0 votes)
26 views

ChatScript Assignment 2023

The document provides an assignment to build a conversational chatbot using ChatScript. It involves setting up ChatScript, interacting with an example bot, understanding the bot's workings, and building sample conversations by adding patterns and concepts to handle different scenarios like food ordering, flight booking and arithmetic calculations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

ChatScript Assignment 2023

The document provides an assignment to build a conversational chatbot using ChatScript. It involves setting up ChatScript, interacting with an example bot, understanding the bot's workings, and building sample conversations by adding patterns and concepts to handle different scenarios like food ordering, flight booking and arithmetic calculations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ChatScript Assignment

What is ChatScript
ChatScript is the next generation chatbot engine with excellent NLP capabilities.
Using ChatScript one can build Human like virtual assistants to address variety
domain specific use cases

ChatScript Github repository and other documentation


ChatScript is an open source Natural Language tool/dialog manager and is
available at https://github.com/ChatScript/ChatScript
This page provides excellent documentation about installation and usage of
ChatScript

Assignment topics
The timelines provided are tentative and persons may take less if they have good
programming skills.

1. Try to set up ChatScript independently. (½ day)


a. List down additional dependencies during installation if any.
2. Start server in local mode and server mode
a. What is the default port in server mode?
i. Try starting it in different port

For all the following tasks, run ChatScript in local mode (½ day)
3. When you start interacting with bot for eg: demo bot Harry, Observe the contents
of ChatScript/USERS. What do you infer?
4. User logs and debugging
5. Gambit rules
6. Rejoinder rules
7. Different Patterns and AIML language

Idea of Concepts usage in Patterns ( 2 days for points 3 till 8 )


8. In the demo bot Harry
a. Change the bot name to KORE
b. Add a new pattern to respond with bot’s age
c. Change user input to UPPERCASE and reply the same
d. Build a sample conversation when user talks about Indian food and
i. Try adding rejoinder when user mentions Butter chicken
ii. Eg,

©2022 Kore.ai. All Rights Reserved Page 1


ChatScript Assignment
● User says: Hi
● Bot says: Hello, Which Food do you like?
● User says: Pizza
● Bot says: Pizza is delicious food (Bot must respond with
input from point 3)
e. Use concepts to define multiple cuisines (Indian, chinese), multiple sizes
(Small, Medium, Large) and respond accordingly
● Bot says: which type of pizza do you want?
● User says: Italian <<User can give anything>>
● Bot says: May I know which size you are looking for?
● User says: Large <<user can give anything>>
● Bot says: Thanks, I have ordered, One <<Indian>> <<Large>>
pizza for you.

f. Build one more flow to reserve a flight ticket by asking user for from and
to locations and the date. Use concepts to identify cities
● User says: I want to travel
● Bot says: Sure, where do you want to go?
● User says: New York (User can give any city name here)
● Bot says: When do you want to travel?
● User says: On 19-Jun-2023 <<user can give any future date only)
● Bot says: Ok, How many passengers?
● User says: 5 of us (User can give any number)
● Bot says: Thanks for sharing the details. Your ticket to <<New
York>> on <<19-Jun-2023>> is confirmed, PNR Number: 12345

9. In the demo bot Harry


a. Use jsonopen(Chatscript function) to make api calls
b. Provide a response from the wikipedia page by making api calls for General
questions which ends with keywords like what is chatGPT? / where is Charminar
/ Explain about ozone layer (Refer similar examples in Keywordless.top)
Create a new topic in Harry bot on his math skills(2 days)

When a user asks to add two numbers or multiply ( any two arithmetic operations
would be fine), Calculate and reply with the result.
c. Use functions to modularize the code
** If creation of a separate topic file is difficult, try to plugin this piece of
code in any of the existing .top files. Modularizing the code with functions
is mandatory
10. Identify colors from the input using pre defined concepts

©2022 Kore.ai. All Rights Reserved Page 2

You might also like