Table of contents
Creating a script
Script Editor window
Work with blocks
Script settings
Work with variables
Arrow (Branch)
Start Block
Question Block
Pause Block
Information Block
Condition Block
Randomization Block
Emotions Block
Result Block
Server Request Block
1. Script
Creating a script
Importance of focusing on “Audio type” field is very high as it afterwards controls capability of adding audio recording to repeat phrases section and efficiency of “voice block” section.
On pictures below you can see how repeat section appearance changes depending on defined settings in pause block.
Type Synthesis | The system will speak given text | |
---|---|---|
Type Audiorecording | The system will use added audiorecordings |
In blocks such as “Server Question”, “Pause”, “Request” and “Information” added audio recordings (section voice block) are used instead of the text.
Script Editor window
A question-answer system which bears a superficial resemblance to a tree with neural network training and extraction of answers. Script is made as a question-answer basis, the questions and possible answers are developed ourselves. During the call, depending on possible response, the system will operate according to the script.
Control elements (Controls):
Name | Screenshot | Description |
---|---|---|
Action options | Allows to set dialing scripts | |
Flowline (Arrow) | Allows to set script direction | |
Hand icon | Allows to navigate workspace | |
Cursor | Allows to work with the object or highlight it | |
Map | Opens a workspace window for quick navigation | |
Zoom | Changes workspace scale | |
Cancel | Step forward | |
Back | Step back | |
Save | Script saving | |
Delete | Delete script | |
Delete media | Delete all recorded and downloaded files | |
Previous | Go to the last added block | |
Clean | Back to the original state | |
Chat | Allows to see the script in chat form | |
Microphone | Allows to see the script in dialog form |
Hotkeys:
Result | Key |
---|---|
Script saving | Ctrl + S |
Undo the last step | Ctrl + Z |
Remove the highlight | Esc |
Delete selected item | Del |
Work with blocks
Each block / arrow settings is configured on the right side of the editor screen on the workspace. In order to open the properties, you need to click on the block / arrow with the left mouse button. There is also a function that allows you to create blocks you use frequently in just one click. Selected block has buttons at the bottom, such as “Question”, “Information”, and “Random Selection”. The user only has to pull one of the buttons to place the block in the workspace.
Script settings
For cases when automatic speech recognition is not possible or the blocks do not have connections (arrows) it is possible to configure the call forwarding to a specialist.
Work with variables
Creation and use of a variable is going through a simple declaration in the field.
For example, we create a variable which contains the current date and let's name it CurrentYear
As you can see in the screenshot, the name is just typed into the field. As soon as the system reaches this exact block, it automatically creates a variable with that name, recorded data we need but to use created variable, you need to enclose it in curly brackets.
No need of braces for a variable in ‘Requirement’ block
As you can see in the screenshot, this block includes condition which we had put in the variable earlier.
2. Elements
Arrow (Branch)
Description:
Shows the direction of the script (branch) and determines conditions for the transition from one block to another. For such blocks as “Question”, “Condition”, “Server Request” and “Emotions”, the arrow has properties different from all other blocks.
Start Block
Description:
This block is used to fix the beginning of the script.The block does not imply any actions, and serves solely to display beginning of the dialog script to the user. It allows navigating in case of a large dialog script “tree”.
Question Block
Description:
This block is intended (to survey) for polling the user.
Exit Criteria:
- After the recognition session has expired
- By keyword
Pause Block
Description:
This block switches the system to standby mode.
Exit Criteria:
- After the set time has expired
- By key word
Information Block
Description:
This block is used to issue voiced message to the user.
Exit Criteria:
- After a message spoken by the system
- Block skip
Condition Block
Description:
This block allows determining the script direction according to the dialog state. Navigation through arrow will be performed if all conditions specified by the user are met.
Randomization Block
Description:
This block is intended to ensure variability of the dialog. The system randomly navigates through arrows that exit the block.
Emotions Block
Description:
This block allows determining the script direction according to the user emotions. Navigation through arrow will be performed if all conditions specified by the user are met.
Result Block
Description:
This block is intended for recording the result of the conversation, as well as for forced transfer to the operator, sending a message and/or notification.
Server Request Block
Description:
This block is used to complete a request to an external server.
It is recommended to read about the syntax of the JSON format for a better understanding of the block operation. Read