Ways to convert data form Gemini or ChatGPT to plain text without using API’s
So i have a json response in the text. Which is fine, but how can i convert this to plain text? Because i want to sent it to the ga4 data api and it doesn’t likes the json format this way. If you transfer it in text or use it in states the json format is still there. What can i do to transform this to plain text? Without plugins or external services please.
You can use raw body text as to get plain text of the response and then send it you can send it to another API via: <your json object:format as text (JSON-safe)>
Hey @tarasmuzon thanks for the reply. Raw body text remains empty. That’s the whole problem… i only need the raw text without the /n characters but in a normal text body. The /n characters don’t appear.
So you only need “parts” of your response as raw text, not full response?
If so, do what @douglas.epr, although API calls will be WU expensive if you are doing a lot.
If you don’t want to do API Connector you can use Toolbox plugin (I know you said no plugins, but API Connector and Toolbox are kinda my default ones for any project):
Hey, douglas. It was the content type. I did not put application/json to it. but only application. Works now, thanks! It would help in the video if you would have a use case showing the result and an example. But the rest was great to follow.
I was to fast, this only makes the data usable but I want this content exactly in the api. If i get it into a bubble data format. i still have the same problem, because i don’t have the report in raw data…
I only split the report into different data types using this action. I cannot get the data raw into this one field. Which is the only thing i need. Because the report is already good. I only need to transfer the json to raw text format withou jsonsafe.
I think I understood. Dates data type is not coming in the correct format.
Try to receive dates as a text and inserting conditionals, like: “This text is 'yesterday:Format as text: (current date/time + days: -1”