This project is an n8n workflow that connects a Telegram bot to an AI Agent (OpenRouter model). Whenever a user sends a message to the Telegram bot, the workflow receives it, processes it with AI, and sends a reply back.
- Telegram message trigger
- AI Agent response (OpenRouter Chat Model)
- Automatic reply in Telegram
- n8n (Cloud or Self-hosted)
- Telegram Bot Token
- OpenRouter API Key
- Import the workflow JSON file into n8n.
- Add Telegram credentials (Bot Token).
- Add OpenRouter credentials (API Key).
- Select your preferred model inside the OpenRouter node.
- Activate the workflow.
Telegram Trigger → AI Agent (OpenRouter) → Send Message (Telegram)
- Do not upload your API keys inside the workflow JSON.
- Use n8n Credentials to store tokens securely.
Created by [hasti rostami]