0

I set a loop in my child nodes to loop through my JSON array that is retrieved from IBM Cloud Functions. In 'Try It Now,' it works completely fine, but when I deployed it on a client in localhost, the child node output does not display. Any ideas why?

enter image description here

The output is in 'Increment'

In the localhost client, the 'Watson Understands' shows my array values there, it just does not output from the child node. It only outputs the anything_else response

John C
  • 517
  • 2
  • 6
  • 16

1 Answers1

2

Anytime things are different in the tryout panel than in your app, check two things. 1. You are passing all the system context back to Watson. when you make your first call to Watson, he will return a context object, your app needs to copy and paste this back with the next message you send in so he knows the state of the conversation 2. You are using the most recent API version. I dont think this is the issue here, it sounds like an issue with context, but if results are different this is also another very common reason.

Mitch
  • 849
  • 4
  • 4
  • 1
    I would also add. (1) Do not use "Jump To" to go into a branch, use "Skip User Input". (2) Your loop will be disabled after 50 iterations of the same node in the same call (to stop endless loops). So you can never get your counter higher than 50. – Simon O'Doherty Jul 20 '18 at 04:56
  • The problem is I am trying to output an image, text and option response type in one output. If I just output text it works, but trying to output image fails. – John C Jul 22 '18 at 05:24
  • Are you sure you’re using the most recent api version? That is the only one that supports the new response types – Mitch Jul 23 '18 at 07:12