Can Gemini Bot Create An Output With NO Input

So I am creating a bot to act as a nightlife promoter that will make guests aware of events happening and engage with them, however this would involve creating a response based on a time trigger not on a user interaction.

Is this even possible with Gemini currently?

1 Like

Hi @NickVenzi, Welcome to forum!!!

I think the answer is No. It responds to user input and doesn’t have built-in mechanism to respond at specific time.

You need to integrate it with other tools i guess like cloud functions (trigger based invocation) and cloud scheduler (for timely trigger) etc.

Thanks.

1 Like

Yup, we have cloud functions connected but i am not sure how to trigger it to create an output for example:

Lets say its the users birthday and we want gemini to send a birthday message via text message.

How would you accomplish this without the user asking gemini to wish them a happy bday lol

Hey @NickVenzi,

You can explore other ways but here is one approach :

You can securely store user’s birthdays and phone numbers in Firestore DB to ensure. Every day, Cloud Scheduler triggers a program that checks the database for birthdays. For each person celebrating, the system generates a personalized birthday message using Gemini. The message is then sent (may be via Twilio, a text messaging service) to the user’s phone.

Thanks.

Hmm ok so are you suggesting a different gemini model than the chat bot? The chat bot has all of the context, like a description of its personality and the users birthday etc. But like you said, it can only respond to a query from the party guests via text. So how do i explain to it to send a birthday message without the party guests asking it? The technical side I understand. Its more with the gemini model and how to invoke it I am confused on.

So your solution would be to use a different gemini model that would take an input query from the system (not the guest) but it would need to be a different gemini model context. Is that correct?

That’s the core challenge. Gemini doesn’t have an internal ‘clock’ or ‘trigger’ mechanism to just spontaneously generate a message. It always needs an input prompt to produce an output.

As i earlier said, you can follow these steps or try your own approach :

  1. Your Cloud Scheduler kicks off your Cloud Function – maybe daily at midnight, or whenever you want to check.

  2. That Cloud Function then goes and queries your Firestore database to see who’s got a birthday coming up.

  3. Now, for every person whose birthday it finds, the Cloud Function itself actually builds the prompt for Gemini. This is key. It’s the Cloud Function telling Gemini, “Hey, here’s what I need you to write.”

  4. Then, your Cloud Function sends that exact, dynamically created prompt over to the Gemini API.

  5. Gemini gets that prompt, process it, and send the generated birthday message back to your Cloud Function.

  6. Finally, your Cloud Function just grabs that message and fires it off using Twilio.

Thanks