Automated Daily Vegan Recipe Sender via Telegram
detail.loadingPreview
Sends a random vegan recipe image and link to Telegram users daily. Manages user subscriptions via Airtable.
About This Workflow
This n8n workflow automates the daily delivery of vegan recipes to Telegram users. It fetches random vegan recipes from the Spoonacular API, formats them with an image and a clickable link to the source, and sends them to subscribed users. User subscription and daily delivery are managed using Airtable for tracking chat IDs and a cron job for daily execution.
Key Features
- Scheduled Recipe Delivery: Uses a Cron node to trigger recipe sending at a set interval.
- User Subscription Management: Leverages Airtable to store and retrieve Telegram chat IDs, enabling targeted message delivery and a simple subscription mechanism.
- API Integration: Connects to the Spoonacular API to fetch random vegan recipes.
- Rich Media Messaging: Sends both recipe images (using
sendPhoto) and recipe details (title and URL usingsendMessage) via Telegram. - Welcome Message: Greets new Telegram users and provides them with their first recipe.
- Conditional Logic: Includes an
IFnode (though its logic appears incomplete in the provided snippet) for potential future enhancements in managing user interactions or subscription status. - Error Handling:
continueOnFail: trueon Telegram nodes allows the workflow to proceed even if a message fails to send to a specific user.
How To Use
- Set up Telegram Bot: Create a Telegram bot and obtain the API token. Configure this token in the
Telegram accountcredentials in n8n. - Configure Spoonacular API: Obtain an API key from Spoonacular and replace
APIKEYHEREin theGet recipesandGet recipes from APInodes. - Configure Airtable: Create an Airtable base and a table (e.g., 'Table 1') with a 'chatid' field. Configure the
Airtable accountcredentials and set the correctyour_sheet_idand table name in the Airtable nodes. - Trigger Setup: The
Telegram Trigger - people join botnode will initiate the workflow when a new user interacts with the bot. This node'swebhookIdshould be replaced with your bot's ID. - Subscription Logic: When a user joins, the workflow checks if their
chatidis in Airtable. If not, it's added viaAirtable1. - Daily Delivery (Cron): The
Cronnode is set to trigger the daily recipe distribution. It fetches chat IDs from Airtable (Airtable2) and then proceeds to fetch and send recipes. - Recipe Fetching and Sending: The
Get recipes from APInode fetches a random recipe. TheSetnode extracts thechatid. TheRecipe PhotoandRecipe URLnodes send the recipe's image and text to the specifiedchatId. - Customization: Adjust the API query in
Get recipes from API(e.g.,tags=vegan) and the welcome message text as needed.
Apps Used
Workflow JSON
{
"id": "0d128fc1-bb93-475a-8f96-ae2148a3af24",
"name": "Automated Daily Vegan Recipe Sender via Telegram",
"nodes": 22,
"category": "Content Delivery",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 0d128fc1-bb93...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Automate Local Business Outreach with AI-Powered Yelp Scraper
This workflow automates the process of scraping local business details from Yelp using AI, then leverages that data to send personalized partnership proposals via Gmail. It's perfect for sales and marketing teams looking to streamline lead generation and outreach campaigns.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.