Saltar al contenido principal

Schema to define form structure for simple import on Algho Buider

The form can be created by inserting the link of form definition on the Algho Builder

{
"formName": "Zendesk apertura ticket",
"lang": "it",
"submitUrl" : "http://www.mysite.com/ws/submit.php",
"autoSubmit" : true,
"globalAutoSubmit": false,
"formType" : "STANDARD",
"isSensitive" : false,
"command": null,
"payload": null,
"fieldList": [
{
"name": "Email",
"type": "EmailFieldType",
"questionText": "Email",
"required": true,
"maxValuesToSelect": 1,
"admissibleValues": [],
"wsAdmissibleValuesList": null,
"wsValidation": "http://213.183.150.216:51980/solyda/validate_agent_name",
"hiddenAdmissibleValues": false,
"externalWSfield": "email"
},
{
"name": "Product",
"type": "TextFieldType",
"questionText": "Per quale prodotto?",
"required": true,
"maxValuesToSelect": 1,
"wsAdmissibleValuesList": "http://www.mysite.com/ws/values.php",
"wsValidation": null,
"hiddenAdmissibleValues": false,
"externalWSfield": "product"
},
{
"name": "Title",
"type": "TextFieldType",
"questionText": "Inserisci il titolo del ticket",
"required": true,
"maxValuesToSelect": 1,
"admissibleValues": [],
"wsAdmissibleValuesList": null,
"wsValidation": null,
"hiddenAdmissibleValues": false,
"externalWSfield": "title"
},
{
"name": "Description",
"type": "TextFieldType",
"questionText": "Descrivi il ticket",
"required": true,
"maxValuesToSelect": 1,
"admissibleValues": [],
"wsAdmissibleValuesList": null,
"wsValidation": null,
"hiddenAdmissibleValues": false,
"externalWSfield": "description"
},
{
"name": "Priority",
"type": "TextFieldType",
"questionText": "Che priorità vuoi impostare al ticket?",
"required": true,
"maxValuesToSelect": 1,
"admissibleValues": [
{
"name": "Bassa"
},
{
"name": "Media"
},
{
"name": "Alta"
}
],
"wsAdmissibleValuesList": null,
"wsValidation": null,
"hiddenAdmissibleValues": false,
"externalWSfield": "priority"
}
]
}

Form scheme

KeyDescription
formNameForm name
langLanguage code (see table)
submitUrlUrl to submit (Optional)
autoSubmitBoolean: auto fill field value
globalAutoSubmitBoolean: auto fill field value with same name in conversation context (Optional)
formTypeForm type "STANDARD"
isSensitiveBoolean: contain sensitive data
commandCommand action (see table)
payloadjson string for browser automation. (Optional) See Selenium Ide plugin tools.html
fieldListArray of form fields (see scheme)

Field scheme

KeyDescription
nameField name
typeField type defined in Algho builder (see table)
questionTextQuestion text
requiredBoolean
maxValuesToSelectMax number of values to select
admissibleValuesArray of admissible values (optional)
wsAdmissibleValuesListWeb service url to retrieve admissible values (optional)
wsValidationWeb service url to validate admissible values (optional)
hiddenAdmissibleValuesHide admissible values to client
externalWSfieldExternal Id of field for reference (optional)

FieldType

FieldType can have the following values:

KeyDescription
EmailFieldTypeis an email address
TextFieldTypeis a plain text
NumFieldTypeis a number
DateFieldTypeis a date (yyyy:MM:dd) or a date is extracted from text
TelFieldTypeis a phone number
LocationFieldTypeis an address
HourFieldTyperepresents an hour (HH:mm)
UrlFieldTypeis an URL
CFFieldTyperepresent a tax code
FullNameFieldTypeis a name and surname or a name and surname are extracted from text
BirthDateFieldTypeit's a date (yyyy:MM:dd) before today
NameFieldTypeis a name or a name is extracted from text
SurnameFieldTypeis a surname or a surname is extracted from text
FileFieldTypeis an URI referred to a file
VatFieldTypeit's a VAT number
HourRangeFieldTypeis a range in the form of HH:mm - HH:mm
DateRangeFieldTypeis a range in the form of yyyy:MM:dd - yyyy:MM:dd
DayFieldTypeis a day (Monday, Tuesday, ...), depends on form language
DayRangeFieldTypeis a range of days (e.g. Monday - Friday)

Language codes

CodeDescription
itItalian
enEnglish
esEspañol
ptPortuguês
frFrançais
deDeutsch
roRomânesc
zh中文 (Chinese)

Command codes

CodeDescription
REQUEST_OPERATORRequest operator on live chat