Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #formData holds field values
- {
- "formData": {
- "firstName": "Bob",
- "lastName": "Bobbinson",
- "age": "28",
- "email": "bob.bobbinson@gmail.com"
- }
- }
- #dataSpec defines field types and validation
- {
- "dataSpec": {
- "firstName": {
- "type": "string"
- },
- "lastName": {
- "type": "string"
- },
- "age": {
- "type": "integer",
- "minimum": 18,
- "maximum": 65
- },
- "email": {
- "type": "string",
- "format": "email"
- }
- }
- }
- #chatUISpec is for the conversational UI: associates fields to widgets, adds outputOnly widgets for extra output (text, images, videos)
- {
- "chatUISpec": {
- "hello": {
- "widgetId": "textField",
- "widgetParams": {
- "readOnly": true,
- "value": "Hi!"
- }
- },
- "firstName": {
- "widgetId": "textField"
- },
- "lastName": {
- "widgetId": "textField"
- },
- "age": {
- "widgetId": "numberSlider"
- },
- "email": {
- "widgetId": "textField"
- }
- }
- }
- #same as chatUISpec
- {
- "formUISpec": {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement