Replies: 1 comment
-
Not sure why you dont have an automaNextBlock command at the end as I believe it is needed to finalize as I had no problem with it generating the end variable. I'm not highly skilled but using Regex commands was able to turn a variable that was set to 123456789qwertyz!@#$%^&*() into 123456789qwertyz using the following: const inputText = automaRefData('variables', 'gpt') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there, newbie here..
Okay, so, what I'm trying to do is supposed to be simple.
I have a variable inside automa which is a chatGPT output with \n\n everywhere and shi.
I asked this mofoGPT how, using JS and regex, I can turn my text into a coherent one with line jumps. He gave me this script. That I adapted for Automa.
So what it does is retrieve the data from 'gpt' automa variable, puts it in 'inputText' JS const
Line 2 is supposed to make the regex replacements I want it to do
Line 3 is supposed to append a new variable into automa named gpt1, which value would be the new formatted text.
Thing is, it doesn't work. I know line 1 and 3 are correct, I tested them both. This is how it should be written if I'm not mistaken, with the Automa communication functions.
But nothing happens when I start the script with line 2 in it, variable gpt1 isn't even created, whatever the output should be. Yet logs give me no errors
I'm confused.. Can someone better than me in code help? I'm just a regular dumbass entrepreneur lmao.
Thanks in advance boys
Beta Was this translation helpful? Give feedback.
All reactions