Autocomplete
Last updated
Last updated
Autocomplete is an essential feature designed to enhance your efficiency when working with Parloa. It provides you with suggestions for possible completions based on your current input or context. This capability ensures that you do not need to remember all the available variables, making it easier for you to find and select the necessary ones for your work.
Simplifies Selection: Offers a drop-down menu of viable options that match your partially typed text, eliminating the need for complete recall.
Boosts Efficiency: Speeds up the coding process by providing quick access to variables, syntax, and code snippets.
Reduces Errors: Minimizes the risk of typos and syntactic mistakes by suggesting accurate code fragments.
When you're writing JavaScript within Parloa, such as in the Condition block, Storage block, or the Conditional entry of a text snippet, the Autocomplete feature facilitates your scripting by offering quick access to variables and JavaScript elements. The icons you'll encounter represent different categories:
The Parloa variable types are denoted by the icon.
The icon marks a defined Parloa variable.
Common JavaScript elements are indicated by the icon.
For efficiency and precision in your scripting, leverage the Autocomplete feature by typing the trigger text corresponding to the desired variable type. Here's how to use it:
As you start typing one of the trigger texts such as context.
, env.
, or intent.
, Autocomplete will present a list of suggestions.
After typing the trigger, a dropdown menu appears, allowing you to select from previously defined variables of that type:
Similarly, for JavaScript elements, typing the relevant syntax will prompt Autocomplete to suggest suitable code snippets or commands.
Hereâs a reference table for the types of variables and the corresponding text to trigger Autocomplete:
Text to Trigger Autocomplete | Type of Variable |
---|---|
| Context |
| Environment |
| Intent |
| Platform |
| Slots |
| Storage |
| Text Snippet |
By following these triggers, you ensure that your scripts are not only consistent with the Parloa's framework but also syntactically correct. This not only saves time but also reduces the likelihood of runtime errors due to incorrect variable references.
When you click on an input field, look for the <>
icon at the top-right corner. This icon signifies the field's capability to accept SSML tags.
By clicking the <>
button, the Autocomplete feature activates, providing you with a list of available SSML tags.
You can then select the desired SSML tag from the dropdown, and it will be inserted into your text.
SSML tags enable you to control aspects such as emphasis, pauses, and intonation in speech output.
Similarly, fields that allow the addition of Parloa variables have a +
icon in the top-right corner.
Click the +
button to trigger the Autocomplete feature to display a list of Parloa variables that you can incorporate into your input, or type the +
sign within the input field.
Choose the required variable from the list, and it will be added to your field.
Parloa variables are essential for crafting dynamic and personalized interactions, as they can hold and display data specific to the user or context of the conversation.
Contextual Availability: Not all variables are accessible in every field. Autocomplete adapts to the current context, providing relevant options.
Applicability: Variables are offered based on their pertinence to the section youâre working on, ensuring logical integrity in conversation flow.