watson-developer-cloud / botkit-middleware

A middleware to connect Watson Conversation Service to different chat channels using Botkit
https://www.npmjs.com/package/botkit-middleware-watson
Apache License 2.0
207 stars 257 forks source link

Slack Integration with IBM Watson Assistant won't accept new line in user queries. #236

Open sngoh55 opened 2 years ago

sngoh55 commented 2 years ago

I'm getting problems whenever I have a new line in my messages to my slack bot.

image

Naktibalda commented 2 years ago

How do you send it to Watson?

New line should be replaced by this code: https://github.com/watson-developer-cloud/botkit-middleware/blob/master/src/index.ts#L148

This issue was fixed by https://github.com/watson-developer-cloud/botkit-middleware/pull/117 in 1.6.2 (4 years ago), is it possible that you are using an older version?