Build a Telegram bot for email and calendar tasks
Julian Goldie used Replit Agent to create a Telegram bot that could check calendar gaps and send Outlook invites.
- What they did
- They opened Replit’s agents and automations tools, added an OpenAI key, and linked Outlook with OAuth so the bot could reach email and calendar data. After choosing a Telegram bot trigger, they spent 28 back-and-forth messages spelling out the behavior they wanted while the agent set up the APIs and wrote the code. When the build was ready, they published it.
- How it went
- The bot worked: it could look for open time in the calendar and send Outlook meeting invites. Because the feature was still in beta, they ran into rough edges such as no saved memory in the test playground and some formatting glitches. They also found they needed a new Telegram bot for each deployment.
- Tips
- Have your own OpenAI API key ready before you start, and expect to rebuild parts of the setup if the beta behaves inconsistently. Ask the agent to pause and show any email details before anything gets sent.
Try it yourself with Replit Agent
Help me build a Telegram bot with Replit Agent that can read my [email provider] inbox and my [calendar service] calendar, then answer messages from Telegram. Use my OpenAI API key, connect the account through OAuth, and make sure the bot only responds to Telegram user ID [your ID]. Before any email is sent, stop and show me the recipient, subject, and body, then wait for my approval. Set up the trigger, generate the code, and give me the exact steps to test it with a message like: ‘What is free on my calendar tomorrow?’
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Build an invoice checker that flags odd patterns
A business analytics graduate used Replit and Claude to create an invoice app that spots large bills, reminders, and duplicates.
Set up a daily stock email in Replit Agent
A reviewer used Replit Agent to create a scheduled 7 AM market-update email, from data fetch to formatted delivery, in about 20 minutes.
Use scheduled cloud tasks for nightly team briefings
One person moved overnight review and briefing work into Claude Code Cloud scheduled tasks, with git acting as the bridge between runs.
Use Devin to answer warehouse questions and build dashboards
Cognition uses DANA, a Devin variant, to query its warehouse, make charts, and create shareable dashboards from Slack or the web app.
Reconcile statements and invoices with Claude Cowork
They used Claude Cowork to line up bank transactions with invoices and export the results into Excel.
Run role-based agents with a review layer
Set up one OpenClaw agent per role and add oversight that flags actions drifting from the original goal.