Scan with your iPhone to install
Chat with Google's new Gemini AI!
What's New
Version 1.0
First release
What it does
14 actions-
CommentEdit API key in the text action below!
-
Text
-
Set VariableAPI Key
-
Number
-
Repeat
-
Ask for InputChat with Google Gemini!
-
Text
-
Set VariableSource
-
Get Contents of URLhttps://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=…
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Show AlertGemini
View as code
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
You Might Also Like
Advertisement