Chat requests from Telegram are routed to an AI assistant with strict access rules. Team members get answers and tools based on their role set in Airtable. It fits groups that want fast help in chat with strong control.
Messages from the Telegram bot are matched to a user record in Airtable. If the user is not found, a clear reply is sent back in Telegram. If found, the AI uses OpenAI with session memory and only the tools that user is allowed to use. Tools include Wikipedia search, a calculator, and a weather agent that calls Open Meteo for city coordinates and forecast. A custom permission check wraps each tool so blocked tools return a helpful notice instead of running.
A second entry point lets other workflows call the agent with a session id and allowed tools, which makes reuse across channels easy. You need a Telegram bot, an Airtable base for users, and OpenAI keys. Expect faster chat responses, less manual checking, and safe tool use by role. Great for field teams asking for weather, quick facts, or math while admins control access in one place.