⚡ Manage recipes with AI-powered Telegram bot and Google Sheets database

72 views · ⚡ Personal Productivity

Description

Transform Your Telegram into a Smart Recipe Assistant!

Tired of scrolling through messy notes and bookmarks to find your favorite recipes? Wish you had a personal chef’s assistant to help you in the kitchen?

Introducing the Culinary Companion for Telegram, an n8n workflow that turns your Telegram app into a powerful, AI-driven recipe management tool, using Google Sheets as your database.


🚀 Key Features


⚙️ How It Works

The workflow is triggered by messages sent to your Telegram bot. A central Command Router (Switch node) determines the user’s intent and directs the flow to the appropriate tool.

1. Command Routing

2. Simple Recipe Lookups (/list & /select)

3. AI-Powered Recipe Management (/search, /create, /modify)

For more complex tasks, the workflow leverages a powerful AI agent.


🛠️ Setup Steps & Credentials

  1. Telegram Bot:

    • Create a bot with @BotFather on Telegram to get your API token.
    • Add this token as a credential for the Telegram Trigger and all Telegram sender nodes.
  2. Google Sheets:

    • Create a new Google Sheet.
    • Set up the first row with headers: Recipe Name, Cooking Time, Ingredients, Instructions, Notes.
    • Copy the Sheet ID from the URL (it’s the long string of characters in the middle).
    • Paste the Sheet ID into the relevant fields in the Read Recipe Names, Lookup Recipe Row, and the Google Sheets Tools (Read Recipes Sheet, Update Recipes Sheet).
    • Create Google OAuth2 credentials and connect them to all Google Sheets and Google Sheets Tool nodes.
  3. AI Provider (Choose One):

    • For Google Gemini: Get an API key from Google AI Studio, create a Google Gemini(PaLM) Api credential, and connect it to the Google Gemini Chat Model node.
    • For OpenAI: Get an API key from OpenAI, create an OpenAI credential, and connect it to the OpenAI Chat Model node.
    • Note: You only need to enable one of the two AI models.

💡 Customization & Learning

🔗 Nodes Used

Function, Google Sheets, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup