Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / ai / aidependencies / llm

Chat Google

Connect a Google Gemini chat model to AI nodes.

AI ExtensionWeb app

Give an AI node access to Google’s Gemini models, through Google AI Studio or Vertex AI.

Chat Google is a model you plug into the Model slot of an AI node, such as the Tools Agent or Basic LLM Chain. It does not run on its own and has no output. When the AI node runs, it sends its messages to Google with your key and gets the reply back.

  • Platform Type picks the service: gai is Google AI Studio (the Gemini API), gcp is Vertex AI on Google Cloud. Empty means gai.
  • Temperature is 0 when you leave it empty, so answers are focused and repeatable.
  • Replies are capped at Max Tokens (4096 by default). A failed request is retried up to Max Retries times (2 by default).
  • You want a Gemini model, for example for long documents.
  • You have a free or paid Google AI Studio key and want to start quickly.
  • Your company runs Gemini on Google Cloud: choose gcp.
SettingTypeWhat it does
Model (required)TextThe model to use.
Authentication (required)CredentialUse a JWT Token.
Platform Type ChoiceWhich Google platform serves the model. Options: Google AI Studio (Gemini API), Google Cloud (Vertex AI).
Options GroupThe options to use with the model.
Options › Temperature NumberThe temperature to use for the model.
Options › Max Retries NumberThe maximum number of retries to use for the model. Default: 2
Options › Max Tokens NumberThe most tokens the model may generate in one reply. Defaults to 4096, which keeps providers from reserving credit for the whole output window. Default: 4096

Type the Model id as Google names it in its model list (a gemini-... id). Leave Platform Type empty or on gai for an AI Studio key; choose gcp only for a Vertex AI key.

This node has no output port. It plugs into a slot on another node instead of passing items along.

The AI node you connect it to produces the output. Chat Google only decides which model answers.

In Authentication, save your Google API key (a Bearer Token or JWT Token credential both work; put only the key in it). See Create a credential.

  1. A Context Menu trigger on the page.
  2. Get All Text with Output field name pageText.
  3. Basic LLM Chain with Prompt List the 5 key points of this article: {{ $input.pageText }}.
  4. Chat Google in its Model slot, with a Gemini model id and Platform Type gai.
  • “Model parameter is required and cannot be empty”. Fill in Model.
  • An “API key not valid” or permission error. The key does not match Platform Type: an AI Studio key needs gai, a Vertex AI key needs gcp. Or the key was deleted; create a new one.
  • A “model not found” error. The model id is misspelled or not available on that platform. Copy it from Google’s model list.
  • The answer stops mid-sentence. It hit Max Tokens. Raise it under Options.
Edit page

Last updated:

Was this page useful?
Ask Aria about Chat Google