
See What's Earning in AI Automation Freelancing.
DigiNo helps new AI automation freelancers earn faster by tracking what clients actually pay for.
Course creators and coaching programs are paying for always-on Telegram bots that answer student and client questions without human intervention. This AI automation connects a Telegram bot to Google Gemini so every incoming message gets a smart, context-aware reply automatically.
What This Automation Does
- Listens for incoming messages sent to a Telegram bot and passes them to Google Gemini for processing
- Optionally pulls content from Google Docs so the bot can answer questions grounded in specific course materials or documentation
- Returns the Gemini-generated reply directly to the Telegram user who sent the original message
- Processes messages in controlled batches with deliberate pacing to prevent rate-limit errors and message flooding
Tools Used
- Telegram
- OpenAI
- n8n
Where to Get Hired for This Skill
On Contra, top freelancers across this stack have earned 102 combined verified reviews from real client projects.
Source: Contra freelancer search · refreshed 30 May 2026
Start Earning as a Freelancer on Contra
Contra is a commission-free professional network for independents. Browse live AI automation work and keep what you earn.
Join Contra Free →How To Build It
Register the Telegram bot and secure credentials
Use Telegram's BotFather to create a new bot, capture the bot token, and store it in your credentials manager so the automation can receive and send messages on behalf of that bot identity.
Connect Gemini as the AI reply engine
Obtain a Google Gemini API key, add it to your credentials, and configure the AI step so that every incoming user message is forwarded to Gemini and the generated text is returned as the bot's response.
Wire in a Google Docs knowledge source
Authenticate with Google Docs via OAuth2 and point the workflow at the specific document containing course content, FAQs, or coaching materials so Gemini can ground its replies in that source rather than general knowledge alone.
Add batch processing and delay controls
Configure the workflow to split incoming messages into small batches and insert short waits between each batch, preventing the Telegram API from throttling the bot when multiple users message simultaneously.
Test end-to-end with live messages
Activate the workflow, send a series of test questions to the bot covering edge cases like long queries, document-specific questions, and rapid successive messages to verify that replies are accurate, timely, and free of duplicates before handing the bot off to the client.
Pitfalls
- Google OAuth2 tokens expire and are not automatically refreshed in all hosting environments, which silently breaks the Google Docs lookup and causes the bot to reply without document context until credentials are manually renewed.
- Gemini rate limits can cut off responses mid-conversation during high-traffic periods, especially when a coaching cohort or course launch sends large volumes of messages in a short window, so batching and delay settings must be tuned per client rather than left at defaults.
- Prompt drift is common after client handoff: course creators frequently edit their Google Docs source material without realising that structural or formatting changes can confuse the AI's document-reading step and produce off-topic or incomplete answers.
FAQ
Can I build this without coding?
Yes. The entire automation is assembled through a visual workflow builder using pre-built integration blocks for Telegram, Gemini, and Google Docs. You will need to handle API key setup and OAuth2 authentication, but no custom code is required for the core functionality.
How long does it take?
A standard build with Telegram and Gemini connected and tested typically takes two to four hours for a first-time setup. Adding the Google Docs knowledge source and tuning batch delays adds another one to two hours depending on how the client's documents are structured.
What can I charge?
Pricing is your decision based on your market and positioning. A useful framing for clients is a one-time setup fee covering build and testing, plus a recurring monthly retainer for prompt tuning, model updates, and OAuth credential maintenance as the bot ages.
Which tool is required vs optional?
Telegram and Google Gemini are both required since they form the core message-receive and reply loop. Google Docs integration is optional but significantly increases the bot's value for clients who need answers grounded in specific course or program content rather than general AI knowledge.
This is original DigiNo analysis. The underlying automation pattern is a community workflow template – view the original on n8n.

See What's Earning in AI Automation Freelancing.
DigiNo helps new AI automation freelancers earn faster by tracking what clients actually pay for.

Build a self-learning email support system with Gmail and Gemini