Skip to main content
Solved

Automation doesnt trigger when linebreak is in a text.

  • April 15, 2026
  • 2 comments
  • 26 views

Marko Luburic

Hello everyone,

I have an automation in ManyChat that is supposed to reply to Instagram DMs.

However, I’ve noticed an issue with line breaks (\n):

  • When I send a DM that contains a line break, the automation does not trigger.
  • When I send a message without a line break, the automation works as expected.

Additionally, I am using n8n for the response:

  • If the message received by ManyChat does not contain a line break, everything works and a reply is sent correctly.
  • If the response from n8n contains a line break, the message is not sent in the DMs.

Does anyone have an idea how to fix this issue?

Best regards,
Marko

Best answer by Gustavo Boregio

@Marko Luburic is the ‘\n’ json encoded?

My bet is that your N8N is not sending the content properly encoded, so it breaks the JSON body (and Manychat probably returns an error).

If you’re using the external request in Manychat you need to make sure the user field is configured with ‘Encode to JSON’ option: https://help.manychat.com/hc/en-us/articles/14281252007580-Dev-Tools-Basics

In N8N, make sure you encode everything correctly before adding it to your JSON body.

2 replies

Gustavo Boregio
Forum|alt.badge.img+7
  • Community Moderator & Expert
  • Answer
  • April 16, 2026

@Marko Luburic is the ‘\n’ json encoded?

My bet is that your N8N is not sending the content properly encoded, so it breaks the JSON body (and Manychat probably returns an error).

If you’re using the external request in Manychat you need to make sure the user field is configured with ‘Encode to JSON’ option: https://help.manychat.com/hc/en-us/articles/14281252007580-Dev-Tools-Basics

In N8N, make sure you encode everything correctly before adding it to your JSON body.


Marko Luburic
  • Author
  • Up-and-Comer
  • April 17, 2026

@Marko Luburic is the ‘\n’ json encoded?

My bet is that your N8N is not sending the content properly encoded, so it breaks the JSON body (and Manychat probably returns an error).

If you’re using the external request in Manychat you need to make sure the user field is configured with ‘Encode to JSON’ option: https://help.manychat.com/hc/en-us/articles/14281252007580-Dev-Tools-Basics

In N8N, make sure you encode everything correctly before adding it to your JSON body.

Hey ​@Gustavo Boregio ,

Thank you for reaching out.
You were absolutely right — thank you so much!

Best regards,
Marko