docs/versioned_docs/version-3.0.0-LTS/marketplace/plugins/gemini.md
Google Gemini can be integrated with ToolJet to build context-aware, intelligent chatbots or generate creative text content.
To connect with Gemini, you will need the API Key, which can be generated from Google AI Studio.
Use this operation to generate text based on the prompt, system instructions, and model settings. It provides information or explanations tailored to the given context.
Required Parameters
Model: Specifies the Gemini model to use for generating responses.
Prompt: The main user input for generating responses.
Optional Parameter
System Prompt: A predefined instruction guiding the model's tone and behavior.
Max Tokens: Limits the maximum number of tokens (words and characters) in the response.
Temperature: Defines the randomness of the response. It takes a value between 0 and 1, with a default of 1.
Connecting ToolJet to a database involves several steps, and the specific method depends on the type of database you're using. ToolJet primarily uses database connections through its built-in features, avoiding the need for complex configuration files or external tools. Here's a general guide, focusing on common scenarios:
1. Choose Your Database and Connection Method:
ToolJet supports various database systems, including:
2. Setting Up the Database:
SELECT, INSERT, UPDATE, and DELETE permissions if you're performing CRUD operations.3. Connecting in ToolJet:
Use this operation for a chat-like conversation, where the model responds based on the given prompts and instructions. It provides relevant and context-appropriate answers, maintaining a smooth conversational flow.
Required Parameters
Model: Specifies the Gemini model to use for generating responses in the chat.
User Prompt: The user's question or request that the model will respond to.
Optional Parameter
System Prompt: Provides the model with guidance on the style and type of responses expected.
History: Keeps track of previous interactions to maintain context in the conversation.
Max Tokens: Limits the maximum number of tokens (words and characters) in the response.
Temperature: Defines the randomness of the response. It takes a value between 0 and 1, with a default of 1.
Integrating an API into ToolJet involves several steps, depending on the API's specifics (REST, GraphQL, etc.) and the desired functionality within your ToolJet application. Here's a breakdown of the process:
1. Understanding Your API: