I am retrieving data from a CRM. When I initiate the call from the HTTP Response NODE, I receive nicely formatted JSON.
However, when I perform the identical call from the HTTP Response TOOL (which is being invoked by AI), the JSON is not formatted nicely (please see below).
Does anyone have any ideas? (Apologies if this is a basic question; I'm still getting accustomed to things).
Thanks in advance,
Brent
Please share your workflow
Hello, welcome to the community!
What you're observing is expected behavior. In the second image, the JSON includes escape characters such as n
(newlines) because the JSON response is being presented as a string when sent to the AI tool.
The initial view (from the HTTP Response NODE) displays the JSON object as parsed and formatted. In contrast, the second view (from the HTTP Response TOOL) shows the raw string representation, which contains these escape characters.
This string format is required for the AI to process the JSON data. However, it does not alter the actual data structure or its content. The AI will still be able to parse and utilize this information correctly, regardless of the visual difference.
Hi there,
thanks for your reply. That makes complete sense.
My main worry was that if the data wasn't structured correctly, it might not interpret the fields and information as effectively. However, you've eased my concerns.
Thank you.
Brent
This thread was automatically closed 7 days following the last response. New replies are no longer permitted.