I need help with this scenario, I want to convert a text element to a JSON string format and parse each results to an Airtable record, I tried this both ways it is giving me error that source is not a valid JSON
Why do you need these two modules?
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!
Here are the screenshot
Here is the blueprint
blueprint (18).json (30.5 KB)
|here are the outputs
[
{
"result": "Title: The Divergent Series: Insurgent\nAuthor: Veronica Roth\nPublication Date: May 1, 2012\nISBN-10: 1475033191\nISBN-13: 978-1475033199\nPublisher: CreateSpace Independent Publishing Platform\nLanguage: English\nCover Description: The cover features a close-up image of a young woman with intense eyes, symbolizing bravery and determination.\nAuthor's Email: Not available\nAuthor's LinkedIn: Not available",
"id": "chatcmpl-9nydDmHmjhDgfacTFcMVkOEISS699",
"object": "chat.completion",
"created": "2024-07-23T01:29:27.000Z",
"model": "gpt-3.5-turbo-0125",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Title: The Divergent Series: Insurgent\nAuthor: Veronica Roth\nPublication Date: May 1, 2012\nISBN-10: 1475033191\nISBN-13: 978-1475033199\nPublisher: CreateSpace Independent Publishing Platform\nLanguage: English\nCover Description: The cover features a close-up image of a young woman with intense eyes, symbolizing bravery and determination.\nAuthor's Email: Not available\nAuthor's LinkedIn: Not available"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 59,
"completion_tokens": 98,
"total_tokens": 157
},
"system_fingerprint": null
}
]
[
{
"json": "\"Title: The Divergent Series: Insurgent\\nAuthor: Veronica Roth\\nPublication Date: May 1, 2012\\nISBN-10: 1475033191\\nISBN-13: 978-1475033199\\nPublisher: CreateSpace Independent Publishing Platform\\nLanguage: English\\nCover Description: The cover features a close-up image of a young woman with intense eyes, symbolizing bravery and determination.\\nAuthor's Email: Not available\\nAuthor's LinkedIn: Not available\""
}
]
[
null
]