Creating 2 different result from google gemini

Hello,

i am looking to create a scenario where i can post the last video from facebook, take title and description, use google gemini to rewrite the title and description and return this 2 result on youtube shorts. The problem i am facing that i take 2 result from facebook but gemini returns 1 result. Is there any way to have 2 different result in google gemini so i can add on youtube shorts 1 for title and 1 for description? :brain:

Hi @spotan and welcome to the Make Community!

From your description, it seems like you would need to use an iterator. However, it’s not entirely clear. Are you able to send a screenshot of your scenario?

L

Thank your reply @L_Duperval here are the screenshot. the result returned from google gemini is 1 and i actually need 2 resut to be returned on youtube shorts, 1 for title 1 for description. Your help will be much appreciated

Thanks for that.

Add something like this in your Gemini prompt:

Return a structured JSON document using this format:

{
“title”: “Your Engaging Short Title Here (Max 100 Characters)”,
“description”: “A compelling description of your video.\n\nInclude relevant keywords and hashtags to improve discoverability.\n\n#shorts #yourtopic #relevanthashtag”

}

return ONLY the JSON without commenting or explaining.

L

oops.…

Also add a JSON parser betweeen the Gemini response and the YouTube module. Then pap the title and description. That should work.

L

Hi Spotan,

Another really simple solution is to have two modules doing it:

Module 1 Google Gemini: Rewrite title
Module 2 Google Gemini: Rewrite description

To give you an example, I have a scenario where I want Claude AI to write an e-mail and a subject line for the e-mail. I do it in the following way:

I don’t ask one module to do both, I ask two modules to do one at a time. Furthermore, you can use either the description or the title in the second prompt, depending on which one you generate first.

Hope this helps - VDW Intelligence

what text should i add up here?

Hi @vdwintelligence

how do you link this 2 modules?

Thanks

If you updated your Gemini prompt, you should have a JSON string as output. I’m not sure which field contains the answer but that’s the one you should put as the JSON string.

BTW if you haven’t, I encourage you to take the courses in the Make Academy. It will help you understand what @vdwintelligence explained in his answer.

L

1 Like

Hi Spotan,

You can add the one after the other. And you can map the output of the first one to the second one.

And indeed, like L said, taking the courses from Make Academy, especially Basics, will give you deeper understanding of these parts.

1 Like

Welcome to the Make community!

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

  • Help Centre | Tutorials – Make “Manual” - search for help here first
  • Make Academy – Basics 101: Learn Make properly to get your money’s worth

Help Centre Basics

Articles & Videos