Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
How to get flow variable value from dialog flow to custom API? — 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

How to get flow variable value from dialog flow to custom API?

Received Response
10
Views
2
Comments
edited Oct 9, 2019 1:08PM in API Management 2 comments

Summary

Developing the chat-bot using digital assistant in oracle mobile cloud service.

Content

I would like to pass user input from dialog flow into custom component API. But, I am not able the variable value inside the custom API using  conversation.properties().personId  method.

 

 

Code Snippet

Dailogflow,
getTime:
    component: "getTimecard"
    properties:
      hours: "hours"
      person_id: "${personId.value.number}"

  typeprompt:
    component: "System.Text"
    properties:
      prompt: "please enter person_id?"
      variable: "personId"
    transitions: 
      next : "displaydata"
  displaydata:  
    component: "System.Output"
    properties:
      text: "Your ${personId.value.number}"
    transitions:
      return: "done"
  
  PrintTime:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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