Skip to main content

Telegram fitness bot: Custom workout plans from photo/text using Gemini AI

Workflow preview

Workflow preview
100%
Telegram fitness bot: Custom workout plans from photo/text using Gemini AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

A Telegram Fitness Bot that creates personalized 7 day workout plans by analyzing user photos or text input. It uses Google Gemini AI for image and text understanding combined with LangChain for co...

Best for

  • Personal Productivity automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.telegramtrigger, n8n-nodes-base.switch, n8n-nodes-base.code, n8n-nodes-base.telegram, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Parth Pansuriya.

Original n8n.io source

1.1 Workflow description

Title
Telegram fitness bot: Custom workout plans from photo/text using Gemini AI
Workflow name
Telegram fitness bot: Custom workout plans from photo/text using Gemini AI

A Telegram Fitness Bot that creates personalized 7-day workout plans by analyzing user photos or text input. It uses Google Gemini AI for image and text understanding combined with LangChain for conversational flow and memory to deliver motivating fitness routines directly through Telegram.

Use cases include virtual fitness coaching, AI-powered personal training assistants, and health & wellness engagement bots.

Who’s it for

  • Fitness coaches and personal trainers seeking to automate client workout plans
  • Developers building Telegram bots with AI-powered personalization
  • Startups creating virtual fitness assistants or health engagement tools

What it does

  • Users send a full-body photo or message to the Telegram bot.
  • The workflow detects if the input is photo or text.
  • For photos, Gemini AI analyzes body type, posture, and muscle tone.
  • For text, LangChain asks fitness questions (age, goals, activity level, etc.).
  • Based on input, a personalized 7-day workout plan is generated in Telegram-compatible HTML.
  • The plan is formatted and split as needed to fit message size limits.
  • The workout plan is sent back to the user via Telegram.

Requirements

  • Telegram Bot token with messaging and file permissions
  • Google Gemini API access with image and language model capabilities
  • n8n instance (cloud or self-hosted)
  • Basic knowledge of LangChain and n8n AI nodes for customization

How to customize the workflow

  • Modify LangChain system prompts for your coaching tone and style
  • Add or change fitness questions in the conversation flow
  • Enable PDF export of workout plans
  • Add daily workout reminders and streak tracking via Cron and Telegram nodes
  • Swap AI models or add new tools to enhance functionality
  • Embed videos or images to enrich workout plans

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 2 - Workout Guide

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 3 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 4 - Workout Guide thorugh Image

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 5 - Analyze image

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 6 - Receive a Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 7 - Text Vs Photo

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 8 - Clean up Workout plane and Make User freindly And Visually appealing

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Send A Workout Planes

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - Change Mime Type

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Clean up Workout plane and Make User freindly And Visually appealing1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Send A Workout Planes1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Fetch Image Path

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Get a Image

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 15 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 16 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Telegram fitness bot: Custom workout plans from photo/text using Gemini AI
Complexity advanced
Nodes 16
Categories Personal Productivity, AI Chatbot
Author Parth Pansuriya
Published 30 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6697/6697.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Telegram fitness bot: Custom workout plans from photo/text using Gemini AI do?

A Telegram Fitness Bot that creates personalized 7 day workout plans by analyzing user photos or text input. It uses Google Gemini AI for image and text understanding combined with LangChain for co...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, AI Chatbot use case.