Back to Templates
This n8n workflow enables Telegram users to interact with multiple AI models dynamically using #model_id commands. It also supports a /models command to list all available models. Each user has a daily usage limit, tracked via Google Sheets.
#model_id
(e.g., #openai/gpt-4o
)./newbot
→ Set name & username.user_id | date | query | result
Set Daily Limit
node.#openai/gpt-4o Write a motivational quote.
/models
Receives a Telegram message.
Switch node checks if the message is /models
or a prompt.
For /models
, it fetches and sends a grouped list of models.
For prompts:
#model_id
and prompt text.If daily limit exceeded → sends a limit exceeded message.