Skip to main content

Google Gemini AI Model Configuration in ConvyAI

Overview​

The Google Gemini integration connects ConvyAI to Google's multimodal foundation models for intent classification, entity extraction, and response generation within the bot flow.

Prerequisites​

Create a Gemini AI Model​

Navigate to Generative AI → AI Models and click New Model → Gemini.

Configuration options​

FieldDescription
NameA unique name to identify this AI Model.
API KeyYour Google Gemini API key.

ConvyAI supports any Gemini model accessible via the Google AI API. The model is specified by name in the Completion model advanced parameter (e.g., gemini-2.5-flash, gemini-2.5-pro, gemini-2.0-flash). Refer to the Google AI model documentation for the full list of available models and their identifiers.

Advanced parameters​

ParameterDefaultDescription
Prompt versionv3System prompt version applied when using the model in Knowledge Base nodes.
Completion modelgemini-2.5-flashThe Gemini model used for response generation. Enter the model identifier as provided by Google.
Embedding modelgemini-embedding-001The model used for embedding during Knowledge Base indexing and retrieval.
Thinking budget0Number of thinking tokens the model can use to reason before generating a response. Set to 0 to disable extended thinking.
Max token completion1000Maximum number of tokens in the generated response.
Temperature0.7Controls response creativity. Lower values produce more deterministic outputs.
Top P1Nucleus sampling parameter. Limits token selection to the top probability mass.
Frequency penalty0.0Reduces repetition of tokens that have already appeared in the output.
Presence penalty0.0Encourages the model to introduce new topics by penalizing tokens that have already appeared.
Number of extracted chunks3How many Knowledge Base chunks are retrieved and passed to the model as context during RAG.

Intents, entities, and testing​

Configuring intents and entities and testing the model are features shared across all AI Model providers. See Intents, Entities & Testing for full documentation.