Page 1 of 2

Voice message variables

PostPosted: Wed May 15, 2013 1:43 pm
by wilsonsaints
Hi all,

It is possible to use variables in the TTS voice message, such as:

"Hello Sir #CONTACT_NAME#. The payment of #CONTACT_JSON_PARAMETER1# is delayed".

Thank you,

Wilson

Re: Voice message variables

PostPosted: Wed May 15, 2013 3:32 pm
by areski
Yes you can address any fields from contact data.

-- {last_name}
-- {first_name}
-- {email}
-- {country}
-- {city}
-- {contact}

As well as the additional fields that you inserted in Json can be used,
To give an example if you have in your json field :
{"age" : "32"}
Then in TTS you can use the following text :
Hello {last_name}, is your age {age}

Re: Voice message variables

PostPosted: Wed May 15, 2013 4:40 pm
by wilsonsaints
Newfies is amazing. Thank you very much.

Re: Voice message variables

PostPosted: Wed May 15, 2013 5:02 pm
by areski
Glad to hear some great feedback

Re: Voice message variables

PostPosted: Tue Sep 24, 2013 9:37 pm
by joedialer
The variables are not working in the survey play node.
The TTS is reading the actual variable instead of replacing it with the data from the phone book.
For example:
I type the following in the Play script: {last_name} I also tried %last_name% and $%last_name%
But when the campaign ran it just read me the above expression instead of the person last name.

Re: Voice message variables

PostPosted: Tue Sep 24, 2013 10:56 pm
by areski
That should work seamlessly with {last_name}.
If the problem persist on your installation I will recommend to contact our team for support.

Re: Voice message variables

PostPosted: Tue Sep 24, 2013 11:09 pm
by joedialer
I wan to make sure I am doing this from the right page.
I go to Survey Module, I add a new Survey.
I name the Survey and select English for TTS
On the section I choose 'Play Message'
I give the message a title, but do not select any sound files
Then I click on the edit script button and I type the following:
Hello your name is {last_name}
and I click complete survey.

An I missing something?

Re: Voice message variables

PostPosted: Tue Sep 24, 2013 11:13 pm
by areski
That sounds correct but you have to make sure that your imported contacts have a value for the last_name field

Re: Voice message variables

PostPosted: Tue Sep 24, 2013 11:16 pm
by joedialer
I manually added the contact to test. I entered first name and last name for the contact.
Does TTS not work with manual contact entry?

Re: Voice message variables

PostPosted: Tue Sep 24, 2013 11:22 pm
by areski
it does work with manual entries