• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

json ```{"variable":"value"}``` response back from chat GPT is not parseable

bryannws

Member
I have asked my chat gpt agent to provide the response value as a JSON object, and it is coming into pabbly connect as:

json ```{"variable":"value"}```

But when I do a JSON parser on that it says not a valid JSON object.

When I write a block of code on python, it is saying that

unexpected character after line continuation character (<string>, line 16)

So how do I properly parse this?

Thanks.
 

Luv

Member
Staff member
Hey @bryannws

Kindly clarify your query a bit more and let us know your workflow name or ID so that we can look into it and suggest you a resolution accordingly.
 

Luv

Member
Staff member
Hey @bryannws

Please attempt to run your code in a compiler initially and address any errors that arise. We encountered numerous syntax errors when we did the same.
Also, be aware that no technical support will be offered for issues related to code. We strongly advise reviewing the code documentation for additional details and guidance - https://forum.pabbly.com/threads/python-code-by-pabbly.12014/

Let us know if in case you face any issues regarding Pabbly Connect or any error inside Pabble Connect.
 

bryannws

Member
Look I call an API with GPT and it returns back the following just like I asked it too. I use the JSON parser on my API return call, and pull out the response from GPT

```json
{
"Subject": "Exciting Collaboration & Podcast Opportunity!",
"Body": "Hi Ashley,

I’m XXXX and I’ve been following your amazing work on Instagram at url.

We also have an affiliate program where you can earn $14 per sale. If you're interested, just reply to this email, and I’ll send you the details on how to get started.

Additionally, we’d be thrilled to feature you as a guest on one of our podcasts. You can check out our podcast lineup at the url

Best,
name
url"
}
```

So my question is, when will you just support GPT natively and not make me build out the GPT api calls myself?

How do I parse that into the two variables I need? JSON parse fails, and so does the code snippet.

That is my goal here Thank you.
 

Luv

Member
Staff member
Hey @bryannws

We had a look into your workflow and it appears that your "Code by Pabbly" step is working fine now. Kindly refer to the image below,

1719834607522.png


Let us know if you are still facing issues.
 
Top