Telegram Chat Agent with Command Lookup and Response Handling
Chat-triggered AI agent that processes Telegram messages, retrieves predefined commands from a Google Sheet, and returns structured responses.
This workflow exposes an AI agent through a Telegram chat interface. Incoming messages trigger the workflow and are passed directly to the agent for interpretation.
The agent uses a chat model for reasoning and a lightweight memory component to maintain short-term conversational context. For command handling, it queries a Google Sheets document that acts as a simple command registry. This allows available commands or responses to be managed externally without modifying the workflow logic.
After the agent resolves the appropriate action or response, the result is passed through a small JavaScript step for formatting or post-processing before being sent back to the user as a Telegram message.
The workflow keeps message intake, agent reasoning, command lookup, and response delivery clearly separated, making the setup easy to extend with additional commands, tools, or validation logic.
