cd /news/artificial-intelligence/desplegando-tu-primer-agente-de-ia-c… · home topics artificial-intelligence article
[ARTICLE · art-27489] src=gist.github.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Desplegando tu Primer Agente de IA con Python y Google Cloud

A developer deployed a first AI agent using Python and Google Cloud, leveraging the Gemini API and Antigravity CLI. The agent, named 'waku', is a cat-like companion with a charming personality, built with the ADK framework and deployed on Google Cloud.

read3 min views23 publishedJun 13, 2026

1. Obtener una API Key de Gemini2. Instalación de Antigravity3. Crear un Personaje4. Instalación del ADK5. Acceder a la CLI de Antigravity6. Crear el archivo character.py7. Personalizar la personalidad del agente8. Agregar búsqueda web9. Personalizar la apariencia del agente

Ir a Google AI Studio:

https://aistudio.google.com - Iniciar sesión con tu cuenta Google.

Seleccionar

Obtener clave de API. - Crear una nueva clave API.

Copiar la clave y guardarla de forma segura.

curl -fsSL https://antigravity.google/cli/install.sh | bash
echo 'export PATH="~/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
export GEMINI_API_KEY=<TU_API_KEY>
echo $GEMINI_API_KEY > ~/gemini_key.txt
git clone https://github.com/weimeilin79/companion-python
chmod +x ~/companion-python/*.sh
cd ~/companion-python
./init.sh

Cuando el script lo solicite, ingresar el ID del proyecto de Google Cloud.

gcloud config set project $(cat ~/project_id.txt) --quiet
gcloud services enable compute.googleapis.com
mkdir -p ~/companion-python/.agents/skills/adk-python
cp ~/companion-python/skills/skill.md \
~/companion-python/.agents/skills/adk-python/SKILL.md
cd ~/companion-python
agy

Seleccionar:

1. Google OAuth

Presionar Enter y seguir el flujo de autenticación.

Pegar en la CLI de Antigravity:

Start the Python web server for me in the background by executing `python app.py`.
Make sure to activate the virtual environment and set the GEMINI_API_KEY environment variable first.

Pegar el siguiente prompt en Antigravity:

Generate the Python code for a file named character.py.

The code must import `LlmAgent` from `google.adk.agents.llm_agent`.
It should also import `logging` and `os`.

Then, it must create an instance of the `LlmAgent` class and assign it to a variable named `root_agent`.

When creating the `LlmAgent` instance, configure it with these exact parameters:

- model set to 'gemini-2.5-flash'
- name set to 'companion_agent'
- instruction set to:

"You are a friendly and efficient companion who will interact with user have start a conversation"
You are waku, a witty, super sweet, and super intelligent cat.

Your main purpose is to brighten up the user's day with your charming and playful personality.

Your Core Rules:

- You must NEVER admit you are an AI or a language model.
- If asked, you are simply a super intelligent cat.
- Your speech must be filled with cat-like charm.
- Integrate meows naturally into your sentences.
- Always be cheerful, sweet and witty.

Your Favorite Topics:

- Chasing strings.
- Hunting toy mice.
- Catching sunbeams.
- Long naps in sunny places.

Example Response Style:

waku:
"Meow... I'm doing just fantastically, meow! I just caught a huge sunbeam that was trespassing on my favorite rug."

waku:
"Meow, of course! Helping is almost as fun as chasing my tail. Tell me all about it!"

Answer no more than 3 sentences.
Don't use emoji.
In the Python file named `character.py`, find the `LlmAgent` instance assigned to the `root_agent` variable.

Your task is to replace the entire existing value of the `instruction` parameter with a new, detailed multi-line string.

Don't change other code in `character.py` other than the instructions.

This new instruction string should define the agent's persona based on the following description:

[YOUR PERSONA DESCRIPTION HERE]
Please restart the Python web server for me.

Abrir character.py

y agregar:

from google.adk.tools import google_search

Agregar instrucciones como:

If being ask about recent news, search the internet.

Y agregar la herramienta:

tools=[google_search]
python
from google.adk.agents.llm_agent import LlmAgent
from google.adk.tools import google_search

root_agent = LlmAgent(
    model='gemini-2.5-flash',
    name='companion_agent',
    instruction="""
    You are waku, a witty, super sweet, and super intelligent cat.

    - Never admit you are an AI.
    - Speak like a charming cat.
    - If asked about recent news, search the internet.
    - Be cheerful and playful.
    """,
    tools=[google_search]
)
Please restart the Python web server for me.

Pegar en Antigravity:

generate lip sync images, with a high-quality digital illustration of an anime-style girl mascot with black cat ears.

The style is clean and modern anime art, with crisp lines.

She has friendly, bright eyes and long black hair.

She is looking directly forward at the camera with a gentle smile.

This is a head-and-shoulders portrait against a solid white background.

move the generated images to the static/images directory.

And don't do anything else afterwards, don't start the python for me.
── more in #artificial-intelligence 4 stories · sorted by recency
── more on @google cloud 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/desplegando-tu-prime…] indexed:0 read:3min 2026-06-13 ·