Share feedback, ideas and get community help

D
F
M
a
g

Json response from GPT to Variables

I config OpenAI block to create a chat completion, this will generate a json response like this :

{
"name": "name here",
"email": "email here"
}

I need know how and if is possible save this into to variables.


Here is the flow

https://app.typebot.io/typebots/clrj82g020029rlwrmh7pqx60/edit
Attachment
image.png
V
M
5 comments
JSON.parse({{response}}).name
JSON.parse({{response}}).email
Attachment
image.png
Thanks, I will try...
Works like a charm, thanks @Vilela™
Attachment
image.png
I think soon will be better use GPT than make some JS code to make the same thing...
Add a reply
Sign up and join the conversation on Discord
Join