cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Use get reponse in post method

0 Likes
873

I want to duplicate a text using my chatbot and an API, so I used the GET and POST method.


But when my text contains an enter the API don't accept it and returns me the error below normaly an enter it's considered like an "\n" but not in this case. Do you have any suggestions ?

this is the what the variable {{api_service_response.default.body.fields.description}} contains


Accepted Solutions (1)

Accepted Solutions (1)

JonasB
Advisor
Advisor

Hi Saad,

please try using the {{escape variable}} helper as the API you're calling explicitly wants the special characters to be escaped.

e.g.

{{escape api_service_response.default.body.fields.description}}

If that doesn't help, please provide an example value of the variable, as it's missing in your post.

Regards
Jonas

0 Likes

Hello Jonas,

Thank you it works

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

saadha Can you make sure to approve the answer if it works for you? Thanks.

Answers (0)