Gemini logo

Integrate Gemini with your AI CRM

Comprehensive Gemini integration supporting Veo 3 video generation, Gemini Flash text generation (Nano Banana), chat completions, and multimodal AI capabilities via the Google Gemini API.

Explore Triggers and Actions

Count Tokens (Gemini)

Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.

ActionTry it

Embed Content (Gemini)

Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.

ActionTry it

Generate Content (Gemini)

Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.

ActionTry it

Generate Image (Nano Banana)

Generates images from text prompts using Gemini models (Nano Banana). Supports models: 'gemini-2.5-flash-image' (GA stable, fast), 'gemini-3-pro-image-preview' (Nano Banana Pro - advanced with 4K resolution, thinking mode, up to 14 reference images), and 'gemini-2.0-flash-exp-image-generation' (2.0 Flash experimental). Returns one downloadable image per call, or a text-type entry in data.content when no image is produced. Always validate that an image was returned before treating the call as successful. Output formats are raster only (JPG/PNG/WebP); request PNG for transparency. Concurrent usage may trigger HTTP 429/RESOURCE_EXHAUSTED — keep concurrency ≤3 and use exponential backoff (1s→2s→4s, ~5 retries). NOTE NEVER EVER TRUE SYNC_TO_WORKBENCH IN RUBE_MULTI_EXECUTE_TOOL

ActionTry it

Generate Videos (Veo)

Generates videos from text prompts using Google's Veo models. Returns an operation_name for tracking; pass it verbatim (no edits) to GEMINI_WAIT_FOR_VIDEO or GEMINI_GET_VIDEOS_OPERATION. Jobs take 30–180+ seconds; wait 10s before first poll, then poll every 10–30s (allow up to 12 min). Successful results include data.video_file.s3url — missing s3url means failure. If done=true but no video_file, check raiMediaFilteredReasons (safety block); revise prompt and regenerate. Text-only; cannot accept image inputs. Max ~3–5 concurrent jobs; 429 RESOURCE_EXHAUSTED requires exponential backoff. For retries, always start a fresh call — never reuse a failed operation_name.

ActionTry it

Get Videos Operation (Veo) (Deprecated)

DEPRECATED: Use WaitForVideo instead. Checks status of a Veo video generation operation. Use operation_name from GenerateVideos to track progress. Wait several seconds after starting GenerateVideos before first call to avoid OPERATION_NOT_FOUND. Poll at 10–30s intervals; use exponential backoff on HTTP 429 RESOURCE_EXHAUSTED; cap total polling at ~15 minutes. Complete when done=true AND a valid video URI is present; done=true without video_file indicates safety filtering blocked output — inspect raiMediaFilteredReasons and rephrase prompt. Video URL is at generatedSamples[].video.uri — persist promptly as URLs are time-limited. Keep concurrent polling to 3–5 parallel calls to avoid rate limits. If WaitForVideo times out, continue polling here using the same operation_name rather than starting a new GenerateVideos job.

ActionTry it

List Models (Gemini API)

Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests.

ActionTry it

Wait and Download Video (Veo)

Polls a Veo video generation operation until completion, then downloads and returns the video file. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. A done=true response without a video file indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.

ActionTry it

How the Gemini integration works

The Gemini integration connects your Dench AI CRM directly to Gemini, so agents can read and act on your Gemini data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.

8 actions are available for agents to invoke on your behalf. Every call runs through Gemini's own authorization, scoped to the account you connect.

Set up Gemini in Dench

  1. 1

    Sign in to your Dench workspace and open Integrations.

  2. 2

    Find Gemini and click Connect — you'll authorize access through Gemini's own sign-in flow. No API keys or code required.

  3. 3

    Ask an agent to use Gemini in chat, or call it from an automation.

  4. 4

    Manage or disconnect the connection any time from workspace settings.

Frequently asked questions

How does the Gemini integration work with Dench?

The Dench Gemini integration connects your AI CRM to Gemini, so AI agents can work with your Gemini data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.

What actions can AI agents perform with Gemini via Dench?

The Gemini integration currently exposes 8 actions, including Count Tokens (Gemini), Embed Content (Gemini), Generate Content (Gemini), Generate Image (Nano Banana), Generate Videos (Veo), and Get Videos Operation (Veo) (Deprecated). Agents invoke them on your behalf from chat or from automations.

Do I need to write code to connect Gemini to Dench?

No. You connect Gemini from your Dench workspace using Gemini's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.

Is the Gemini integration secure?

Connections are authorized through Gemini's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the Gemini connection from your workspace settings at any time.

Gemini | Dench AI CRM