Prerequisites

Up and Running instance of EDDI (See: Getting started )

THIS DOCUMENTATION IS OUT OF DATE!

PLEASE VISIT HTTPS://DOCS.LABS.AI

Introduction

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/224c4d06-76ec-4753-9f63-5e03b4f8fb7e/create-bot.png

A chatbot consists of the following elements:

  1. (Regular-) Dictionary to define the inputs from the users as well as its meanings in respective categories (called Expressions in EDDI).
  2. **Behavior Rules** creating Actions based on decision making with predefined as well as custom conditions.
  3. Output to answer the users request based on the results from the behavior rule execution.
  4. Package to align the **LifecycleTasks** (such as the parser, behavior evaluation, output generation, ...)
  5. Bot to align different Packages and Channels.

Structure of Identifiers

Follow these steps to create the configuration files you will need:

1. Creating a Regular Dictionary

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"
    }
  ]
}