Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Version: 4.3.x

...

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

Anchor
regularDictionary
regularDictionary
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 an json in the body like this:

...

Info
titleStructure of Identifiers

The returned URI is a reference for this specific resource. This recourse will be referenced in the bot definition.

Part of URIMeaning
eddi://This URI is related to a resource with in EDDI
ai.labs.regulardictionaryType of resource
/regulardictionarystore/regulardictionariesAPI path
<UNIQUE_DICTIONARY_ID>ID of the resources
<DICTIONARY_VERSION>

Version of this resource
(each update operation will create a new version of the resource)


2.
Anchor
behavoirSet
behavoirSet
Creating Behavior Rules

See also Behavior Rules

Next, create a behavior rule resource to configure the decision making
        a. Make a POST to /behaviorstore/behaviorsets
        With an json in the body like this:

...

b. You should again get a return code of 201 with an URI in the location header referencing the newly created behavior rules
            eddi://ai.labs.behavior/behaviorstore/behaviorsets/<UNIQUE_BEHAVIOR_ID>?version=<BEHAVIOR_VERSION>
            e.g. eddi://ai.labs.behavior/behaviorstore/behaviorsets/5a26d8fd17312628b46119fb?version=1

Anchor
outputSet
outputSet
3. Creating Output

See also Output Configuration.

...

b. You should again get a return code of 201 with an URI in the location header referencing the newly created output
            eddi://ai.labs.output/outputstore/outputsets/<UNIQUE_OUTPUTSET_ID>?version=<OUTPUTSET_VERSION>
            e.g. eddi://ai.labs.output/outputstore/outputsets/5a26d97417312628b46119fc?version=1

Anchor
packages
packages
4. Creating the Package

Now we will align the just created LifecycleTasks in the Package. Make a POST to /packagestore/packages

...

b. You should again get a return code of 201 with an URI in the location header referencing the newly created package
            format eddi://ai.labs.package/packagestore/packages/<UNIQUE_PACKAGE_ID>?version=<PACKAGE_VERSION>
            e.g. eddi://ai.labs.package/packagestore/packages/5a2ae60f17312624f8b8a445?version=1

5. Creating a Bot

Make a POST to /botstore/bots

...

b. You should again get a return code of 201 with an URI in the location header referencing the newly created bot
            format eddi://ai.labs.bot/botstore/bots/<UNIQUE_BOT_ID>?version=<BOT_VERSION>
            e.g. eddi://ai.labs.bot/botstore/bots/5a2ae68a17312624f8b8a446?version=1

6. Launching the Bot

Finally, we are ready to let the bot fly. From here on, you have the possibility to let an UI do it for you or you do it step by step.

...