amazon lex v2: New line in Twilio WhatsApp ?

0

Hello,

I'm integrating Amazon Lex with WhatsApp through Twilio but can't get newline characters (\n) to work in the messages. Does anyone know how to format messages with line breaks in this setup? Any advice or workaround would be greatly appreciated.

Thanks!..

Yossef
已提問 2 個月前檢視次數 118 次
1 個回答
0

In Amazon Lex with Twilio integration, use "%0a" to represent newline characters instead of "\n". For example, "Hello%0aWorld" will display as:

Hello
World

Ensure that the message body is URL-encoded and includes "%0a" wherever line breaks are desired.

profile picture
專家
已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南