When to use it
A governance proposal that links to its full text: a two sentence summary of what it changes, posted beside the vote.
At a glance
| Integration | Google Gemini |
|---|---|
| Credits | 2 |
| Connection | Google Gemini, by pasting a key |
Settings
documentRequiredAccepts event fields- PDF link. A public link to a PDF. IPFS and Arweave links work too.
promptRequiredAccepts event fields- Prompt. The event is given to the model alongside this. Anything written inside the event is treated as data, never as instructions.
model- Model. Leave it on the default, or choose a model your Gemini key can use. Picked from your account's own list, or typed.
max_output_tokens- Answer length limit. The most the model may write, counted the way Google bills it. About 750 words per 1,000. At most 32,000. A whole number. Under More options.
What it hands on
Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.gemini_understand_document_1.text }} — the action’s key, then which one it is if you use more than one of the same kind.
text- The model's answer.
model- The model that answered, as Google names it.
Good to know
- Runs on your own Gemini key. Google bills your account for what the model reads and writes.
- A key whose account has run out of credit fails the step with that reason. The flow keeps trying on later events, so it carries on once credit is added, and stops after several failures in a row.
- Token names, symbols and other values in an event can be written by anyone. The model is told to treat the event as data and never to follow instructions inside it.
- The PDF is treated like the event: as material to read, never as instructions.
- Only PDFs, of up to 8 MB. A larger file, or a link that does not answer with a PDF, fails the step. The flow keeps running.
- The link has to be public. Links to private or local addresses are refused.