LogoLogo
  • 👋START HERE
    • Welcome!
  • â„šī¸General
    • Release Notes
      • Full Feature Base Template
      • Services
      • Rule-based Automation
        • February 2025
        • January 2025
        • December 2024
        • November 2024
        • October 2024
        • September 2024
        • August 2024
        • July 2024
        • June 2024
        • May 2024
        • April 2024
        • March 2024
        • February 2024
        • January 2024
        • 2023
        • 2022
        • 2021
        • Dialog Design Update
    • Glossary of Terms
    • Authentication Methods
      • SSO (Single Sign-On)
      • Built-In User Management
    • Acceptable Use Policy
  • âš™ī¸Rule-based Automation
    • Overview
      • Account Settings
        • Profile
        • Team
        • Roles and Permissions
          • User Management
          • Project Permissions
      • Basic Concepts
        • Project Management
        • Version Management
        • Multi-Lingual Bots
          • Supported Languages
        • Managing User Interactions
          • Unexpected User Input
          • No User Input
    • Dialog Interface
      • Blocks
        • Conversation Logic
          • Start Conversation
          • Global
          • State
          • Intermediate Response
          • To Previous State
          • End Conversation
        • Subdialog
          • Reusable Subdialogs
        • Phone
          • Continue Listening
          • Call Control
        • Technical Logic
          • Service
          • Condition
          • Storage
        • Other
          • Note
      • Speech Assets
        • Intents
          • Utterances
          • Descriptions
        • Slots
          • Custom Slots
            • List Slots
            • Machine Learning Slots
            • Regex Slots
            • LLM Slots
          • Prebuilt Slots
            • DTMF Slot
        • Text Snippets
        • Dictionary
      • Variables
        • Intents
        • Slots
        • Storage
        • Text Snippets
        • Environments
        • Platform
        • Context
      • Services
        • Service Integration Guide
        • Service Development
        • Service Branches and Error Handling
        • Public Services
          • Date and Birthdate Recognition
          • Spelling Post-Processing for Phone
          • IBAN Validation
          • License Plate Validation
          • Address Search
          • Street Names per Postal Code
          • Email Service
          • SMS Service
          • API Adapter
          • Salesforce-Flow Connector
          • Opening Hours
          • Speech-to-Text Hints
          • Fuzzy Match Names
          • Delay Service
      • Debugger
        • Phone 2
        • WhatsApp
        • Textchat 2
    • Environments Interface
      • Service Keys
    • Deployments Interface
      • Creating a Release
      • Editing a Release
    • Text-to-Speech
      • Azure
      • ElevenLabs
      • OpenAI via Azure (Preview)
      • SSML
        • Audio
        • Break
        • Emphasis
        • Prosody
        • Say-as
        • Substitute
        • Paragraph and Sentence
        • Voice
    • Autocomplete
    • Parloa APIs
      • CallData Service and API
      • Conversation History API
      • Textchat V2 API
    • Phone Integrations
      • Genesys Cloud
        • Setting up the SIP Trunk
        • Sending/Receiving UUI Data
        • Creating a Script to Display UUI
      • SIP
      • Tenios
        • Setting Up an Inbound Connection
        • Setting Up an Outbound Connection
        • Transferring a Call
      • Twilio
      • Public IPs and Port Information
    • AI Integration Overview
      • Dual Intent Recognizer (DIR)
      • Dual Tone Multifrequency (DTMF) Intent
    • Analytics and Debugging
      • Understanding Conversations and Transactions
      • Managing Caller ID Data
      • Hangup Events and Triggered Analytics
      • Analytics Transactions: Data Structure and Insights
      • Dialog Analytics
      • Audit Logs
      • Parloa-hosted Analytics
    • Data Privacy
      • Anonymizing Personally Identifiable Information
    • NLU Training
      • NLU Training Best Practices
    • How To
      • Create a Scalable and Maintainable Bot Architecture
      • Implement OnError Loop Handling
      • Resolve the 'Service Unavailable' Error
    • Reference
      • Parloa Keyboard Shortcuts
      • Frequently Asked Questions (FAQ)
      • JavaScript Cheat Sheet
        • Using Regular Expressions (Regex)
  • 🧠Knowledge Skill
    • Introduction
    • Knowledge Collections
    • Knowledge Sources
    • Knowledge Skill Setup
      • Step 1 – Create a Knowledge Skill Agent
      • Step 2 – Configure a Knowledge Skill Agent
      • Step 3 – Configure a Knowledge Skill Agent
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Rule-based Automation
  2. Dialog Interface
  3. Speech Assets

