Skip to main content
Solved

How to escape : "" / special characters in External requests

  • April 26, 2025
  • 2 replies
  • 20 views

asgerlaursen

When making an external request, with user data - it can occur that a user has typed in a sentence containing a special character like : or “. Then the external request breaks.

In the picture here - you have NO idea what string it is that is “unterminated” 

After traversing through the data I found that one of the strings (user inputs) contained a : 

 

Couldn’t manychat escape the variables when inserting them - or are there other work arounds to avoid this showstopper from happening?

 

Best answer by rogerioaraujo

Hello ​@asgerlaursen ,
Below is a screenshot showing how to resolve this issue. Basically, you need to click on the custom field and enable the "Encode to JSON" option.


Please let me know if I was able to help you.

2 replies

rogerioaraujo
Forum|alt.badge.img+2
  • Flow Scholar
  • 495 replies
  • Answer
  • April 26, 2025

Hello ​@asgerlaursen ,
Below is a screenshot showing how to resolve this issue. Basically, you need to click on the custom field and enable the "Encode to JSON" option.


Please let me know if I was able to help you.


asgerlaursen
  • Author
  • Up-and-Comer
  • 5 replies
  • April 28, 2025

AWESOME 

Great post - thank you!!!