#metadata: information about the flow # platformVersion: the version of the bots platform that this flow was written to work with metadata: platformVersion: "1.0" main: true name: FinancialDisputeBot #context: Define the variables which will used throughout the dialog flow here. context: variables: fullname: "string" amount: "string" outputfromweb: "string" states: askName: component: "System.Text" properties: prompt: "Let's get the credit card transaction dispute sorted, can you please help me with your name?" variable: "fullname" askAmount: component: "System.Text" properties: prompt: "Can you please confirm the dispute amount (in USD)?" variable: "amount" webview: component: "System.Webview" properties: sourceVariableList: "fullname, amount" variable: "outputfromweb" prompt: "Please tap on the link to proceed" service: "DisputeFormService" transitions: next: "output" actions: textReceived: "onCancel" cancel: "onCancel" output: component: "System.Output" properties: text: "Thank-you ${fullname.value}, we have noted your response - ${outputfromweb.value.disputeReason}" keepTurn: false translate: transitions: return: "done" onCancel: component: "System.Output" properties: text: "I'm sorry that you have canceled your dispute request." transitions: return: "done"