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
demandé il y a 2 mois119 vues
1 réponse
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
EXPERT
répondu il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions