New to Kestra?
Use blueprints to kickstart your first workflows.
Use a Kestra AI agent with Google Gemini to read user intent and trigger the right flow, returning a direct execution URL. No hardcoded routing logic.
Route a user's stated intent to the correct automation without writing a single branching condition. This blueprint uses a Kestra AI agent, backed by Google Gemini, to read a high-level use case (business automation, data engineering, analytics, infrastructure, and more) and call the matching flow on your behalf. It is a practical pattern for AI-driven orchestration, self-service automation, internal developer portals, and agentic systems where users should not have to know which workflow to run.
SELECT input named use_case lets the user pick their orchestration goal from options such as Business Automation, Data Engineering Pipeline, and Infrastructure Automation (default Just Exploring).agent task (io.kestra.plugin.ai.agent.AIAgent) receives a prompt that maps each use case to a target flow id in the tutorial namespace, with the io.kestra.plugin.ai.provider.GoogleGemini provider running gemini-2.5-flash.io.kestra.plugin.ai.tool.KestraFlow tool, so it can actually execute the chosen flow rather than just describe it.uri task (io.kestra.plugin.core.debug.Return) parses the agent's toolExecutions output and builds a direct execution URL from the returned tenantId, flowId, and execution id.if/switch logic to maintain.Kestra turns the agent's decision into a governed, observable execution. You get event and schedule triggers, automatic retries, full execution lineage across the agent call and the flow it launches, and everything defined in declarative YAML you can version control. An LLM API on its own has no scheduler, no durable execution history, and no way to launch and track other workflows. Kestra supplies the orchestration layer the model lacks.
gemini-2.5-flash.tutorial namespace (for example business-automation, data-engineering-pipeline, hello-world).GEMINI_API_KEY: API key used by the GoogleGemini provider.GEMINI_API_KEY secret to your Kestra instance.tutorial namespace.use_case.uri task to inspect the launched execution.GoogleGemini for another io.kestra.plugin.ai.provider such as OpenAI or Anthropic.