Telegram Product Safety Analyzer

Claudetelegram_bot_api

Check the safety of food ingredients and products via a Telegram bot. Get concise, AI-researched safety summaries sourced from trusted health agencies.

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

  1. Listens for incoming Telegram messages containing a product or ingredient name.
  2. Extracts the query text and chat ID from the message.
  3. Uses an AI agent to research official sources (FDA, WHO, EFSA) and creates a short safety report.
  4. Cleans the formatting to ensure it displays perfectly.
  5. Sends the safety summary back to the user's Telegram chat.

Prerequisites

RequirementDescription
Telegram BotA bot connected via Telegram Bot API
Needle PlatformAccess to the Needle platform with an active AI model
API CredentialsPipedream Telegram Bot API connector credentials

How It Works

  1. 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.
  2. Extract Query and Chat ID: A code step grabs and cleans the text input and identifies which chat to reply to.
  3. 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.
  4. 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.
  5. 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:

  1. Overall verdict (safe, caution, or unsafe)
  2. Key facts and short description
  3. Safe limits
  4. Who should avoid the ingredient
  5. Trusted sources used for the research

Important Notes

  1. Keep your Telegram bot token and API credentials secure.
  2. The AI report is brief and for informational purposes only. Always consult a healthcare professional for serious concerns.
  3. The AI agent might not find information for extremely obscure ingredients.
  4. Messages longer than Telegram's limit are truncated automatically.
  5. 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.

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy