LogoLogo
  • 👋START HERE
    • Welcome!
  • â„šī¸General
    • Release Notes
      • Full Feature Base Template
      • Services
      • Rule-based Automation
        • May 2025
        • 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. Reference

Frequently Asked Questions (FAQ)

Find quick answers to common questions in Parloa.

PreviousParloa Keyboard ShortcutsNextJavaScript Cheat Sheet

Last updated 1 year ago

Was this helpful?

Can I utilize ES6/ES2015 syntax in Parloa's Javascript fields?

Yes, you can seamlessly incorporate ES6/ES2015 syntax within Parloa's Javascript fields. Thanks to our integration with the V8 Javascript engine by Google and the incorporation of the latest Long Term Support (LTS) version of Node.js, Parloa is equipped to handle all the functionalities supported by these versions of V8.

How can I correctly save a JavaScript Object in a Storage block in Parloa?

To save a JavaScript Object in Parloa, ensure to wrap your object in parentheses. For instance, use ({"example0" : "0", "example1" : "1"}). Without the parentheses, Parloa interprets the expression as invalid JavaScript. Alternatively, you can use an anonymous function, like (() => ({"eventdatatest1" : "1", "eventdatatest2" : "2"}))(), to achieve the same result.

Is it possible to integrate the 'Phone number' Platform Feature in a debugging release on the Phone Platform without an API key?

Yes, the 'Phone number' Platform Feature can be used in a debugging release on the Phone Platform without a standard API key. However, our integration with TENIOS does require an API key for this feature. For debugging purposes, you can enter any value in the API key field. This placeholder will not impact the feature's functionality during the debugging stage.

Is a return statement necessary to return a storage variable to a block in Parloa?

No return statement is needed to return a storage variable to a block. Unless you define a whole function inside the block, Parloa will return the last variable it "saw.” Trying to use a return statement outside of a function or to return something to the block will result in an error.

How do condition blocks function in Parloa?

blocks function on the if / else if / else principle line by line. The if/else structure is already included — each space in the block contains only the code or condition that should evaluate to true or false.

Why is it advisable to set JavaScript variables inside a function in Parloa?

If you write code that requires you to create (initialize) a JavaScript variable, it's wise to set that inside a function. If your call flow loops back, or if you try to use the same variable name later, Parloa will throw an error.

So instead of doing this:

let date = new Date();
let dayDiff = (date.getDate() – 1);

Do this:

function return_yesterday() {
    let date = new Date();
    let dayDiff = (date.getDate() – 1);
    
    return dayDiff
}

return_yesterday();
âš™ī¸
Condition