rodion6
Member
- Consent to Access & Modify
- I authorize Pabbly Support to log in to my account and make changes to the specified workflow for troubleshooting.
Hello everyone,
I'm working on a social media content automation on Pabbly Connect and I'm stuck on data formatting between two steps. I need your help.
Here is an exact example of the text I'm receiving:
ESCENA 1 Visual: Un empresario tecnoexitoso, posando con un automóvil deportivo en una carretera rodeada de rascacielos ultra modernos.ESCENA 2 Visual: Una fábrica de tornillos en funcionamiento, maquinaria pesada en pleno uso.ESCENA 3 Visual: Una bodega grande y un tanto descuidada, sin ventanas, repleta de cajas y mercancías.ESCENA 4 Visual: Un fabricante de plástico en su línea de producción con montones de productos de plástico listos para embalaje.ESCENA 5 Visual: Dueños de negocios multimillonarios: uno está en un autobús lleno de gente, el otro está andando en bicicleta en una pista ciclista, el tercero está caminando en un barrio de clase media.ESCENA 6 Visual: Diferentes esquinas de diversas ciudades, con la sugerencia de que hay millonarios anónimos entre la gente común que camina a su alrededor.
I need to convert this text into a valid JSON array for the Iterator. This is what the final format should look like:
["ESCENA 1...", "ESCENA 2...", etc.]
Does anyone know of a reliable way to format this text to work with the Iterator? Which module or method would you recommend?
Any suggestions would be greatly appreciated. Thank you so much!
I'm working on a social media content automation on Pabbly Connect and I'm stuck on data formatting between two steps. I need your help.
My Workflow
- Workflow Name: "Sheets to YOUTUBE"
- Step 10: OpenAI (ChatGPT) Module
- Step 11: Iterator Module
The Problem
The ChatGPT module gives me a response as a single text string. It's not in a valid JSON format, so the Iterator can't process it.Here is an exact example of the text I'm receiving:
ESCENA 1 Visual: Un empresario tecnoexitoso, posando con un automóvil deportivo en una carretera rodeada de rascacielos ultra modernos.ESCENA 2 Visual: Una fábrica de tornillos en funcionamiento, maquinaria pesada en pleno uso.ESCENA 3 Visual: Una bodega grande y un tanto descuidada, sin ventanas, repleta de cajas y mercancías.ESCENA 4 Visual: Un fabricante de plástico en su línea de producción con montones de productos de plástico listos para embalaje.ESCENA 5 Visual: Dueños de negocios multimillonarios: uno está en un autobús lleno de gente, el otro está andando en bicicleta en una pista ciclista, el tercero está caminando en un barrio de clase media.ESCENA 6 Visual: Diferentes esquinas de diversas ciudades, con la sugerencia de que hay millonarios anónimos entre la gente común que camina a su alrededor.
My Goal
I need to convert this text into a valid JSON array for the Iterator. This is what the final format should look like:
["ESCENA 1...", "ESCENA 2...", etc.]
What I've Tried
I've tried adjusting the ChatGPT prompt and using the Text Formatter to replace newlines and other expressions, but I haven't been able to successfully extract just the array content.Does anyone know of a reliable way to format this text to work with the Iterator? Which module or method would you recommend?
Any suggestions would be greatly appreciated. Thank you so much!