ShareShortcuts

Google Gemini

Chat with Google's new Gemini AI!

searcc
Fork “Google Gemini”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so searcc gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
26K
Saved
1
Actions
14
Category
API
Version
1.0
Language
EN

Chat with Google's new Gemini AI!

What's New

Version 1.0

First release

Version History
1.0 Mar 4, 2024

First release

What it does

14 actions
  1. Comment
    Edit API key in the text action below!
  2. Text
  3. Set Variable
    API Key
  4. Number
  5. Repeat
  6. Ask for Input
    Chat with Google Gemini!
  7. Text
  8. Set Variable
    Source
  9. Get Contents of URL
    https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=…
  10. Get Dictionary Value
  11. Get Dictionary Value
  12. Get Dictionary Value
  13. Get Dictionary Value
  14. Show Alert
    Gemini

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color red
#define glyph brainHead

// Edit API key in the text action below!

@APIKey = "nil"
const Number = 10000

repeat _ for Number {
	prompt("Chat with Google Gemini!")
	@Source = "{\\"contents\\": [{\\"parts\\":[{\\"text\\": \\"{}\\"}]}]}"
	const ContentsOfURL = fileRequest("https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key={@APIKey}", "POST", @Source)
	const DictionaryValue = getValue(ContentsOfURL, "candidates")
	const DictionaryValue1 = getValue(DictionaryValue, "content")
	const DictionaryValue2 = getValue(DictionaryValue1, "parts")
	alert(, "Gemini")
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by searcc

See All

You Might Also Like

See All
Advertisement