Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

edited Mar 1, 2018 8:00AM in Digital Assistant & 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!