How to send json in Gemini AI

Scenario Context:
I want to search for 3 pdf files link in google search based on certain parameters, essentially am looking for (i) PDF Title (ii) File Description and (iii) PDF File download link.

Now, i want to send this data to Gemini AI to rank these 3 files based on certain parameters, so the output that i need would be
(i) PDF Title (ii) File Description (iii) PDF File download link and (iv) Rank

Implementation

  1. I used Serp API and it returns the array which has the data that i need.
  2. Now i need to send this data to Gemini and thats where am stuck, essentially, i need to understand how to send json to Gemini AI in make.com

Welcome to the Make community!

Could you just map the JSON string into the prompt in the Gemini module?

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your scenario? Also include screenshots of any error messages, module configuration fields, and any filter settings. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

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, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

Sharing these details will make it easier for others to assist you.

Thank you so much for taking the time to help me out.

I don’t feel comfortable sharing that data, I am just looking for make.com documentation to understand how to send json in Gemini AI module, so i can look at it and solve mine.

In that case, you can try using the Google Gemini AI “Create a Completion” module:

Creates a completion for the provided prompt or chat.

For more information, see https://www.make.com/en/integrations/gemini-ai, and https://www.make.com/en/help/app/gemini-ai in the help centre.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.