Go to the 'Channels' tab on the left and click on the '+' button next to 'Phone'.
Click on 'create' if you see this pop-up:
Click on the blue button 'Create configuration' to set up a test caller
You will see the following pop-up:
Under 'Caller' you can fill out the phone number of the person who will test the bot
Under 'Languages' you can select the languages of your bot
Under 'Description' you can fill out the name of the person who will test the bot
There are two ways to test your bot before publishing it:
1 – Testing whilst building
In the 'Bot Dialogs' menu, open the Emulator on the bottom right and click the 'debugger' button.
Change it to 'voice'
Now you can speak to your bot and test it!
2 – Testing the real experience
You can also enact the real experience by calling the Chatlayer test number: +3238081698.
Click on 'Settings' in the left menu and select 'voice'
Under 'Configure speech to text', select the language of your bot. You can also select the correct dialect if you'd like by clicking on the box 'Default dialect'
Under 'Voices', select the voice you prefer
If you'd like to hear a sample of that voice, enter an example sentence in the box 'Text to try out' and click on the speaker that appears next to the voice to hear it read aloud
You can customize your bot's responses by using Speech Synthesis Markup Language (SSML). With SSML, you can:
Change certain pronunciations
Change the speed of your bot's voice
Play audio files
Pronounce words as characters
And much more! See all options here: https://cloud.google.com/text-to-speech/docs/ssml
Add an 'Action' dialog and select 'Forward Call'
In the 'To' box, enter the phone number you'd wish to redirect the call to
After setting up your phone number, make sure to add another action 'Close Call' to make sure your bot hangs up after forwarding the call
If the user doesn't reply to the bot, or it doesn't detect an answer, you can let it repeat the question by using a 'Silence detection event' – Described here.
When you're ready to move your bot into production, please get in touch. We will set up a specific phone number for your bot which can be used to call directly or forward calls to. A typical phone architecture looks like this:
You can save anything the user is saying as a variable by using the voice message format type in an input validation. Read more here.