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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