InteliWISE EN
  • Great to have you here! Let us help you now.
    • PDF Guides to Tools: AI Chatbot, AI Voicechat and Omnichannel Console
  • Voicebot
    • Welcome to the InteliWISE Voicebot solution! Create your Voicebot just in 5 minutes...
      • Learn
      • Act
      • Explore
      • Connect
    • Meet InteliWISE Voicebots.
      • What are voicebots?
      • Which voicebot templates do we offer?
      • How to make voicebots work?
  • Quick guide to creating voicebots.
    • How do voicebots understand people and respond correctly?
    • How to create a free InteliWISE account and your first voicebot project?
      • Quick way to create a free InteliWISE account
      • How to start a new project?
    • How to design the flow of the conversation?
    • Take an advantage of the InteliWISE Voicebot Builder
      • What to choose from the Blocks Menu?
      • How to design a Conversational Flow Scenario?
      • How to configure the Block Options Panel?
      • How to benefit from buttons?
    • Find out if you want to use InteliWISE voicebot templates.
    • How to create a voicebot?
      • How to set up the start call block?
      • How to add blocks and connectors and how to remove them?
      • What are variables?
      • How to set up the needed data?
      • How to confirm the name of the customer?
      • How to branch a Conversation Flow Scenario?
      • How to confirm the appointment date?
      • How to reuse the same block in the scenario?
      • How to end the conversation?
  • What can you do with InteliWISE blocks?
    • START CALL – How to start a conversational flow scenario?
    • SAY – How to make your voicebot speak?
    • CUSTOM JS – Where to insert a custom code?
    • IF CONDITION – How to influence a voicebot behavior depending on conditions?
    • CONFIRM – How to get confirmation from a customer?
    • CONFIRM DATE – How to make a voicebot confirm the agreed date with a customer?
    • DATE – how to get a date from a customer?
  • How to connect a voicebot with a phone number?
    • How to configure the telco infrastructure?
    • We recommend the InteliWISE Shared Telco Infrastructure.
    • Do you need an InteliWISE dedicated telco infrastructure?
    • Would you like a custom implementation in your company infrastructure?
    • What is required for the on-premise implementation?
      • What are hardware requirements for the InteliWISE voicebot?
      • What hardware do is needed for automated speech recognition (ASR) system?
      • What hardware do you need for text-2-speech (TTS) system?
    • Let's compare available telco infrastructure options.
    • InteliWISE DIALER – What if you need an outbound campaign?
    • Can voicebot be integrated with other systems?
  • How to contact us? How to access the support team?
  • Chatbot
    • Welcome to the InteliWISE Chatbot solution!
    • Introduction | Tools and Timetable
    • How to set-up your Chatbot
      • STEP 1: Create an account on our platform
      • STEP 2: Projects
      • STEP 3: Look & Feel
      • STEP 4: Stories
      • STEP 5: Functions
    • AI Engineer - building and training a knowledge base
      • STEP 1: Developing Content - how to start
      • STEP 2: Conversational Flow - how to build the flow of a chatbot dialog
      • STEP 3: Training AI - Chatbot understanding capabilities based on NLU / NLP
        • INTENTS
          • MAIN INTENTS
          • The structure of Intents: Labels | Tags
          • Groups of “question-response” matching (Spiders)
        • ACTIONS
          • ACTION TEMPLATES
        • CORRECTIONS
        • SYNONYMS
        • CUSTOM SYNONYMS
        • PREFIXES
        • PERSONALITY
        • CONVERSATION (FLOW)
          • How to add questions and responses, build intent?
          • Handling exceptions (incl. ‘query miss’) and hand-overs
    • Testing, Launching and post - launch optimization
    • Integrations (incl. Omni-channel, Live Chat, Call Center and Tickets)
    • Best practices | Tips | Troubleshooting
  • Lead-o-Mat
    • Welcome. Hyvää päivää. Schönen Tag. Buenos días. 早上好
    • Win more leads with your Lead-o-Mat. Add to your site just in few steps.
    • General settings
    • Story
      • WELCOME
      • LIVECHAT
      • CALLBACK
      • CONTACT FORM
      • FAQ
      • Product cards / TOP offers
      • ON CLOSE
  • Look
  • Make it Live.
  • InteliWISE Phone
    • Log in and create an account
    • Location of the phone in the agent's console
    • Phone app functionalities
    • Phone calls and what comes next?
      • Incoming call
      • Outgoing call
    • How to access the support team?
  • Agent's Console
    • Log in and create an account
    • Agent's console features
      • Right top panel
      • Left side panel
Powered by GitBook
On this page

Was this helpful?

  1. Quick guide to creating voicebots.
  2. How to create a voicebot?

How to set up the needed data?

PreviousWhat are variables?NextHow to confirm the name of the customer?

Last updated 4 years ago

Was this helpful?

In our Conversation Flow Scenario we want a voicebot to confirm a dental appointment. In real life, we would set up an API option in the Start call or use an API block to get the data from your dentist’s IT system.

In our case, we are going to fake it. And we will teach you some useful things in the process.

The block allows adding custom JavaScript code that can do magic.

It sounds like this is a solution only for programmers.

No!

If you know a few tricks, you can reuse ready-made code snippets. You can copy them and use them.

So, let us now simulate, that the voicebot received your data from the dentist’s IT system. We will set this data manually.

Set a global variable that stores names so the voicebot knows your name.

globals.first_name = ”Anna Gregorczyk”

My name is Anna Gregorczyk, so I place this name in our example.

globals.date = new Date(2021,05,26,15,30) 

I also set the date of the dentist appointment, which has been planned for 26 of June 2021 at 15:30.

Notice that in Java Script, months are counted from 0, so January is 0, and 05 is June (not May!)

You must remember to put return out1() as the last line of the code. This makes the block return its output to the next block.

Remember to connect the Start Call block to the Custom JS block by a !

Custom JS
connector
⛔
🤹‍♂️
Custom JS