Send API Reports To Telegram
Schedule daily API health checks to monitor endpoints and send a summary report directly to a Telegram chat using an AI agent to ensure uptime.
This workflow regularly monitors a set of API endpoints by making HTTP GET requests to each one. It compiles a daily report summarizing which endpoints are working properly and which have errors, sending this report directly to a Telegram chat.
It executes the following sequence:
- Triggers every day at a scheduled time (e.g., 9 AM UTC).
- Defines a predefined list of API endpoints to check.
- Evaluates each endpoint's health using an AI agent.
- Sends a formatted summary report to a designated Telegram chat.
What you need
- A Needle account to run the workflow.
- Access to the Telegram Bot API with a valid bot token.
- A Telegram chat ID (group or individual) where the bot has permission to send messages.
How the flow works
| Step | Component | Description |
|---|---|---|
| 1 | Scheduled Trigger | Starts the workflow automatically every day at 9 AM UTC. |
| 2 | Code Node | Sets up the list of API endpoints with their names and target URLs. |
| 3 | AI Agent | Uses an AI model equipped with an HTTP request tool to call each endpoint, check response status codes, and produce a text summary report. |
| 4 | Telegram Bot API | Sends the daily API health report as a text message to the specified Telegram chat. |
Output
Users receive a neatly formatted daily message in Telegram showing how many API endpoints succeeded and failed, including a detailed breakdown of each endpoint's status code or error.
Notes
- Make sure your Telegram bot has been started or added to the target chat to send messages successfully.
- You can customize the list of endpoints in the code step to match your specific APIs.
- Adjust the schedule trigger if you prefer a different check time.
Want to showcase your own workflows?
Become a Needle workflow partner and turn your expertise into recurring revenue.
