Autocomplete

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.

Benefits of Autocomplete

  • 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.

Utilizing Autocomplete

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:

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:

  1. As you start typing one of the trigger texts such as context., env., or intent., Autocomplete will present a list of suggestions.

  2. After typing the trigger, a dropdown menu appears, allowing you to select from previously defined variables of that type:

  3. 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 AutocompleteType of Variable

context.

Context

env.

Environment

intent.

Intent

platform.

Platform

slots.

Slots

storage.

Storage

text.

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.

Inserting SSML Tags

  1. 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.

  2. By clicking the <> button, the Autocomplete feature activates, providing you with a list of available SSML tags.

  3. 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.

Inserting Variables

Similarly, fields that allow the addition of Parloa variables have a + icon in the top-right corner.

  1. 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.

  2. 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.

Last updated