Hello!
I'm new to callin.io (started learning 2 weeks ago
).
Below is a screenshot of my scenario and also the blueprint.
What the scenario does is periodically analyze new job postings through ChatGPT, and those that are validated are added to a sheet.
What I'd like to know is if there's a way to use fewer operations. The last three modules (GPT, parse result, and Google Sheet) each consume one operation for every job posting. Is there a way to process them "in bulk"?
I don't even know if it's possible, but I figured I'd ask anyway.
Thanks!
upwork rss feed blueprint.json (58.5 KB)
There's a method to streamline adding rows to Google Sheets. You can utilize an API call to batch append rows, consolidating multiple entries into a single operation, rather than requiring individual operations for each of, say, 100 job offerings.
I'll guide you through this process.
-
Set up your data aggregation within a text aggregator once you've gathered all necessary information from ChatGPT. This occurs after the 'Parse JSON' step. Based on my analysis, you'll likely need one API call per job posting analysis.
-
Structure the data in the text aggregator so the Google Sheets API can interpret it. This can be managed within the text module itself. Here, you can see how we're adding three columns of data—'rand', 'bundles', and 'order'—into a single row. The format is as follows:
[“column1data”, “columns2data”,“column3data”],
Ensure you retain all the symbols and commas, as these are crucial for the API to read the data correctly. Also, set your row separator to 'new row'. You can include more columns by following the same format.
The output should appear like this:
Next, you'll need to perform an API call and configure it as follows. Substitute your text aggregator variable for 'textvariable'.
URL: spreadsheets/REPLACEWITHYOURGOOGLESHEETID/values/REPLACEWITHSHEETNAME!A:Z:append
qs:
key: valueInputOption
value: USER_ENTERED
body:
{
“range”: “Sheet1!A:Z”,
“majorDimension”: “ROWS”,
“values”: [
textvariable
]
}
Observe the process in action below:
What would typically require 11 operations to transfer data from Airtable to Google Sheets was accomplished in just 3 operations.
10 bundles from Airtable:
Aggregated data:
Added to Google Sheets:
Let me know if this is helpful! It's a rather complex API call, but it's an excellent learning opportunity if you're new to callin.io. It unlocks a significant new capability!
Thank you very much! At least I know there’s a solution
I read through your reply but I’ll be honest, I didn’t understand all the steps
I’ll go back through it tomorrow with a fresh mind, and if I can’t figure it out I’ll let you know.
Also, is this method valid if I want to keep adding new rows to the sheet as new job postings come in?
Thanks again!
Yes, this is for adding new rows each time you execute your scenario. It will utilize a single operation to add all rows.
If you require further assistance, I am available.
.
Hi, it looks like you missed adding the Query String. Please let me know if this resolves the issue!
Thanks, but I'm still having trouble figuring it out. I'll continue learning and revisit this once I've gained more experience. Thank you for your assistance!
All the best with your endeavors!!
Consider exploring the callin.io courses.