Text Snippets

How to create and manage text snippets

PreviousDTMF SlotNextDictionary

Last updated 1 year ago

Was this helpful?

Text snippets are versatile blocks of reusable text that can be seamlessly integrated into different parts of your conversation. They serve as valuable components of the chatbot's responses (prompts) to user inputs and can be referenced in various sections of your conversation flow. This enables you to efficiently reuse the same text in multiple ways throughout your conversation, promoting consistency and ease of management.

The following is an example of a text snippet window:

Click on each tab for a description of the elements displayed above:

The name of the text snippet.

Note: Text snippet names should not start with a number to ensure functionality and cannot be changed once created; to rename, delete the existing snippet and create a new one with the desired name.

This indicates the default text entry or entries assigned to a text snippet, selected without any conditions.

Here, you can add multiple text pool entries for use in your conversations. The app automatically selects an entry according to the selection and rotation rules defined in the Settings tab for this snippet.

Optionally, you can utilize text snippet variables within text snippets.

In the depicted example, the entry includes the company snippet. The company snippet is defined on the main text snippet screen.

The outcome of the text snippet results in the chatbot telling the caller: "Hello and welcome to Parloa!"

If the text snippet company has more than one option in the Text Pool, the chatbot selects one based on the rule defined in Settings.

Note: There is no limit to the number of text snippet variables you can employ within another text snippet.

When multiple text snippet entries are defined, the bot will utilize a different one each time the snippet is used in the conversation flow. The sequence in which the entries are presented can be specified in the Settings tab.

The following table describes each of the strategies you can select:

Strategy
Functionality

Cyclical

Picks through the list one by one until the last entry is reached. After that, it will start over with the first entry.

If no strategy is specified, the default strategy will be used.

Ordered

Iterates through a list of possible entries, selecting one at a time until the last item on the list is reached. Following this, the last entry in the list will be returned.

Random

Chooses one item at random from a list of possible options.

You can customize your experience in Parloa by using conditional text snippets that take into account specific factors such as the time of day.

The following is an example of morning and evening conditions that determine whether the chatbot will say the default entry, morning entry, or evening entry:

Conditions are evaluated from the top of the list, and the first true condition encountered is applied. If none of the specified conditions are met, the default value is displayed. It's important to note that the order of the conditional entries can easily be adjusted to suit your needs through a click-and-drag action. JavaScript is utilized to create these logical conditions. In the example below, Moment.js and JavaScript are used to check the current time and provide relevant greetings.

codemoment().tz("Europe/Berlin").format("H") < 10 // Morning condition
moment().tz("Europe/Berlin").format("H") > 17 // Evening condition

Parloa also seamlessly integrates with libraries like Moment and Lodash. When using Moment to check the current time, be sure to set the expected timezone with moment().tz("Europe/Berlin") to ensure accurate results.

Using Text Snippets

The following describes how to perform common actions with your text snippets:

Creating Text Snippets

Note: When naming text snippets, use clear and descriptive names that reflect the content and purpose of the snippet.

Editing Text Snippets

Hover over and click on the text snippet row. A pane will open on the right, enabling you to edit the text snippet.

Searching for Text Snippet

You can search for snippets by typing any part of their name in the Search for text snippets field.

Deleting Text Snippets
  1. Navigate to the Text Pool of the desired snippet entry.

  2. Hover over the text field you intend to delete and click the Delete button.

  3. Confirm the deletion by clicking the Delete button again.

The chatbot's statement to the caller, incorporating the selected text snippet. Similar to SSML fields in Blocks, you can add (<>), allowing for text formatting, and (+) into the texts as well.

to learn more about what else the JavaScript fields have to offer.

Click the button, displayed at the top-right of your screen.

Rename your text snippet in the field.

Click the button, or press Enter.

Search for a text snippet by typing in the search bar, displayed at the top-right of your screen.

âš™ī¸
State
SSML tags
Variables
Click here
Morning Condition
Evening Condition