Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Not able to send response back from instant app — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Not able to send response back from instant app

Received Response
14
Views
1
Comments
edited Mar 1, 2018 8:00AM in Digital Assistant and Mobile 1 comment

Summary

Not able to send response back from instant app

Content

I have  created a bot with following code

 

metadata:

  platformVersion: "1.0"

main: true

name: "AshishBots"

context:

  variables:

    welcomeMessage: "showWelcomeMessage"

    messageResponse: "string"

    iResult: "nlpresult"

states:

  intent:

    component: "System.Intent"

    properties:

      variable: "iResult"

      confidenceThreshold: 0.4

    transitions:

      actions:

        Welcome Message: "showWelcomeMessage"

        Visa Tracking: "checkVisaStatus"

        unresolvedIntent: "unresolved"

  showWelcomeMessage:

    component: "System.List"

    properties:

      options: "${welcomeMessage.type.enumValues}"

      prompt: "Please select from following option"

      variable: "welcomeMessage"

    transitions: {}

  checkVisaStatus:

    component: "System.Interactive"

    properties:

      sourceVariableList: "welcomeMessage"

      variable: "messageResponse"

      id: "Visa_Tracking_App_1"

      prompt: "Please click on the link to track your visa"

    transitions: {}

  instantAppOutput:

    component: "System.Output"

    properties:

      text: "Your passport number is '${messageResponse.value.passportno}'"

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!