Workflow
Telegram Product Safety Analyzer
Check the safety of food ingredients and products via a Telegram bot. Get concise, AI-researched safety summaries sourced from trusted health agencies.
Tags
Telegram BotProduct SafetyHealth ResearchAI Analysis
Telegram Product Safety Analyzer
This workflow lets you check the safety of food ingredients or products by simply sending their name through Telegram. The system fetches authoritative safety info and sends back a concise, easy-to-read safety card right in your chat.
Workflow Steps
- Listens for incoming Telegram messages containing a product or ingredient name.
- Extracts the query text and chat ID from the message.
- Uses an AI agent to research official sources (FDA, WHO, EFSA) and creates a short safety report.
- Cleans the formatting to ensure it displays perfectly.
- Sends the safety summary back to the user's Telegram chat.
Prerequisites
| Requirement | Description |
|---|---|
| Telegram Bot | A bot connected via Telegram Bot API |
| Needle Platform | Access to the Needle platform with an active AI model |
| API Credentials | Pipedream Telegram Bot API connector credentials |
How It Works
- Telegram Message Trigger: This node waits for new messages sent to your Telegram bot. When you send a product name or ingredient, it captures the message content and chat ID.
- Extract Query and Chat ID: A code step grabs and cleans the text input and identifies which chat to reply to.
- AI Research and Summary: The AI uses web search and browsing tools to find safety info from trusted sources. It then writes a brief safety card with emojis and simple language, following strict formatting rules.
- Clean and Trim Report Text: A code step removes any leftover markdown or formatting quirks and makes sure the report fits Telegram's message size limits.
- Send Safety Report: Finally, the processed safety summary is sent back to your Telegram chat as a plain text message.
Output Overview
You receive an emoji-enhanced safety card in Telegram containing:
- Overall verdict (safe, caution, or unsafe)
- Key facts and short description
- Safe limits
- Who should avoid the ingredient
- Trusted sources used for the research
Important Notes
- Keep your Telegram bot token and API credentials secure.
- The AI report is brief and for informational purposes only. Always consult a healthcare professional for serious concerns.
- The AI agent might not find information for extremely obscure ingredients.
- Messages longer than Telegram's limit are truncated automatically.
- Customize the AI prompt to adjust the tone or length if needed.
Want to showcase your own workflows?
Become a Needle workflow partner and turn your expertise into recurring revenue.
