{ "Version": "2019-10-30", "StartAction": "9118e2fb-c62f-4c29-9eff-e93da91cac29", "Metadata": { "entryPointPosition": { "x": 40, "y": 40 }, "ActionMetadata": { "9118e2fb-c62f-4c29-9eff-e93da91cac29": { "position": { "x": 42.4, "y": 217.6 } }, "35f6935a-b3f2-4b29-90f2-6cd2998da07b": { "position": { "x": 55.2, "y": 408.8 }, "useDynamic": {}, "customerProfilesAction": "GetCustomerProfile" }, "09e52458-e5f0-44e2-b792-f91357219202": { "position": { "x": 60.8, "y": 684 }, "useDynamic": {}, "customerProfilesAction": "CreateCustomerProfile" }, "dde23aa2-75f5-4d02-b08c-14f44fa43b4d": { "position": { "x": 817.6, "y": 228 }, "dynamicParams": [] }, "032fdba4-bfbd-44b0-9cc4-137dbe7716cd": { "position": { "x": 307.2, "y": 227.2 }, "dynamicParams": [] }, "ec289ffe-a6bd-4e78-80fe-d32168bb60be": { "position": { "x": 1024.8, "y": 218.4 }, "conditionMetadata": [ { "id": "f6169d65-5768-438b-86ff-b70fe74e27f5", "operator": { "name": "Equals", "value": "Equals", "shortDisplay": "=" }, "value": "Start a new claim" }, { "id": "6ca2caad-e170-4519-ba76-7e6aa1a641b9", "operator": { "name": "Equals", "value": "Equals", "shortDisplay": "=" }, "value": "Something else" } ] }, "31aa4fee-6480-495e-b003-bbf5b4ab1cea": { "position": { "x": 1718.4, "y": 615.2 } }, "dffdf5f8-04f2-4880-a6dc-b18fbddf61f7": { "position": { "x": 574.4, "y": 228.8 }, "parameters": { "ViewResource": { "Id": { "displayName": "Cards" } }, "InvocationTimeLimitSeconds": { "unit": 1 }, "ViewData": { "AttributeBar": { "useJson": true }, "Back": { "useJson": true }, "NoMatchFound": { "useJson": true }, "Cards": { "useJson": true } } } }, "fbb706b1-674c-422c-9859-b78dff7de155": { "position": { "x": 1482.4, "y": 215.2 }, "parameters": { "ViewResource": { "Id": { "displayName": "Confirmation" } }, "InvocationTimeLimitSeconds": { "unit": 1 }, "ViewData": { "AttributeBar": { "useJson": true }, "Next": { "useJson": true } } } }, "2c383a61-44af-4cac-90e3-e68383c807e5": { "position": { "x": 1253.6, "y": 220 }, "parameters": { "ViewResource": { "Id": { "displayName": "Form" } }, "InvocationTimeLimitSeconds": { "unit": 1 }, "ViewData": { "AttributeBar": { "useJson": true }, "Sections": { "useJson": true }, "Cancel": { "useJson": true }, "Next": { "useJson": true }, "Back": { "useJson": true } } } } }, "name": "SBSGuides_Example_Cards", "description": "", "type": "contactFlow", "status": "published", "hash": {} }, "Actions": [ { "Parameters": { "FlowLoggingBehavior": "Enabled" }, "Identifier": "9118e2fb-c62f-4c29-9eff-e93da91cac29", "Type": "UpdateFlowLoggingBehavior", "Transitions": { "NextAction": "35f6935a-b3f2-4b29-90f2-6cd2998da07b" } }, { "Parameters": { "ProfileRequestData": { "PhoneNumber": "$.Attributes.CustomerPhoneNumber" }, "ProfileResponseData": [ "FirstName", "LastName", "PhoneNumber", "EmailAddress", "Address1", "City", "Country", "PostalCode", "State" ] }, "Identifier": "35f6935a-b3f2-4b29-90f2-6cd2998da07b", "Type": "GetCustomerProfile", "Transitions": { "NextAction": "032fdba4-bfbd-44b0-9cc4-137dbe7716cd", "Errors": [ { "NextAction": "09e52458-e5f0-44e2-b792-f91357219202", "ErrorType": "NoMatchingError" }, { "NextAction": "09e52458-e5f0-44e2-b792-f91357219202", "ErrorType": "MultipleFoundError" }, { "NextAction": "09e52458-e5f0-44e2-b792-f91357219202", "ErrorType": "NoneFoundError" } ] } }, { "Parameters": { "ProfileRequestData": { "FirstName": "FileLuggageClaim", "LastName": "Example", "PhoneNumber": "+11111111111" }, "ProfileResponseData": [ "FirstName", "LastName", "PhoneNumber" ] }, "Identifier": "09e52458-e5f0-44e2-b792-f91357219202", "Type": "CreateCustomerProfile", "Transitions": { "NextAction": "032fdba4-bfbd-44b0-9cc4-137dbe7716cd", "Errors": [ { "NextAction": "032fdba4-bfbd-44b0-9cc4-137dbe7716cd", "ErrorType": "NoMatchingError" } ] } }, { "Parameters": { "Attributes": { "actionName": "$.Views.ViewResultData.actionName" } }, "Identifier": "dde23aa2-75f5-4d02-b08c-14f44fa43b4d", "Type": "UpdateContactAttributes", "Transitions": { "NextAction": "ec289ffe-a6bd-4e78-80fe-d32168bb60be", "Errors": [ { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingError" } ] } }, { "Parameters": { "Attributes": { "CustomerFullName": "$.Customer.FirstName $.Customer.LastName" } }, "Identifier": "032fdba4-bfbd-44b0-9cc4-137dbe7716cd", "Type": "UpdateContactAttributes", "Transitions": { "NextAction": "dffdf5f8-04f2-4880-a6dc-b18fbddf61f7", "Errors": [ { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingError" } ] } }, { "Parameters": { "ComparisonValue": "$.Attributes.actionName" }, "Identifier": "ec289ffe-a6bd-4e78-80fe-d32168bb60be", "Type": "Compare", "Transitions": { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "Conditions": [ { "NextAction": "2c383a61-44af-4cac-90e3-e68383c807e5", "Condition": { "Operator": "Equals", "Operands": [ "Start a new claim" ] } }, { "NextAction": "dffdf5f8-04f2-4880-a6dc-b18fbddf61f7", "Condition": { "Operator": "Equals", "Operands": [ "Something else" ] } } ], "Errors": [ { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingCondition" } ] } }, { "Parameters": {}, "Identifier": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "Type": "DisconnectParticipant", "Transitions": {} }, { "Parameters": { "ViewResource": { "Id": "cards", "Version": "Latest" }, "InvocationTimeLimitSeconds": "300", "ViewData": { "Heading": "\"$.Attributes.CustomerFullName may be contacting about...\"", "AttributeBar": [ { "Label": "Full Name", "Value": "$.Attributes.CustomerFullName" }, { "Label": "Case ID", "Value": "12345", "Copyable": true }, { "Label": "IVR Response", "Value": "$.Attributes.IVRResponse" } ], "Back": { "Label": "Back" }, "NoMatchFound": { "Label": "Can't find match?" }, "Cards": [ { "Summary": { "Id": "lost_luggage", "Icon": "plus", "Heading": "Lost luggage claim" }, "Detail": { "Heading": "Lost luggage claim", "Description": "Use this flow for customers that have lost their luggage and need to fill a claim in order to get reimbursement. This workflow usually takes 5-8 minutes", "Sections": { "TemplateString": "Steps:
  1. Customer provides incident information
  2. Customer provides receipts and agrees with amount
  3. Customer receives reimbursement
" }, "Actions": [ "Start a new claim", "Something else" ] } }, { "Summary": { "Id": "car_rental", "Icon": "Car Side View", "Heading": "Car rental - New York", "Status": "Upcoming Sept 17, 2022" }, "Detail": { "Heading": "Car rental - New York", "Sections": { "TemplateString": "

There is no additional information

" } } }, { "Summary": { "Id": "trip_reservation", "Icon": "Suitcase", "Heading": "Trip to Mexico", "Status": "Upcoming Aug 15, 2022", "Description": "Flying from New York to Cancun, Mexico" }, "Detail": { "Heading": "Trip to Mexico", "Sections": { "TemplateString": "

There is no additional information

" } } }, { "Summary": { "Id": "fligh_reservation", "Icon": "Airplane", "Heading": "Flight to France", "Status": "Upcoming Dec 5, 2022", "Description": "Flying from Miami to Paris, France" }, "Detail": { "Heading": "Flight to France", "Sections": { "TemplateString": "

There is no additional information

" } } }, { "Summary": { "Id": "flight_refund", "Icon": "Wallet Closed", "Heading": "Refund flight to Atlanta", "Status": "Refunded July 10, 2022" }, "Detail": { "Heading": "Refund trip to Atlanta", "Sections": { "TemplateString": "

There is no additional information

" } } }, { "Summary": { "Id": "book_experience", "Icon": "Hot Air Balloon", "Heading": "Book an experience", "Description": "Top experience for european travellers" }, "Detail": { "Heading": "Book an experience", "Sections": { "TemplateString": "

There is no additional information

" } } } ] } }, "Identifier": "dffdf5f8-04f2-4880-a6dc-b18fbddf61f7", "Type": "ShowView", "Transitions": { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "Conditions": [ { "NextAction": "dde23aa2-75f5-4d02-b08c-14f44fa43b4d", "Condition": { "Operator": "Equals", "Operands": [ "ActionSelected" ] } }, { "NextAction": "032fdba4-bfbd-44b0-9cc4-137dbe7716cd", "Condition": { "Operator": "Equals", "Operands": [ "Back" ] } }, { "NextAction": "032fdba4-bfbd-44b0-9cc4-137dbe7716cd", "Condition": { "Operator": "Equals", "Operands": [ "NoMatchFound" ] } } ], "Errors": [ { "NextAction": "032fdba4-bfbd-44b0-9cc4-137dbe7716cd", "ErrorType": "NoMatchingCondition" }, { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingError" }, { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "TimeLimitExceeded" } ] } }, { "Parameters": { "ViewResource": { "Id": "confirmation", "Version": "Latest" }, "InvocationTimeLimitSeconds": "300", "ViewData": { "Heading": "Your claim has been submitted", "AttributeBar": [ { "Label": "Full Name", "Value": "$.Attributes.CustomerFullName" }, { "Label": "Case ID", "Value": "12345", "Copyable": true }, { "Label": "IVR Response", "Value": "$.Attributes.IVRResponse" } ], "Next": { "Label": "Close this workflow" }, "SubHeading": "You will be receiving a confirmation email shortly. Next steps: Upload receipts by following the link in the email" } }, "Identifier": "fbb706b1-674c-422c-9859-b78dff7de155", "Type": "ShowView", "Transitions": { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "Conditions": [ { "NextAction": "dffdf5f8-04f2-4880-a6dc-b18fbddf61f7", "Condition": { "Operator": "Equals", "Operands": [ "Next" ] } } ], "Errors": [ { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingCondition" }, { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingError" }, { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "TimeLimitExceeded" } ] } }, { "Parameters": { "ViewResource": { "Id": "form", "Version": "Latest" }, "InvocationTimeLimitSeconds": "300", "ViewData": { "Heading": "File missing luggage claim", "AttributeBar": [ { "Label": "Full Name", "Value": "$.Attributes.CustomerFullName" }, { "Label": "Case ID", "Value": "12345", "Copyable": true }, { "Label": "IVR Response", "Value": "$.Attributes.IVRResponse" } ], "Sections": [ { "Heading": "Customer Information", "Type": "DataSection", "IsEditable": false, "Configuration": {}, "Items": [ { "AutoOpen": false, "Label": "First Name", "Value": "$.Customer.FirstName", "Copyable": false }, { "AutoOpen": false, "Label": "Last Name", "Value": "$.Customer.LastName", "Copyable": false }, { "AutoOpen": false, "Label": "Phone Number", "Value": "$.Attributes.CustomerPhoneNumber", "Copyable": false }, { "AutoOpen": false, "Label": "Email", "Value": "$.Customer.EmailAddress", "Copyable": false } ] }, { "Heading": "Incident Details", "Type": "FormSection", "IsEditable": false, "Configuration": {}, "Items": [ { "DefaultValue": "2022-10-10", "Type": "DatePicker", "Required": false, "Fluid": true, "Label": "Day", "Name": "date", "MultiSelect": false }, { "DefaultValue": "13:00", "Type": "TimePicker", "Required": false, "Fluid": true, "Label": "Time", "Name": "time", "MultiSelect": false }, { "DefaultValue": "arrival", "Type": "RadioGroup", "Required": false, "Fluid": true, "Label": "Lost luggage on", "Name": "lostLuggageOn", "Options": [ { "Value": "arrival", "Label": "Arrival" }, { "Value": "departure", "Label": "Departure" } ], "MultiSelect": false }, { "Required": false, "Fluid": false, "MultiSelect": false, "Type": "Dropdown", "Label": "Flight Number", "Name": "flightNumber", "Options": [ { "Label": "AB1234", "Value": "AB1234" }, { "Label": "AB5678", "Value": "AB5678" } ] }, { "Required": false, "Fluid": true, "MultiSelect": false, "Type": "TextArea", "Name": "comment", "Label": "Additional Comments" } ] } ], "Cancel": { "Label": "Cancel" }, "Next": { "Label": "Submit Claim" }, "Back": { "Label": "Back" } } }, "Identifier": "2c383a61-44af-4cac-90e3-e68383c807e5", "Type": "ShowView", "Transitions": { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "Conditions": [ { "NextAction": "dffdf5f8-04f2-4880-a6dc-b18fbddf61f7", "Condition": { "Operator": "Equals", "Operands": [ "Back" ] } }, { "NextAction": "fbb706b1-674c-422c-9859-b78dff7de155", "Condition": { "Operator": "Equals", "Operands": [ "Next" ] } }, { "NextAction": "fbb706b1-674c-422c-9859-b78dff7de155", "Condition": { "Operator": "Equals", "Operands": [ "Step" ] } } ], "Errors": [ { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingCondition" }, { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "NoMatchingError" }, { "NextAction": "31aa4fee-6480-495e-b003-bbf5b4ab1cea", "ErrorType": "TimeLimitExceeded" } ] } } ] }