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
preguntada hace 2 meses120 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas