Building an AI-Powered Focus Tracker for Telex Usando Python y API de Gemini

Construya un Focus Tracker inteligente con Python y API de Gemini para Telex, optimizando tus llamadas para una experiencia más eficiente.

4 nov 2025 • 3 min read • Q2BSTUDIO Team

Construyendo un Focus Tracker de AI para Telex mediante Python y API de Gemini

Mantener la concentración trabajando de forma remota puede ser un reto porque las distracciones están por todas partes. Para resolverlo, desarrollé un Focus Tracker potenciado con inteligencia artificial integrado directamente en Telex que permite gestionar sesiones de trabajo, descansos y conversar con un asistente, todo desde el espacio de trabajo de Telex.

Qué hace el agente

El Focus Tracker no es solo un temporizador. Actúa como un asistente de productividad inteligente que ayuda a: iniciar y detener sesiones de enfoque con comandos sencillos como /focus start o /focus stop; seguir el progreso de las sesiones y consultar el estado con /focus status; activar resúmenes diarios que envían un informe rápido de la actividad; y chatear con la API de Gemini para recibir respuestas, motivación y consejos de productividad. Todas las interacciones ocurren dentro de Telex para no abandonar el flujo de trabajo.

Cómo funciona

El agente corre en un backend en Python con Flask que recibe webhooks, y está desplegado en Railway para rapidez y fiabilidad. El flujo principal es: el usuario envía un comando como /focus start 30 5 a Telex; Telex hace un POST al endpoint webhook; el webhook interpreta el comando y llama a la función adecuada: start_focus inicia la sesión y programa el temporizador, stop_focus detiene la sesión, status informa cuanto tiempo llevas concentrado. Las respuestas se envían de vuelta a Telex mediante una función auxiliar send_to_telex. Cuando el mensaje no es un comando va directo a la API de Google Gemini para generar la respuesta de IA. Esta lógica simple y flexible facilita extender el agente con nuevos comandos en el futuro.

Pila tecnológica

Python con Flask para la lógica de routing y webhook; Telex API para entrega de mensajes e interacción en canales; Google Gemini API para respuestas en lenguaje natural y sugerencias de productividad; Railway para despliegue; y variables de entorno para proteger claves y configuración. Este enfoque permite crear agentes IA escalables y seguros con mínima complejidad.

Lecciones aprendidas

No siempre hace falta un panel completo: a veces un manejo inteligente de comandos en el webhook es suficiente. Telex facilita integrar agentes IA sin necesidad de paneles de configuración manual. Mantener bien guardadas las variables de entorno evita exponer claves sensibles. Una aplicación Flask bien estructurada puede soportar múltiples agentes para Telex con poca duplicación de código.

Próximos pasos

Planeo añadir recordatorios de enfoque mediante notificaciones programadas, un resumen semanal de horas enfocadas e integración con herramientas para análisis, como Notion o Google Sheets, y exportación de métricas para inteligencia de negocio.

Sobre Q2BSTUDIO

En Q2BSTUDIO somos una empresa de desarrollo de software y aplicaciones a medida especializada en inteligencia artificial, ciberseguridad y servicios cloud. Ofrecemos soluciones de software a medida para empresas que quieren potenciar su productividad con agentes IA, integrar IA para empresas o desplegar servicios cloud aws y azure. También desarrollamos proyectos de inteligencia de negocio y power bi para transformar datos en decisiones, además de servicios de ciberseguridad y pentesting para proteger activos digitales. Si buscas crear aplicaciones a medida que integren agentes IA y automatización, podemos ayudarte a diseñar e implementar la solución.

Para proyectos de inteligencia artificial y agentes IA visita nuestros servicios de inteligencia artificial y si necesitas desarrollar aplicaciones o software a medida conoce más en nuestra página de desarrollo de aplicaciones y software a medida. También ofrecemos integración con plataformas de Business Intelligence y Power BI para análisis avanzados.

Palabras clave

aplicaciones a medida, software a medida, inteligencia artificial, ia para empresas, agentes IA, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio, power bi.

Autor McGibson Izuchukwu. GitHub github.com/izuchukwuMcGibson LinkedIn linkedin.com/in/mcgibson-izuchukwu-ba09a5311

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat