Prerequisites
Up and Running instance of EDDI (See: Getting started )
THIS DOCUMENTATION IS OUT OF DATE!
PLEASE VISIT HTTPS://DOCS.LABS.AI
In order to build a Chatbot with EDDI, you will have to create a few configuration files and POST
them to the corresponding REST APIs.
A chatbot consists of the following elements:
Dictionary
to define the inputs from the users as well as its meanings in respective categories (called Expressions
in EDDI).Behavior Rules
creating Actions based on decision making with predefined as well as custom conditions.Output
to answer the users request based on the results from the behavior rule execution.Package
to align the **LifecycleTasks**
(such as the parser, behavior evaluation, output generation, ...)Bot
to align different Packages and Channels.Follow these steps to create the configuration files you will need:
See also Semantic Parser
Create regular dictionaries in order to store custom words and phrases. A dictionary is there to map user input to expressions, which are later used in Behavior Rules
. a. POST
to /regulardictionarystore/regulardictionaries
with a JSON in the body like this:
{
"language": "en",
"words": [
{
"word": "hello",
"exp": "greeting(hello)",
"frequency": 0
},
{
"word": "hi",
"exp": "greeting(hi)",
"frequency": 0
},
{
"word": "bye",
"exp": "goodbye(bye)",
"frequency": 0
},
{
"word": "thanks",
"exp": "thanks(thanks)",
"frequency": 0
}
],
"phrases": [
{
"phrase": "good afternoon",
"exp": "greeting(good_afternoon)"
},
{
"phrase": "how are you",
"exp": "how_are_you"
}
]
}