Understanding Line Break in Watson Conversation

Asked 2 years ago, Updated 2 years ago, 62 views

I would like Watson Conversation to display a response message from Watson with a new line.
Even if you try the following methods, they will not break the line.


 Oh, my God.  Kakikakeko

Enter the following in Dialog's "Then response with:"

US>Aye\nKakikakeko
US>Aye\r\nKakikakeko

If you check Try it out...

US>Aye\nKakikakeko
US>Aye\r\nKakikakeko

appears as it is.

I tried the following method in Json Editor, and the result was the same.

US>Aye\\nKakikakeko
US>Aye\\r\\nKakikakeko


How do I get Conversation to write a new line?

json

2022-09-29 22:17

1 Answers

Sorry, I solved myself.

D Enter the following in Dialog's The response with:

Aye\nKakikakeko

J Open in Json Editor and delete one backslash

Aye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye-ye.

TTry it out shows no new line, but on Slack it shows a new line.


2022-09-29 22:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.