Skip to main content
You’ll build an agent with Gemini on Vertex AI that creates a PowerPoint presentation from one sentence and gives you the link to download it. Gemini decides when to call Doconda; you only wire up the tools.

What you need

  • A Google Cloud project with Vertex AI enabled.
  • Google Cloud credentials in your environment (gcloud auth application-default login or a service account).
  • A Doconda API key in DOCONDA_API_KEY. Create it in the dashboard, under API keys.
  • Python 3.9+ or Node 20+.

1. Install the dependencies

2. Connect the tools and ask for the presentation

tools() returns Doconda’s tools (create, upload, review, edit, look up…) with their name, description and JSON Schema. Gemini takes them as function declarations. Replace my-project with your project id.
In Python, the loop keeps going while Gemini asks for functions: you run each one and send the result back. In TypeScript, the AI SDK runs that loop for you.

Result

The create_document tool returns something like this to Gemini, and Gemini passes it on to the user in its reply:
You get the PowerPoint file (.pptx) and a PDF version. The links expire after 5 minutes; if the user asks for them later, the agent calls get_document and gets new ones.

Next steps