Hi,
I need help creating a workflow where ChatGPT gives me a number of recepies. Then i would like to upload them to Airtable.
I need help structuring the data. I get a ChatGPT response where he lists let’s say 10 recipes.
I need to split his response so i can reference each recipe, and then i also want to split each recipe into 2 parts (recepie_name , recepie_content )
If you cold help me with this i would be very grateful.
Welcome to the Make community!
To allow others to assist you with your scenario, please provide the following:
1. Scenario Blueprint
Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
2. Output Bundles of Modules
Please provide the output bundles of the trigger modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
A. Upload as Text File
Save each bundle contents in your text editor as a bundle.txt
file, and upload it here into this discussion thread.
B. Insert as Formatted Code Block
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:
-
Method 1: Type code block manually
Add three backticks ```
before and after the content/bundle, like this:
```
content goes here
```
-
Method 2. Highlight and click the format button in the editor
Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
Following these steps will allow others to assist you here. Thanks!
Welcome to the Make community!
Yes, that is possible. You’ll need a minimum of one module:
Output
Module Export
You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.
-
Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.
-
Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.
Click to Expand Module Export Code
JSON - Copy and Paste this directly in the scenario editor
{"subflows":[{"flow":[{"id":174,"module":"openai-gpt-3:transformTextToStructuredData","version":1,"parameters":{"__IMTCONN__":107818},"mapper":{"model":"gpt-4o","rawText":"{{173.result}}","prompt":"Extract an article containing multiple recipes into a JSON array.","parameters":[{"name":"recipes","description":"an array of recipes","type":"arrayObject","isRequired":true,"definitionName":"recipe_def"}],"objectDefinitions":[{"name":"recipe_def","description":"a recipe","properties":[{"name":"name","description":"name of recipe","type":"string","isRequired":true},{"name":"ingredients_list","description":"a list of ingredients","type":"arrayString","isRequired":true},{"name":"instructions_list","description":"an list of step-by-step instructions","type":"arrayString","isRequired":true}]}]},"metadata":{"designer":{"x":1963,"y":-314,"name":"Recipe Extractor"},"parameters":[{"name":"__IMTCONN__","type":"account:openai-gpt-3","label":"Connection","required":true}]}}]}],"metadata":{"version":1}}
Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!