Note to self: adjust undeclared variable message to show an example of initial_settings line.
The syntax is
initial_settings:{
+for each variable "<variableName>":<defaultValue> (if string, "<defaultValue>")
+comma separated
}
So that means
for one string (text) variable:
initial_settings:{"textVariable":"Hello"}
for one numerical variable:
initial_settings:{"numericalVariable":0}
for one boolean variable:
initial_settings:{"booleanVariable":"false"}
for a dialogue with multiple variables:
initial_settings:{"textVariable":"Hello","numericalVariable":0,"booleanVariable":"false"}
For more info, see:
http://www.w3resource.com/JSON/structures.php
And keep in mind that SDT only uses structures and nothing else - plus, we compress it to 1 line. So their example of
{
"firstName": "Bidhan",
"lastName": "Chatterjee",
"age": 40,
"email":"bidhan@example.com"
}
is in SDT
{"firstName":"Bidhan","lastName":"Chatterjee","age":40,"email":"bidhan@example.com"}
But naturally, we have to set initial_settings so for SDT it's actually
initial_settings:{"firstName":"Bidhan","lastName":"Chatterjee","age":40,"email":"bidhan@example.com"}
Did that help?