Dialogue container¶
Introduction¶
A dialogue container is any receptacle or enclosure for all entities, dialogues, dialogue templates, and action items of the Business Bot. An entity is a keyword that is defined by you and used in the dialogue sentence. Once the logic recognizes that dialogue sentence sent by the user matches the defined user input sentence, the word is extracted from the user sentence (the entity) and passed to the action item of the Business Logic. An action element is the defined activity of the Business Logic. For this purpose, an assignment is made between the Business Logic function with expected parameters and the entity attributes.
Calculator example for the addition of two numbers:
- User input is:
What is 2 + 4?
- The syntax of the dialogue sentence with declaration of the entity (attributes) is:
What is @[Math.Task]?
- The chatbot replies to the user:
The result is: '6'
- The syntax of the chatbot output looks like this:
The result is: @[ActionItem.MathResult]
- The action item
@[ActionItem.MathResult]
points to the function of the Business Logic with declaration of the expected function parameter (the function parameter corresponds to the name of the entity):@[ActionItem.MathResult] -> getMathResult(@[Math.Task])
Manage dialogue containers¶
Create dialogue container
You can create a dialogue container using the following web form:
Navigation bar: Dialogue Designer
→ Dialogue Container Management
→ Create dialogue container
The following data is required to create the dialogue container:
Parameter | Example value | Description |
---|---|---|
Name | Calculator | Unique name |
Description | Administration of Calculator conversations | Brief description of purpose |
Do you want to enable this model for production? | Deactivated | Either Activated or Deactivated |
Business Logic | Wikipedia | Business Logic for which the dialogue container applies |
Modify dialogue container
You can modify a dialogue container using the following web form:
Navigation bar: Dialogue Designer
→ Dialogue Container Management
→ Actions [Settings]
Delete dialogue container
You can delete a dialogue container using the following web form:
Navigation bar: Dialogue Designer
→ Dialogue Container Management
→ Actions [Delete]
The user will be prompted to confirm the delete action.
Notice
A dialogue container can not be deleted when used by a business logic.