Animated data flow diagram

AI Agent: Daily Telegram Recipe Bot

Version: 1.0.0 | Last Updated: 2025-05-16

Integrates with:

Telegram Airtable Spoonacular API

Overview

Unlock Automated Content Engagement with this AI Agent

This n8n workflow functions as an AI Agent dedicated to Content Curation & Delivery Automation for your Telegram channel. It intelligently manages new subscriber onboarding by sending an immediate welcome recipe, and then keeps your entire audience engaged by delivering a fresh, random vegan recipe every day. The agent fetches recipe data (including images and source URLs) from the Spoonacular API and uses Airtable to maintain its subscriber list.

Key Features & Benefits

  • Automated Onboarding: Welcomes new Telegram subscribers with an instant recipe, creating a great first impression.
  • Scheduled Daily Content: Uses a cron job to deliver a new vegan recipe to all subscribers daily, ensuring consistent engagement.
  • Dynamic Recipe Sourcing: Integrates with the Spoonacular API to fetch diverse and appealing vegan recipes, complete with images.
  • Subscriber Management: Leverages Airtable to store and manage Telegram chat IDs and user names.
  • Engagement Boost: Keeps your community active and looking forward to daily updates, perfect for food bloggers, health coaches, or vegan lifestyle brands.
  • Time-Saving Automation: Frees you from manually curating and sending content, allowing you to focus on other business areas.

Use Cases

  • B2C E-commerce (Food/Health Brands): Automatically share daily vegan recipes to a Telegram channel to engage customers, drive traffic to a blog/store, and build brand loyalty.
  • B2B SaaS (Community Platforms): Deliver daily tips, industry news, or curated content to a user community on Telegram, enhancing user engagement and platform value.
  • Solopreneurs (Content Creators/Coaches): Automate the distribution of daily valuable content (like recipes, wellness tips, or motivational quotes) to build and nurture a Telegram audience.
  • Founders (Niche Communities): Effortlessly provide daily relevant content to specialized Telegram groups (e.g., vegan cooking enthusiasts, fitness groups), fostering a strong sense of community.

Prerequisites

  • An n8n instance (Cloud or self-hosted).
  • Telegram Bot API Token.
  • Airtable API Key.
  • Airtable Base ID and Table name (ensure your table has at least 'chatid' and 'Name' fields).
  • Spoonacular API Key.

Setup Instructions

  1. Download the n8n workflow JSON file.
  2. Import the workflow into your n8n instance.
  3. Configure Telegram Nodes:
    • For the 'Telegram Trigger - people join bot' node: Create a new Telegram credential using your Bot API token. After creating, n8n will display a Webhook URL. Register this URL with your Telegram bot by sending a GET request to https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=<YOUR_N8N_WEBHOOK_URL> (replace placeholders).
    • For all other Telegram action nodes ('Telegram - Welcome Message', 'Recipe Photo', 'Recipe URL', etc.): Select the same Telegram credential.
  4. Configure Airtable Nodes:
    • For 'Airtable', 'Airtable1', and 'Airtable2' nodes: Create a new Airtable credential using your Airtable API Key.
    • In each Airtable node, set the 'Application' field to your Airtable Base ID and the 'Table' field to your table name (e.g., "Table 1").
    • Ensure your Airtable table has columns named 'chatid' (Text/Number type for storing Telegram chat IDs) and 'Name' (Text type for user's first name).
  5. Configure Recipe API Nodes:
    • In the 'Get recipes from API' and 'Get recipes' HTTP Request nodes, find the URL parameter apiKey=APIKEYHERE.
    • Replace APIKEYHERE with your actual Spoonacular API key.
    • You can customize the recipe search by modifying other parameters in the URL, like tags=vegan (e.g., tags=vegetarian, tags=dessert).
  6. Configure Cron Job:
    • Adjust the 'Cron' node's 'Trigger Times' settings to define how often daily recipes are sent (default is daily).
  7. Review IF Node Logic (Optional):
    • The 'IF' node and associated 'Airtable' (List) node are intended to prevent adding duplicate users. Verify the logic aligns with your Airtable structure if you encounter issues. The current IF node compares the incoming chat ID to the string "chatid", which may not be a robust check for existence.
  8. Activate the workflow. Test by sending a message to your Telegram bot (or /start) and check the daily cron execution.

Tags:

AI AgentContent DeliveryTelegram AutomationAirtableAPI IntegrationSchedulingCommunity EngagementAutomationRecipe Bot

Want your own unique AI agent?

Talk to us - we know how to build custom AI agents for your specific needs.

Schedule a Consultation