Problem with variables in OpenAI prompt related to Google Sheet

Hello,
I tried to make an automatization between Google Sheets and Open AI to write article for a wordpress blog.
I start from a Google sheet containing all the variables (subject of the article / Tone / Keywords, etc…)
I put a webhook link on it.
Then I have an Open AI module containing the prompt. (see picture). The Open AI API is ok.

The scenario seems to work, but there are errors. Make doesn’t recognize the variables from the sheet.

I presume that the errors come from the prompt that I write.
If somebody notice mistakes in the prompt or in the scenario, it would help me a lot ! :slight_smile:

Hey There @An_Rank
Hope you are doing well,
Use an Iterator to Iterate the array “Row values” and then map those iterated values in your chatgpt module accordingly.

2 Likes

Welcome to the Make community!

1. Screenshots of errors, module fields and filters

Please share screenshots of errors, relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

Providing the 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!

3 Likes